4 ms·
Interestingly, C++ seems to be the fastest overall.
by albertzeyer 6y ago
Interestingly, C++ seems to be the fastest overall.
- agumonkey 6y agoAfter the rust blossom storm I didn't track cpp implementation evolutions.. did cpp compiler perf/libs increased or was is simply faster and still is the same ?
- burnthrow 6y agoWas faster and is the same, checking isn't free. Not that Rust is slow. C++ is unsafe by default whereas in Rust it is opt-in (lexically scoped). The Rust implementations don't appear to use `unsafe`.
- steveklabnik 6y agoChecking can often be free, because it’s done at compile time, rather than at runtime.