Giter Site home page Giter Site logo

Comments (2)

unneon avatar unneon commented on May 30, 2024

Yes, all tests are run in debug mode. This is because various flags can catch stuff like out of bounds in std::vector, integer overflows and the like, as well as run debuggers. Release mode is only used in stress tests for the brute force solution and the test generator. You can compile the source manually in release mode (Alt;) each time, or adjust the test time limit though (Ctrl,, Extensions > ICIE > Test > Time Limit). There is currently no option to configure this, but it can be easily added by changing this parameter to load something from config.

Though, the default time limit is 1.5 seconds. Do your tests actually run longer than that, or could the extension or solution be hanging somewhere? During contests, I usually use much smaller tests so I can debug them properly, but changing the default per-task seems like a useful feature if that's the case.

from icie.

gratus907 avatar gratus907 commented on May 30, 2024

Thanks. It now seems natural to run tests in Debug mode now. I didn't know about useful flags.

Now after reading your comment, I realized that my code was quite unusual (running vast amount of precomputation, and printing out stuff) In release mode it took about 600ms just for precomputation. In this case there weren't some workaround like trying small data, since the size of data didn't help that much. Though these situations seems unlikely.

As long as stress tests are tested in release mode, such feature seems to be useful in limited situations....

Thanks for fast response :)

from icie.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.