Skip to content
This repository was archived by the owner on Jan 12, 2023. It is now read-only.

v0.1.0

Compare
Choose a tag to compare
@kevinhermawan kevinhermawan released this 02 Oct 03:56
· 4 commits to main since this release
  • chore: updates README (d44beae)
  • refactor: improves performance removeAt (f6b6a94)
  • refactor: improves performance insertAt (2ad5202)
  • refactor: improves performance getFirst and getLast (683e47e)

Benchmark results

getFirst - v0.0.7 (OLD) x 18,269,347 ops/sec ±0.19% (94 runs sampled)
getFirst - v0.1.0 (NEW) x 955,955,977 ops/sec ±0.36% (91 runs sampled)

getLast - v0.0.7 (OLD) x 18,112,929 ops/sec ±0.11% (94 runs sampled)
getLast - v0.1.0 (NEW) x 958,759,036 ops/sec ±0.35% (95 runs sampled)

insertAt - v0.0.7 (OLD) x 20,045 ops/sec ±0.45% (96 runs sampled)
insertAt - v0.1.0 (NEW) x 36,489 ops/sec ±0.52% (92 runs sampled)

removeAt - v0.0.7 (OLD) x 19,957 ops/sec ±0.29% (96 runs sampled)
removeAt - v0.1.0 (NEW) x 36,667 ops/sec ±0.54% (90 runs sampled)

Highlights

  • Tested using benchmark.js
  • Tested with an array of integers with 10.000 elements
  • insertAt and removeAt tested at index 9997