@@ -74,25 +74,26 @@ As such, these results demonstrate that the server can reliably handle at least
7474I made sure that the node express server implemented multi-threading to provide a more fair comparison with the cpp_http_server.
7575Check out ` benchmarks/node_server ` to see the node express server implementation.
7676
77- The cpp_http_server is ~ 1.693x faster in throughput or about 69.3% higher request rate. Nice!
78-
79- Calculation: 29,675.882135 RPS / 17,524.167725 RPS = ~ 1.693
80-
81- | Metric | ** C++ Server (updated)** | ** Node + Express** |
82- | ------------------ | ------------------------ | ------------------ |
83- | Target RPS | 30,000.00 | 30,000.00 |
84- | Actual RPS | 29,675.882135 | 17,524.167725 |
85- | Total requests | 296,824 | 176,924 |
86- | Dropped iterations | 3,180 | 123,126 |
87- | Avg latency | 1.12 ms | 46.88 ms |
88- | Median latency | 404.76 µs | 34.1 ms |
89- | p90 latency | 3.24 ms | 103.24 ms |
90- | p95 latency | 4.3 ms | 132.88 ms |
91- | p99 latency | 6.58 ms | 192.68 ms |
92- | Max latency | 22.7 ms | 445.75 ms |
93- | Error rate | 0.00% | 0.00% |
94- | Peak VUs | 332 | 1,693 |
95- | Iterations/sec | 29,675.882135 | 17,524.167725 |
77+ The cpp_http_server is ~ 1.45x faster in throughput or about 44.9% higher request rate. Nice!
78+
79+ Calculation: 29,675.882135 RPS / 20,468.045127 RPS = ~ 1.449
80+
81+ | Metric | ** C++ Server** | ** Node + Express** |
82+ | --------------------| ----------------| --------------------|
83+ | Target RPS | 30,000.00 | 30,000.00 |
84+ | Actual RPS | 29,675.882135 | 20,468.045127 |
85+ | Total requests | 296,824 | 205,983 |
86+ | Dropped iterations | 3,180 | 123,126 |
87+ | Avg latency | 1.12 ms | 38.99 ms |
88+ | Median latency | 404.76 µs | 30.25 ms |
89+ | p90 latency | 3.24 ms | 81.37 ms |
90+ | p95 latency | 4.3 ms | 102.58 ms |
91+ | p99 latency | 6.58 ms | 149.76 ms |
92+ | Max latency | 22.7 ms | 318.66 ms |
93+ | Error rate | 0.00% | 0.00% |
94+ | Peak VUs | 332 | 1,547 |
95+
96+
9697
9798
9899---
0 commit comments