I have been tinkering with OCaml, bucklescript, and js_of_ocaml. I have a microbenchmark that I’ve been implementing for various languages over the last month or so as I sample them; implementing it and running the results through BS and JSOO yielded surprising (at least for me) results:
=== bucklescript (reason) === 9.23s === js_of_ocaml === 57.49s
I have some understanding of each compiler’s respective design constraints, so I was expecting that ordering, but not a margin that large. All of the source and compiler invocations, etc are available in https://github.com/cemerick/silly-shootout, so if anyone sees any place where I’m making an egregious error, I’d appreciate that feedback.
Thanks very much