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:13th Gen Intel(R) Core(TM) i5-13400F 16 core(s)
Memory:31.82 GB
Node.js:v24.11.1
Platform:win32 x64
es-toolkit@1.49.0lodash@4.18.1Difference
omit5,022,632 times1,402,566 times3.6×
pick11,335,718 times2,876,787 times3.9×
differenceWith16,930,604 times5,811,529 times2.9×
difference12,373,746 times7,004,902 times1.8×
intersectionWith17,384,852 times5,031,392 times3.5×
intersection11,338,214 times5,550,564 times2.0×
unionBy5,068,515 times5,342,267 times0.9×
union4,849,245 times6,209,626 times0.8×
dropRightWhile18,381,692 times12,726,057 times1.4×
groupBy6,507,297 times6,540,958 times1.0×

Refer to our benchmark code.

Released under the MIT License.