This project aims to compare the performance of web APIs built using Axum from the Rust ecosystem and Elysia from the Bun runtime. We'll measure various metrics such as average latency, requests per second, and data transfer rates.
- Docker
wrk
(e.g., you can install it usingbrew install wrk
on macOS orsudo apt-get install wrk
on Ubuntu)
-
Clone the Repository
git clone https://github.com/thanet-s/rust-axum-vs-bun-elysia.git cd rust-axum-vs-bun-elysia
-
Run the Performance Tests
chmod +x loadtest.sh ./loadtest.sh
-
Generate the Performance Graphs
After the tests are completed, the performance comparison graphs will be generated and saved to the
performance_graphs
directory.
Navigate to the performance_graphs
directory to view the generated performance comparison graphs.
If you have suggestions or improvements, feel free to open an issue or submit a pull request.
This project is under the MIT License. See LICENSE for more information.
- The Axum team for their robust Rust framework.
- The Elysia team for their outstanding framework tailored for the Bun runtime.