Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

We've implemented network drivers in C and Rust and did a performance comparison. Interestingly, the C-to-Rust-transpiled code ended up being faster than the original C implementation: https://github.com/ixy-languages/ixy-languages/blob/master/R...


https://github.com/emmericp/ixy/blob/0e00605be4153b06df06184...

Looks like you're compiling C code with -O2. Does Rust build set -O3 on clang? Did you try -O3 with C? I know it's not guaranteed to be faster, just curious.



Then a fair benchmark would be compiling C code with clang -O3 :)


Good catch




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: