29 ms·
The Rust compiler can auto-vectorize loop code. This blog post shows how to write simple idiomatic Rust code that will allow the compiler to auto-vectorize: h
by neopallium 6y ago
The Rust compiler can auto-vectorize loop code.
This blog post shows how to write simple idiomatic Rust code that will allow the compiler to auto-vectorize:
http://cliffle.com/p/dangerust/6/ http://cliffle.com/p/dangerust/6/
- jcelerier 6y agoBut, C and C++ compilers also can autovectorize quite well. I had some SSE & AVX algorithms where the compiler ended up doing the same or lightly better job in C++ for instance. So maybe it's just the C benchmark being a cargo cult.