144
submitted 3 months ago by cm0002@lemmy.world to c/linux@programming.dev
you are viewing a single comment's thread
view the rest of the comments
[-] onlinepersona@programming.dev 17 points 3 months ago* (last edited 3 months ago)

There's a paper about this and with C as the baseline, Rust was 4% slower for the specific tests they ran.

In these tests, Rust is actually faster than C sometimes.

So it really does depend on the workload. However, the safety that rust provides cannot be understated. It's easy to cut corners like in C, but it's difficult to do it right. Rust provides the closest result of right and fast.

Anti Commercial-AI license

this post was submitted on 29 Jan 2025
144 points (100.0% liked)

Linux

7138 readers
282 users here now

A community for everything relating to the GNU/Linux operating system

Also check out:

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 2 years ago
MODERATORS