natefaubion / purescript-run

An extensible-effects implementation
MIT License
158 stars 14 forks source link

Benchmarks #35

Open jim108dev opened 3 years ago

jim108dev commented 3 years ago

Hi! It would be nice if you could write a few worlds regarding to the benchmarks. First of all, how to run it:

node -e "require('./output/Test.Bench/index').main()" --expose_gc

This way people do have to google themselves. And second, I got the result that run (free) runs faster than mtl/identity. How come?

Transformers (mtl/identity)
mean   = 43.89 ms
stddev = 9.59 ms
min    = 33.25 ms
max    = 92.27 ms
Run (free)
mean   = 11.31 ms
stddev = 13.08 ms
min    = 8.46 ms
max    = 111.87 ms