approximate-now
approximate-now copied to clipboard
Refactor approximateNow.ts
Comparison
6ea8bab (master)
$ npm run benchmark
> [email protected] benchmark
> ROARR_LOG=true ts-node --transpile-only test/benchmark.ts
Date.now() x 18,871,650 ops/sec ±1.11% (92 runs sampled)
approximateTime.now x 71,874,298 ops/sec ±1.02% (93 runs sampled)
f8bd79e
$ npm run benchmark
> [email protected] benchmark
> ROARR_LOG=true ts-node --transpile-only test/benchmark.ts
Date.now() x 19,437,324 ops/sec ±0.54% (92 runs sampled)
now() x 190,412,333 ops/sec ±0.59% (95 runs sampled)
Closes #2 Closes #4
Thanks for contributing. This would need to pass the CI/CD checks to be considered for merging.