Skip to content

microbench release

microbench 0.3.0

  • Breaking Changes: dart run microbench with no command now runs the benchmarks under benchmark/ instead of printing usage (exit code 64), and a first word that is not a command is taken as a path; runMain keeps settings from an enclosing BenchmarkSettings.apply that its arguments do not override.
  • runSuite(args, body): command-line options for benchmarks declared with benchmark() and group().
  • Benchmarks declared in a plain void main() read options from the MICROBENCH_ARGS environment variable, which dart run microbench now sets, so dart run microbench <file> -- --quick works without runSuite.
  • runMain takes any setting its arguments leave out from an enclosing BenchmarkSettings.apply.
  • Warmup no longer runs for tens of seconds when a run is shorter than a clock tick: it is timed on one running stopwatch instead of a sum of per-run readings that rounded to 0.
  • dart run microbench runs benchmarks without the run command name, which stays as an alias.

All posts·RSS feed