Performance ​
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 ​
Test Environment
CPU:Apple M3 Max 16 core(s)
Memory:64.00 GB
Node.js:v24.21.0
Platform:darwin arm64
| es-toolkit/fp | remeda | Fastest | |
|---|---|---|---|
| pipe/map | 18,696 ops/sec | 6,708 ops/sec | es-toolkit/fp |
| pipe/filter + map | 10,948 ops/sec | 4,090 ops/sec | es-toolkit/fp |
| pipe/uniq | 14,031 ops/sec | 4,247 ops/sec | es-toolkit/fp |
Measurement Method ​
Each benchmark runs in its own Node.js process with mitata, and the numbers above are the median of five runs. To run the benchmark yourself:
bash
yarn bench fp/pipeSee benchmarks/performance/fp/pipe.bench.ts for the exact benchmark code.

