Fastest Rust Framework in 2025? 🚀 Benchmarking the Best!

Fastest Rust Framework in 2025? 🚀 Benchmarking the Best!

Machine-readable: Markdown · JSON API · Site index

Поделиться Telegram VK Бот
Транскрипт Скачать .md
Анализ с AI

Оглавление (1 сегментов)

Segment 1 (00:00 - 03:00)

In this quick video, I want to find the fastest Rust framework to use later and compare it with C++. I recently discovered that using a decade-old C++ framework like Boost. Beast and comparing it with modern Rust frameworks is not a smart decision. So, I’ll pick the fastest Rust framework based on this test, compare modern C++ frameworks in the next video, and finally compare Rust and C++ in the end. We’ll measure the latency of each request, the saturation of each application by monitoring CPU and memory usage, and gradually increase the number of clients until all applications fail to handle additional requests. I’m using AWS instead of a homelab to provide real-world performance results, similar to what you’d get in a production environment. I use m7a. large instances with 2 CPUs and 8 GB of memory, running my clients on an EKS cluster to generate load. If you want to learn more about AWS networking, EKS, best practices, and production setups, I have a full course available on YouTube. Alright, let’s go ahead and run the test. As always, you can find the source code for this test on my GitHub and send me PRs if anything needs improvement. The entire test took around two hours, and I compressed it into just a few minutes. Alright, let me run this test for one more minute, and then we’ll go over each graph one by one. First, we have requests per second. As you can see, May clearly handles more requests than the others, with Actix close behind, followed by Ntex and Axum. Next, we have latency, where lower is better. May again shows the best results, with Actix right after. Next, we have CPU usage. Finally, we have memory usage. Clearly, May has the lead, but Actix is actually very close in terms of throughput and latency. Due to its community size, for a real project, I would still choose Actix because small projects on GitHub tend to be abandoned, leaving you with an unmaintained framework. However, if you only care about performance, May is the way to go.

Другие видео автора — Anton Putra

Ctrl+V

Экстракт Знаний в Telegram

Экстракты и дистилляты из лучших YouTube-каналов — сразу после публикации.

Подписаться

Дайджест Экстрактов

Лучшие методички за неделю — каждый понедельник