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.0 | lodash@4.18.1 | Difference | |
|---|---|---|---|
| omit | 5,022,632 times | 1,402,566 times | 3.6× |
| pick | 11,335,718 times | 2,876,787 times | 3.9× |
| differenceWith | 16,930,604 times | 5,811,529 times | 2.9× |
| difference | 12,373,746 times | 7,004,902 times | 1.8× |
| intersectionWith | 17,384,852 times | 5,031,392 times | 3.5× |
| intersection | 11,338,214 times | 5,550,564 times | 2.0× |
| unionBy | 5,068,515 times | 5,342,267 times | 0.9× |
| union | 4,849,245 times | 6,209,626 times | 0.8× |
| dropRightWhile | 18,381,692 times | 12,726,057 times | 1.4× |
| groupBy | 6,507,297 times | 6,540,958 times | 1.0× |
Refer to our benchmark code.

