Skip to content

emgv/rust-net8-bench

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust Axum Sqlx vs .Net8 Dapper benchmark

Specs

  • CPU: 12th Gen Intel(R) Core(TM) i7-1265U
  • RAM: 16GB

How to run the benchmarks

  • Set the database container ip address
    • Net8: go to net-web-api-bench/Program.cs and update the placeholder <ip-database-container>
    • Axum: go to rs-web-api/src/app.rs and update the placeholder <ip-database-container>
  • Run the app (run docker compose down first if the net8 or axum containers are running already)
    cd /path/to/net-web-api-bench or cd /path/to/rs-web-api
    docker compose up -d
    

Results

  • Web API request 1 random car
    • Net8: Net8-Cars-1
    • Axum: Axum-Cars-1
  • Web API request 10 random cars
    • Net8: Net8-Cars-10
    • Axum: Axum-Cars-10
  • Web API request 100 random cars
    • Net8: Net8-Cars-100
    • Axum: Axum-Cars-100
  • Web API request 1800th prime
    • Net8: Net8-Prime-1800th
    • Axum: Axum-Prime-1800th

About

rust vs net8 benchmark

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages