Skip to content

Performance ​

Designed with performance in mind, es-toolkit provides an average of 2× performance improvement compared to alternative libraries like lodash. Some functions achieve up to an 11× performance gain by fully utilizing modern JavaScript APIs.

Performance Comparison ​

Test Environment
CPU:Apple M4 10 core(s)
Memory:16.00 GB
Node.js:v22.23.2
Platform:darwin arm64
es-toolkit@1.52.0lodash@4.18.1Difference
omit3,973,624 times1,306,896 times3.0×
pick9,038,224 times2,220,822 times4.1×
differenceWith12,169,353 times4,009,328 times3.0×
difference9,097,445 times5,122,555 times1.8×
intersectionWith11,220,380 times3,022,015 times3.7×
intersection8,431,475 times4,348,418 times1.9×
unionBy4,422,940 times3,558,872 times1.2×
union4,092,678 times4,331,186 times0.9×
dropRightWhile12,852,312 times8,392,579 times1.5×
groupBy4,540,652 times3,557,114 times1.3×

Refer to our benchmark code.

Released under the MIT License.