Skip to content

Bundle Footprint ​

Graph showing the difference in bundle size between es-toolkit and lodash. There is a difference up to 97% in bundle size.

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.0lodash-es@4.17.21Difference
sample94 bytes4817 bytes-98.0%
difference90 bytes7985 bytes-98.8%
sum93 bytes698 bytes-86.6%
debounce531 bytes2873 bytes-81.5%
throttle764 bytes3111 bytes-75.4%
pick132 bytes9520 bytes-98.6%
zip221 bytes3961 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.

Released under the MIT License.