mobily / ts-belt

🔧 Fast, modern, and practical utility library for FP in TypeScript.
https://mobily.github.io/ts-belt
MIT License
1.1k stars 30 forks source link

added native js functions to benchmark #21

Closed Pyrolistical closed 2 years ago

Pyrolistical commented 2 years ago

I noticed lots of the benchmark functions have direct native js implementations, so I added native js as a baseline

ivan-kleshnin commented 1 year ago

@mobily thank you for the library! A lot of interesting things here.

I wonder why native JS loses in most benchmarks? 🤔 And why Rescript is so fast? It does not even compile to WASM yet. So I wonder what can be even done, in theory, to win over native JS loops?