{"id":17288921,"url":"https://github.com/devraymondsh/rust-webframeworks-benchmark","last_synced_at":"2025-03-26T18:15:48.422Z","repository":{"id":134828727,"uuid":"600795772","full_name":"devraymondsh/rust-webframeworks-benchmark","owner":"devraymondsh","description":"In this project we benchmark different Rust web frameworks to see which framework can handle more requests/second.","archived":false,"fork":false,"pushed_at":"2023-12-29T18:39:56.000Z","size":440,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-31T23:27:47.436Z","etag":null,"topics":["api","benchmark","framwork","http","http-server","rust","web"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devraymondsh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-12T16:18:42.000Z","updated_at":"2024-02-17T17:10:53.000Z","dependencies_parsed_at":"2023-12-29T19:30:36.659Z","dependency_job_id":"c6522f84-59d8-4954-97ac-e55389623903","html_url":"https://github.com/devraymondsh/rust-webframeworks-benchmark","commit_stats":null,"previous_names":["devraymondsh/rust-webframeworks-benchmark"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devraymondsh%2Frust-webframeworks-benchmark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devraymondsh%2Frust-webframeworks-benchmark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devraymondsh%2Frust-webframeworks-benchmark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devraymondsh%2Frust-webframeworks-benchmark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devraymondsh","download_url":"https://codeload.github.com/devraymondsh/rust-webframeworks-benchmark/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245708994,"owners_count":20659626,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","benchmark","framwork","http","http-server","rust","web"],"created_at":"2024-10-15T10:32:37.677Z","updated_at":"2025-03-26T18:15:48.405Z","avatar_url":"https://github.com/devraymondsh.png","language":"HTML","readme":"# Rust web frameworks benchmark\n\nIn this project we benchmark different Rust web frameworks to see which framework can handle more requests/second. We have a 512kb HTML file that each candidate should serve the directory in which the file is. The gap between these frameworks are not much and may change based on the hardware and after time with newer framework updates.\n\n### Benchmarks on Intel core i5 12400:\n|   Name  |  Version   | Requests/sec | Transfer/sec |\n|:------:|:----------:|:------------:|:------------:|\n|  Warp  |   0.3.6   |   8809.19    |    4.30GB    |\n| Hyper  |   1.1.0   |   8699.47    |    4.25GB    |\n|  Axum  |   0.7.2   |   8663.31    |    4.23GB    |\n| Gotham |   0.7.2   |   8613.04    |    4.21GB    |\n| Actix  |   4.4.1   |   7617.35    |    3.72GB    |\n| Rocket |   0.5.0   |   6595.12    |    3.22GB    |\n| Salvo  |   0.63.1   |   6233.79    |    3.04GB    |\n\n### Enter the following command to build:\n```bash\ndocker build -t devraymondsh/rust-webframeworks-benchmark .\n```\n### Enter the following command to run:\n```bash\ndocker run -it devraymondsh/rust-webframeworks-benchmark\n```\n### Enter the following command to run with custom options:\n```bash\ndocker run -e=\"RATE=50000\" -e=\"THREADS=8\" -e=\"CLIENTS=200\" -e=\"DURATION=10\" -it devraymondsh/rust-webframeworks-benchmark\n```\nFeel free to replace values with your own desire.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevraymondsh%2Frust-webframeworks-benchmark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevraymondsh%2Frust-webframeworks-benchmark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevraymondsh%2Frust-webframeworks-benchmark/lists"}