Sjmarf@sh.itjust.works to Programmer Humor@programming.dev · 8 months agoIs this a Nut?media.gehirneimer.deimagemessage-square130fedilinkarrow-up11.3Karrow-down120
arrow-up11.28Karrow-down1imageIs this a Nut?media.gehirneimer.deSjmarf@sh.itjust.works to Programmer Humor@programming.dev · 8 months agomessage-square130fedilink
minus-squarenick@campfyre.nickwebster.devlinkfedilinkarrow-up1·edit-28 months agoRust is roughly similar to C in most of these benchmarks and beats it in a few: https://benchmarksgame-team.pages.debian.net/benchmarksgame/fastest/rust.html Arguably when LLVM gets a bit better, Rust can be even faster than C because rust can be optimised in more places safely than C code can. The issue is that LLVM wasn’t written with that in mind, so some performance is left on the table.
Rust is roughly similar to C in most of these benchmarks and beats it in a few: https://benchmarksgame-team.pages.debian.net/benchmarksgame/fastest/rust.html
Arguably when LLVM gets a bit better, Rust can be even faster than C because rust can be optimised in more places safely than C code can. The issue is that LLVM wasn’t written with that in mind, so some performance is left on the table.