Saturday, 11 June 2016

OCaml faster than Rust

Rust is a new "systems programming language" that is claimed to be "blazingly fast". We put it to the test, pitting it against the F# programming language and Rust was slower on every benchmark. Our code was recently ported to OCaml which showed that Rust is also slower than OCaml on this benchmark.

However, we should note that someone has suggested that Rust's poor performance is because its hash table collections use integral power of two sizes rather than prime sizes.


Unknown said...

I'd be interested in you re-visiting this, now that a couple of years have passed. I'm thinking of switching from Rust to OCaml for my personal projects - the more excuses, the better!

Jon Harrop said...

AFAIK, nothing has changed.