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.40.0 | lodash-es@4.17.21 | Difference | |
|---|---|---|---|
| sample | 94 bytes | 4817 bytes | -98.0% | 
| difference | 90 bytes | 7985 bytes | -98.8% | 
| sum | 93 bytes | 698 bytes | -86.6% | 
| debounce | 531 bytes | 2873 bytes | -81.5% | 
| throttle | 764 bytes | 3111 bytes | -75.4% | 
| pick | 132 bytes | 9520 bytes | -98.6% | 
| zip | 221 bytes | 3961 bytes | -94.4% | 
Bundle Size Test Method ​
Our bundle size is measured using esbuild 0.23.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.

