Skip to content

Latest commit

 

History

History
57 lines (53 loc) · 8.94 KB

BENCHMARK.md

File metadata and controls

57 lines (53 loc) · 8.94 KB

Benchmark Results

Latest benchmark results comparing hidash vs lodash performance.

Method Test Performance Comparison hidash ops/sec lodash@4.17.21 ops/sec
assign src/assign.bench.ts > assign performance hidash is 2.61x faster 27.75 🏆 10.63
chunk src/chunk.bench.ts hidash is 2.36x faster 600.98 🏆 255.02
clamp src/clamp.bench.ts > clamp performance hidash is 2.41x faster 112.10 🏆 46.54
clone src/clone.bench.ts > clone performance hidash is 17.01x faster 55.48 🏆 3.26
cloneDeep src/cloneDeep.bench.ts > cloneDeep performance hidash is 2.28x faster 2.00 🏆 0.88
difference src/difference.bench.ts > difference performance hidash is 3.32x faster 307.14 🏆 92.47
every src/every.bench.ts > every performance hidash is 1.86x faster 51.14 🏆 27.48
filter src/filter.bench.ts > filter performance hidash is 2.30x faster 17.38 🏆 7.56
findIndex src/findIndex.bench.ts > findIndex performance hidash is 4.36x faster 4853.63 🏆 1114.17
findLastIndex src/findLastIndex.bench.ts > findLastIndex performance hidash is 4.88x faster 5091.69 🏆 1044.44
flatten src/flatten.bench.ts > flatten performance hidash is 1.28x faster 76.76 🏆 60.20
groupBy ⚠️ src/groupBy.bench.ts > groupBy performance comparison lodash is 1.24x faster 1115.30 1382.66 🏆
gt src/gt.bench.ts > gt performance hidash is 3.30x faster 164.27 🏆 49.72
has src/has.bench.ts > has performance hidash is 2.49x faster 478.86 🏆 192.55
includes src/includes.bench.ts > includes performance hidash is 6.94x faster 40.23 🏆 5.80
isEmpty src/isEmpty.bench.ts > isEmpty performance hidash is 10.97x faster 214.46 🏆 19.56
isEqual src/isEqual.bench.ts > isEqual performance hidash is 6.26x faster 5.39 🏆 0.86
keys src/keys.bench.ts > keys performance hidash is 3.02x faster 15.80 🏆 5.23
lt src/lt.bench.ts > lt performance hidash is 3.29x faster 171.75 🏆 52.28
map src/map.bench.ts > map performance hidash is 1.68x faster 607.08 🏆 360.40
mapValues src/mapValues.bench.ts > mapValues performance hidash is 1.44x faster 485.99 🏆 337.40
merge src/merge.bench.ts > merge performance hidash is 1.25x faster 268.43 🏆 214.79
omit src/omit.bench.ts > omit performance hidash is 4.01x faster 110.09 🏆 27.47
pick src/pick.bench.ts > pick performance hidash is 5.03x faster 164.29 🏆 32.65
pickBy src/pickBy.bench.ts > pickBy performance hidash is 1.20x faster 2.28 🏆 1.89
range src/range.bench.ts > range performance hidash is 1.54x faster 29.94 🏆 19.40
repeat src/repeat.bench.ts > repeat performance hidash is 2.56x faster 1690.82 🏆 659.65
shuffle src/shuffle.bench.ts > shuffle performance hidash is 3.03x faster 18.73 🏆 6.19
size src/size.bench.ts > size performance hidash is 1.00x faster 64.56 🏆 64.48
some src/some.bench.ts > some performance hidash is 2.45x faster 18.89 🏆 7.70
sum src/sum.bench.ts > sum performance hidash is 2.62x faster 155.13 🏆 59.29
sumBy src/sumBy.bench.ts > sumBy performance hidash is 1.35x faster 134.89 🏆 99.83
toNumber src/toNumber.bench.ts > toNumber performance hidash is 8.05x faster 94.47 🏆 11.74
toPairs src/toPairs.bench.ts > toPairs performance hidash is 2.93x faster 93.10 🏆 31.81
toString src/toString.bench.ts > toString performance hidash is 2.14x faster 36.17 🏆 16.87
transform src/transform.bench.ts > transform performance hidash is 2.95x faster 243.00 🏆 82.34
trim src/trim.bench.ts > trim performance hidash is 2.96x faster 34.64 🏆 11.70
union src/union.bench.ts > union performance hidash is 1.67x faster 95.21 🏆 56.98
uniq src/uniq.bench.ts > uniq performance hidash is 1.48x faster 116.34 🏆 78.62
uniqBy src/uniqBy.bench.ts > uniqBy performance hidash is 2.14x faster 65.26 🏆 30.45
uniqWith ⚠️ src/uniqWith.bench.ts > uniqWith performance lodash is 1.05x faster 16.29 17.05 🏆
values src/values.bench.ts > values performance hidash is 22.60x faster 138.95 🏆 6.15
zip src/zip.bench.ts > zip performance hidash is 1.13x faster 49.07 🏆 43.36

Note: Higher operations per second (ops/sec) numbers are better. Each test compares hidash vs lodash implementation.

⚠️ indicates where hidash is slower than lodash.

🏆 indicates the faster implementation.

Last updated: 2025-03-12