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 M3 Max 16 core(s)
Memory:64.00 GB
Node.js:v24.21.0
Platform:darwin arm64
| es-toolkit@1.53.2 | lodash@4.18.1 | Difference | |
|---|---|---|---|
| omit | 9,504,932 times | 2,077,902 times | 4.6× |
| pick | 23,920,081 times | 3,512,838 times | 6.8× |
| differenceWith | 30,693,655 times | 7,715,669 times | 4.0× |
| difference | 26,301,898 times | 7,412,163 times | 3.5× |
| intersectionWith | 27,049,443 times | 5,581,531 times | 4.8× |
| intersection | 22,074,609 times | 6,382,767 times | 3.5× |
| unionBy | 8,892,267 times | 5,949,608 times | 1.5× |
| union | 8,139,412 times | 6,472,566 times | 1.3× |
| dropRightWhile | 57,109,091 times | 25,190,531 times | 2.3× |
| groupBy | 7,326,617 times | 4,891,205 times | 1.5× |
Measurement Method ​
Each benchmark runs in its own Node.js process with mitata, and the numbers above are the median of five runs. To run a benchmark yourself:
bash
yarn bench omit.bench.tsSee benchmarks/performance for the benchmark code.

