Rust applications are faster than their C counterparts

Rust Linux Kernel

Rust is a programming language compiled, general-purpose, and multi-paradigm, its goal is to be a good language for building large client and server-side programs that run on the Internet.

This has led to a feature set with an emphasis in security, control of memory distribution and concurrency. 

Besides that safe code performance is expected to be slower than C ++, if performance is the only consideration, but when compared to C ++ code made to take precautions comparable to Rust, the latter may be even faster.

And it is not surprising that by now many programmers and developers start turning to Rust And it is that even several Linux Kernel developers have expressed their interest in being able to migrate the Kernel to this language and even Linus Torvalds himself has given good comments about Rust.

Taking this opinion from informed observers, It seems that this is the future of system programming rather than the C language.

In fact, experts say it offers better software security guarantees than the C / C + pair as recent benchmarks even suggest that Rust applications are faster than their C counterparts.

Programming languages ​​come face to face in various fields, including binary tree mapping (and deallocation) and Mandelbrot set display on a quad-core Intel i5-3330 clocked at 3 gigahertz and equipped with nearly 16GB of RAM.

Benchmarks only reveal comparative figures for faster versions of programs for a given language pair. The source codes for these are available in the case of the Rust / C pair for the Mandelbrot benchmark:

The explanation for the growing interest of actors in the systems programming sector is based on this type of observation.

In the third quarter of 2019, we were already talking about the possible entry in the Linux kernel of a framework to configure drivers in the Rust programming language.

Since last year, the Linux community has been thinking about how to integrate Mozilla Research language support in the build system.

"We need to take the same support approach as compilers and check the availability of various compilation flags at the configuration stage," said Linus.

The point with the Rust language is that earned recognition as "most loved" by developers used to the platform for questions and answers on IT-related topics: StackOverflow.

At the close of the 2019 edition of its survey, which mobilized nearly 90.000 workers in the computer programming sector, the language accounted for 83,5% of the positive returns.

Therefore, nearly 75,000 developers in this Stack Overflow survey have indicated that they use the Rust language and will continue to use it; that is, developers who, after some experiments with the language, fell in love with it.

This is yet another survey conducted this time by the language development team and published in the first quarter of the previous year, shedding light on the fact that language is still used primarily for personal projects. Main reason: lack of adoption by companies.

Subsequently, the situation is changing, since the language begins to benefit from the support of the players in the computer industry and not least.

To date, there is a Rust language projection for Windows Runtime APIs. This is a Microsoft ad that appeared in May of the previous year.

In this way, Rust unites C ++ with the Rust / WinRT library, which opens the possibility for Rust developers to configure components and drivers for Windows.

Benchmarks source:

The content of the article adheres to our principles of editorial ethics. To report an error click here!.

Be the first to comment

Leave a Comment

Your email address will not be published. Required fields are marked with *



  1. Responsible for the data: AB Internet Networks 2008 SL
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.