Use microtime for time resolution. #1

wants to merge 1 commit into


None yet
3 participants

If you don't mind adding a dependency it would be great to have microsecond time resolution for benchmarks.


Nowadays there’s Node’s process.hrtime() which offers nanosecond accuracy. If you want a microtime-compatible benchmarking library for use in older Node versions, check out Benchmark.js which is what uses.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment