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.43.0lodash@4.17.21Difference
omit4,706,415 times1,417,299 times3.3×
pick10,746,586 times2,789,742 times3.9×
differenceWith18,522,078 times5,651,942 times3.3×
difference12,202,488 times6,828,896 times1.8×
intersectionWith16,926,995 times4,958,866 times3.4×
intersection11,263,848 times5,819,145 times1.9×
unionBy5,052,919 times5,307,449 times1.0×
union4,664,881 times6,287,776 times0.7×
dropRightWhile17,841,876 times12,320,166 times1.4×
groupBy6,039,742 times6,797,503 times0.9×

Refer to our benchmark code.

Released under the MIT License.