Skip to content

Fake/deceiving benchmark numbers? #748

Locked Answered by ghost
ishtms asked this question in Q&A
Discussion options

You must be logged in to vote

Actix-web is a multithreaded server utilizing all 16 CPU cores by default. uWS is a single threaded server utilizing 1 CPU core by default. That's why the graph you refer to display "CPU-time normalized" results.

I compiled the latest actix-web using latest Rust and with release optimizations and setting workers to 1 (so that it doesn't utilize 16x the CPU-time compared with uWS). Here is the result run on a MacBook Air M1, with verified CPU-time being the same.

actix-web:
root@5d057ec32e43:/wrk# ./wrk http://localhost:8080
Running 10s test @ http://localhost:8080
2 threads and 10 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 102.44us 131.82us 6.87ms 98.93%
Req/Sec 46.95k 2.22k…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ghost
Comment options

Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
invalid This doesn't seem right
1 participant
Converted from issue

This discussion was converted from issue #748 on May 31, 2022 00:30.