Benchmarks
Rust is blazingly fast ...
Charts
- "Rust is blazingly fast", says the rust-lang website.
- and many projects also claim to be "blazingly fast".
- But let's look at evidence, not claims.
- Here are some benchmarks, and the first one is from LightningCSS.
- CSS nano took 544 ms to minify 10,000 lines of CSS.
- LightningCSS took 4 ms.
- That's 100 times faster.
- Okay we get it. It's fast.
- If you're interested in benchmarks for web applications,
- the TechEmpower benchmarks measure the number of requests that are completed per second by different web frameworks.
- and these benchmarks are designed to simulate realistic workloads.
- The entire flow of receiving a request, deserialization, communication with a database, and responding to the client, is measured.
- Rust does pretty well.
- In the CPU benchmarks game, which primarily measures CPU efficiency and Memory access,
- C, C++, and Rust are close together, we'll see why in the upcoming slides.
- Julia, Go, Java, Swift, and JS feature here as well.