Back to Es Toolkit

Performance

docs/fp/performance.md

1.49.0639 B
Original Source

Performance

<FpBenchmarkChart />

es-toolkit/fp is designed with performance as a priority. Compared with other libraries such as remeda, we observed an average 1.5-3x performance improvement. This comes from using modern JavaScript APIs and focusing the implementation on the features that are necessary.

Performance Comparison

<FpBenchmarkEnvironment /> <FpBenchmarkTable />

Measurement Method

The numbers above were measured on this branch with Vitest:

bash
yarn vitest bench performance/fp/pipe.bench.ts --run

See benchmarks/performance/fp/pipe.bench.ts for the exact benchmark code.