Skip to content

Some tests related to checking the performance and functionality of the Rust language

License

Notifications You must be signed in to change notification settings

Flaiers/rust-tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust language tests

Install Rust

Described in this repository: Flaiers/the-rust


Install project

git clone [email protected]:Flaiers/rust-tests.git

Install wrk

git clone [email protected]:wg/wrk.git ; \
cd wrk ; \
make -j 4 ; \
sudo cp wrk /usr/bin/

Run

wrk -c200 -t4 -d120s https://127.0.0.1:8000

 

Actix-web

Easy requests, no db

I run:

cargo run

Result:

Running 2m test @ https://127.0.0.1:8000
  4 threads and 200 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     7.78ms    2.71ms  74.73ms   93.75%
    Req/Sec     6.57k   736.59     7.39k    90.85%
  3139974 requests in 2.00m, 263.52MB read
Requests/sec:  26161.21
Transfer/sec:      2.20MB

 

Rocket

Easy requests, no db

I run:

cargo run --release

Result:

Running 2m test @ https://127.0.0.1:8000
  4 threads and 200 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     3.27ms    2.28ms  53.43ms   81.90%
    Req/Sec    16.05k     2.06k   43.41k    78.70%
  7666411 requests in 2.00m, 1.77GB read
Requests/sec:  63835.70
Transfer/sec:     15.10MB

About

Some tests related to checking the performance and functionality of the Rust language

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages