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

Linux

5864 readers
485 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
you are viewing a single comment's thread
view the rest of the comments
[–] onlinepersona@programming.dev 17 points 1 week ago* (last edited 1 week ago) (1 children)

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