Skip to content

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.0lodash-es@4.18.1Difference
sample94 bytes4849 bytes-98.1%
difference90 bytes7992 bytes-98.9%
sum93 bytes726 bytes-87.2%
debounce531 bytes2901 bytes-81.7%
throttle855 bytes3139 bytes-72.8%
pick132 bytes9554 bytes-98.6%
zip221 bytes3993 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.

Released under the MIT License.