This repository has been archived by the owner on Jan 12, 2023. It is now read-only.
Releases: kevinhermawan/enhanced-array
Releases · kevinhermawan/enhanced-array
v0.1.2
v0.1.1
- refactor: improves performance
isContainNil
in the first and last index (aa707bc)
Benchmark results
# In the first index
isContainNil - v0.1.0 (OLD) x 163,090,481 ops/sec ±21.74% (71 runs sampled)
isContainNil - v0.1.1 (NEW) x 206,998,535 ops/sec ±2.00% (88 runs sampled)
# In the last index
isContainNil - v0.1.0 (OLD) x 139,833 ops/sec ±2.66% (91 runs sampled)
isContainNil - v0.1.1 (NEW) x 219,300,660 ops/sec ±0.47% (93 runs sampled)
Highlights
- Tested using benchmark.js
- Tested with an array of integers with 10.000 elements
v0.1.0
- 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
andremoveAt
tested at index 9997
v0.0.7
v0.0.6
v0.0.5
v0.0.4
v0.0.3
v0.0.2
v0.0.1
Initial release