Bundle Footprint ​
With its modern implementation, es-toolkit significantly reduces its bundle size, cutting it down by up to 97% compared to other libraries like lodash.
This makes es-toolkit the most efficient in terms of bundle size, with some utility functions being as small as less than 100 bytes.
Bundle Footprint Comparison ​
| es-toolkit@1.49.0 | lodash-es@4.18.1 | Difference | |
|---|---|---|---|
| sample | 94 bytes | 4849 bytes | -98.1% |
| difference | 90 bytes | 7992 bytes | -98.9% |
| sum | 93 bytes | 726 bytes | -87.2% |
| debounce | 531 bytes | 2901 bytes | -81.7% |
| throttle | 855 bytes | 3139 bytes | -72.8% |
| pick | 132 bytes | 9554 bytes | -98.6% |
| zip | 221 bytes | 3993 bytes | -94.5% |
Bundle Size Test Method ​
Our bundle size is measured using esbuild 0.28.0, by analyzing the size of code like the following:
tsx
import { chunk } from 'es-toolkit';
// or import { chunk } from 'lodash-es';
console.log(chunk);See our bundle size benchmark code for details.

