Benchmark example
tested code | result (10_000_000 times) | std (100 samples) |
---|---|---|
/**
* first snippet to benchmark
*/ | 1.8 ms | 0.9 ms |
/**
* second snippet to benchmark
*/ | 2.1 ms | 0.9 ms |
Node: v19.8.1
CPU: Intel(R) Core(TM) i7-5820K CPU @ 3.30GHz, 3900 MHz (12)