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.0 | lodash@4.18.1 | Difference | |
|---|---|---|---|
| omit | 3,973,624 times | 1,306,896 times | 3.0× |
| pick | 9,038,224 times | 2,220,822 times | 4.1× |
| differenceWith | 12,169,353 times | 4,009,328 times | 3.0× |
| difference | 9,097,445 times | 5,122,555 times | 1.8× |
| intersectionWith | 11,220,380 times | 3,022,015 times | 3.7× |
| intersection | 8,431,475 times | 4,348,418 times | 1.9× |
| unionBy | 4,422,940 times | 3,558,872 times | 1.2× |
| union | 4,092,678 times | 4,331,186 times | 0.9× |
| dropRightWhile | 12,852,312 times | 8,392,579 times | 1.5× |
| groupBy | 4,540,652 times | 3,557,114 times | 1.3× |
Refer to our benchmark code.

