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

Linux

5864 readers
438 users here now

A community for everything relating to the linux operating system

Also check out [email protected]

Original icon base courtesy of [email protected] and The GIMP

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 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