Skip to content

Latest commit

 

History

History

bench

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Benchmarks – Node.js

Below are the results while running this directory's suites on my machine with Node.js v10.13.0:

Mutable

This is the default (and only) behavior

Validation:
  ✔ deep-set
  ✔ set-value
  ✔ lodash/set
  ✔ dset

Benchmark:
  deep-set     x 1,545,526 ops/sec ±1.49% (89 runs sampled)
  set-value    x 1,704,871 ops/sec ±2.81% (92 runs sampled)
  lodash/set   x   995,789 ops/sec ±1.66% (91 runs sampled)
  dset         x 1,757,022 ops/sec ±0.12% (97 runs sampled)

Immutable

This combines dset with klona, as seen in the main README example

Validation:
  ✔ clean-set
  ✔ dset-klona

Benchmark:
  clean-set    x 2,631,929 ops/sec ±2.88% (89 runs sampled)
  dset-klona   x 1,950,732 ops/sec ±2.11% (92 runs sampled)