Runs a benchmark with a time limit.
var counter = 0console
npm install limit-bench
Benchmarks task by running it for about
time_limit: The number of milliseconds to run task for (rounds up to nearest task count)
warmup: The number of warm up iterations to run the task
task: A function to benchmark
Returns The average time per task in milliseconds
Because it lets you put time limits on the tasks. This means that you can avoid spinning forever if you are comparing a slow implementation to some relatively much faster implementation.
(c) 2013 Mikola Lysenko. MIT License