patx/mrhttp-asgi

improve benchmarks in readmeby using a markdown table

Commit 1955c8b · patx · 2026-05-11T22:33:17-04:00

Changeset
1955c8bdf7ae0cc5b6907470d3fc96a6c8e38683
Parents
d87bc47216cd284b73b1c486d8024e6cf398383b

View source at this commit

Comments

No comments yet.

Log in to comment

Diff

diff --git a/README.md b/README.md
index af5410b..f945a0e 100644
--- a/README.md
+++ b/README.md
@@ -36,39 +36,9 @@ mrhttp.run(app, host="127.0.0.1", port=8080, workers=2, lifespan="on")
 The above app was ran with 8 workers on `uvicorn`, `granian`, and `mrhttp-asi`.
 It was tested with `wrk` using 4 threads and 1000 connections for 15 seconds.
 
-## Mrhttp-ASGI
+| Server          | Requests/sec | Avg Latency | Max Latency | Total Requests | Transfer/sec |
+| --------------- | ------------ | ----------- | ----------- | -------------- | ------------ |
+| **Mrhttp-ASGI** | **369,706**  | **2.49ms**  | 209.48ms    | 5,581,724      | 51.48MB      |
+| **Granian**     | 314,993      | 2.81ms      | **16.44ms** | 4,750,339      | 42.66MB      |
+| **Uvicorn**     | 95,578       | 10.90ms     | 341.61ms    | 1,436,933      | 14.68MB      |
 
-```
-  4 threads and 1000 connections
-  Thread Stats   Avg      Stdev     Max   +/- Stdev
-    Latency     2.49ms    2.17ms 209.48ms   88.60%
-    Req/Sec    93.09k     8.76k  119.14k    75.83%
-  5581724 requests in 15.10s, 777.18MB read
-Requests/sec: 369706.08
-Transfer/sec:     51.48MB
-
-```
-
-## Granian
-
-```
-  4 threads and 1000 connections
-  Thread Stats   Avg      Stdev     Max   +/- Stdev
-    Latency     2.81ms    1.54ms  16.44ms   69.06%
-    Req/Sec    79.32k    11.43k  117.37k    71.83%
-  4750339 requests in 15.08s, 643.30MB read
-Requests/sec: 314993.15
-Transfer/sec:     42.66MB
-```
-
-## Uvicorn
-
-```
-  4 threads and 1000 connections
-  Thread Stats   Avg      Stdev     Max   +/- Stdev
-    Latency    10.90ms   10.02ms 341.61ms   97.34%
-    Req/Sec    24.03k     1.51k   28.20k    81.67%
-  1436933 requests in 15.03s, 220.63MB read
-Requests/sec:  95577.79
-Transfer/sec:     14.68MB
-```