forkeys-benchmark

Benchmarking for forkeys

Usage no npm install needed!

<script type="module">
  import forkeysBenchmark from 'https://cdn.skypack.dev/forkeys-benchmark';
</script>

README

forkeys-benchmark

Benchmarking for forkeys and forkeys-compat against Vanilla JavaScript and popular alternatives.

Results

Function Ops/sec % of slowest
forkeys(a, b) 687,027 107.494 %
forkeys-compat(a, b) 675,891 105.753 %
Object.keys(a).forEach(b) 639,125 100.000 %

The results above are benchmarked with Benchmark.js on an ASUS X500D Notebook (4GB RAM, quad-core 2.5 GHz).

Outputs

forkeys(a, b): 687027.1413794049
forkeys-compat(a, b): 675891.2375011845
Object.keys(a).forEach(b): 639124.5415610641

The results above are benchmarked with Benchmark.js on an ASUS X500D Notebook (4GB RAM, quad-core 2.5 GHz).

License

The Unlicense (see distributed LICENSE file)