approximate-now icon indicating copy to clipboard operation
approximate-now copied to clipboard

Refactor approximateNow.ts

Open RA80533 opened this issue 4 years ago • 1 comments

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

RA80533 avatar Jun 06 '21 09:06 RA80533

Thanks for contributing. This would need to pass the CI/CD checks to be considered for merging.

gajus avatar Jun 22 '21 23:06 gajus