docs/fp/bundle-size.md
Because es-toolkit/fp uses a modern implementation, it has a very small bundle size compared with other libraries. Compared with remeda, its bundle size is 1.5x to more than 10x smaller.
In this respect, es-toolkit/fp is the most efficient choice for reducing bundle size. Some utility functions are smaller than 100 bytes. Tree shaking is supported as well.
The numbers are measured with esbuild 0.28.0 by bundling concrete JavaScript imports like these:
import { filter } from 'es-toolkit/fp';
console.log(filter);
import { filter } from 'remeda';
console.log(filter);
See the benchmark files in benchmarks/bundle-size/fp/ for the exact scripts.