On 2012-11-29 16:58, Andrei Alexandrescu wrote:
That's workable. I'm hoping, however, to make benchmarks as easy and as trivial to define as unittests.
Unit tests have the same problem. One need to create a module containing a main function and importing the modules one wants to benchmark/test.
One idea would be to add more support for this in the compiler. Another idea, that might better and is easier to implement, is tool that: 1. Takes a couple of modules on the command line 2. Create a main module which imports the modules on the command line 3. Compile all the modules 4. Run the benchmarks or tests -- /Jacob Carlborg
