Use microtime for time resolution. #1

Open
wants to merge 1 commit into
from

Conversation

Projects
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 jsPerf.com uses.

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