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:Apple M3 Max 16 core(s)
Memory:64.00 GB
Node.js:v24.21.0
Platform:darwin arm64
es-toolkit@1.53.2lodash@4.18.1Difference
omit9,504,932 times2,077,902 times4.6×
pick23,920,081 times3,512,838 times6.8×
differenceWith30,693,655 times7,715,669 times4.0×
difference26,301,898 times7,412,163 times3.5×
intersectionWith27,049,443 times5,581,531 times4.8×
intersection22,074,609 times6,382,767 times3.5×
unionBy8,892,267 times5,949,608 times1.5×
union8,139,412 times6,472,566 times1.3×
dropRightWhile57,109,091 times25,190,531 times2.3×
groupBy7,326,617 times4,891,205 times1.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.ts

See benchmarks/performance for the benchmark code.

Released under the MIT License.