Internals: benchmark reports
ScalWS 1.1.0 on bare metal: the installed package against nginx and 1.0.0 (2026-11-19)
The release measurement of 1.1.0 (release gate 4): the 1.1.0 .deb installed on the Xeon
host as 1.0.0 was in 2026-11-12-xeon-1.0.0.md, against nginx 1.31.6 and against the
published 1.0.0 package, at 1 CPU and at 6 CPUs, plus the compression rows of
2026-11-15-compression.md and the edge rows of 2026-11-18-edge.md.
Result.
- 1 CPU: the goal of at least 1.05x nginx in every scenario is not met. 1.1.0 is ahead on proxy (1.06x), cache hits (1.68x) and TLS + HTTP/2 (1.24x), and on every compression and edge row (1.09x to 38x). It is below 1.05x on small static files (1.01x), 1 MiB files (0.96x), fixed responses (0.97x), PHP (0.93x), Node.js (0.98x) and Python (0.93x).
- 6 CPUs: ahead on cache hits (1.71x), TLS + HTTP/2 (1.09x) and PHP (1.06x); level on small static files (1.02x) and proxy (1.01x); below nginx on 1 MiB files (0.99x), fixed responses (0.99x), Node.js (0.96x) and Python (0.96x).
- Against 1.0.0: no regression. No scenario is more than 3 % below 1.0.0 beyond the measured spread, against 1.0.0’s defaults or against 1.0.0 with the own HTTP/1 server and client (the defaults of 1.1). Against 1.0.0’s defaults, 1.1.0 serves fixed responses 1.10x and 1.11x, the proxy 1.28x and 1.15x (1 and 6 CPUs).
- The owner released 1.1.0 with these numbers. The rows below 1.05x at 1 CPU and below 1.00x at 6 CPUs are scheduled for the 1.2 performance work.
Method
Host: xeon, 2x Xeon E5-2650 v2 (Ivy Bridge, no AVX2), 121 GB, Ubuntu 26.04, kernel
7.0.0-43-generic (the 1.0.0 report ran on 7.0.0-38), performance governor, turbo off, no
VM or container running. Server on socket 0, the bench upstream, PHP-FPM, Node.js and
uvicorn on CPUs 6, 7, 22, 23, oha 1.16.0 on 8-15 and 24-31 (socket 1), 64 connections.
- Scenarios (
bench/run.shof commit 80269524, the scenario set of the 1.0.0 report): 10 s warm-up, 30 s measured, 3 rounds with the order of the four servers rotated from round to round; medians; ratios are the median of the per-round ratios, with the lowest and highest round in brackets. - Layouts: 1 CPU =
scalws-controllerwith 1 instance of 1 CPU on CPU 0, nginxworker_processes 1on CPU 0. 6 CPUs = 3 instances x 2 CPUs on CPUs 0-5 (the 1.0.0 report’s layout), nginxworker_processes 6on 0-5. Service sandbox on (what a new install gets), applications as external processes (SERVERS=scalws-service). - 1.1.0:
scalws_1.1.0-1_amd64.deb(sha2562d713f5923a9f64b2f42ceb69dc24c967df3401284cdffa98e7e594903336271, built at e30facac withSCALWS_RELEASE=1 scripts/release-build.sh: profile-guided, http3, EL8 glibc), installed withdpkg -iover 1.0.0./usr/bin/scalwsdsha25678d067ae...d602,scalws-controllere8d91611...6a55. Package defaults: own HTTP/1 server and client. - 1.0.0: the published
scalws_1.0.0-1_amd64.deb(sha25693f9d02e9815f9a09b336c03cca0c2e8f74f827190406abdd4cfc68a66a87cc5). Its/usr/bin/scalwsd(b547bdb2c102a46c53a755603f3fd4b2a185f22222cdcbd6ec0f37f52ec2d22a) and/usr/bin/scalws-controller(15cba033...12f0) were bind-mounted over the installed 1.1.0 files for the 1.0.0 rows, so the unit, user and sandbox are the installed ones (the 1.1.0 unit adds onlyReadWritePaths=-/var/log/scalws). Two 1.0.0 rows: its defaults (hyper’s HTTP/1 server and client) and “own” withhttp1_server: experimentalandupstream_client: experimental. - nginx 1.31.6 (
/opt/nginx-1.31.6, built from the signed source tarball) withbench/configs/nginx.confof the same commit. - Bench upstream:
/usr/local/bin/scalws-bench-upstream(sha25605c7cf19...7bec, the one of the 1.0.0 run). - Compression:
bench/compression.sh <1.1.0 scalwsd> <1.0.0 scalwsd>(parts a, b, c, 1 and 6 CPUs, 3 rounds, 5 s + 15 s): part (a) compares mode off with the 1.0.0 binary, which has no compression. Edge:bench/edge.sh <1.1.0 scalwsd> <bench upstream built at 80269524>(sha256343a9cd7...cc71). Both run the binary of the 1.1.0 package directly, as in their reports. - Every run answered 2xx only (zero non-2xx in all rows).
- Quiet machine: the runs started after 60 s without
cargoorrustcand held the bench lock/var/tmp/XEON_BENCH; a sampler logged the load and anycargo/rustcevery 10 s. One overlap: a test build on the same host ran from 02:11:39 to about 02:13:15 UTC, during the first nginx unit at 1 CPU (round 1: static-small, static-1m, respond). Without that round the 1-CPU ratios are static-small 1.006 and 0.980, static-1m 0.957 and 0.933, respond 0.973 and 0.956 (rounds 2 and 3): the same conclusions. No build ran during any other measurement. Times: 1 CPU 02:11 to 04:04 UTC, 6 CPUs 04:04 to 05:59, compression 05:59 to 06:40, edge 06:40 to 07:05.
1 CPU
Requests per second (medians of 3 rounds):
| scenario | 1.1.0 | nginx 1.31.6 | 1.0.0 defaults | 1.0.0 own HTTP/1 | 1.1.0 / nginx | gate (>= 1.05) |
|---|---|---|---|---|---|---|
| static-small | 20 807 | 20 880 | 20 234 | 21 301 | 1.006 (0.980-1.030) | not met |
| static-1m | 3 648 | 3 819 | 3 629 | 3 637 | 0.957 (0.933-0.964) | not met |
| respond | 37 781 | 38 852 | 34 344 | 38 043 | 0.973 (0.956-0.988) | not met |
| proxy | 18 943 | 17 838 | 14 907 | 18 478 | 1.057 (1.027-1.085) | met |
| cache-hit | 31 227 | 18 474 | 28 940 | 32 114 | 1.683 (1.631-1.732) | met |
| tls-h2-static-small | 18 971 | 15 344 | 18 741 | 18 968 | 1.238 (1.221-1.263) | met |
| php | 11 726 | 12 597 | 11 203 | 11 906 | 0.932 (0.912-0.945) | not met |
| node | 10 290 | 10 471 | 10 229 | 10 232 | 0.983 (0.961-0.989) | not met |
| python | 6 057 | 6 493 | 6 508 | 6 548 | 0.931 (0.930-1.003) | not met |
p99 latency (ms), server CPU per request (µs; ScalWS: the unit’s whole cgroup) and peak RSS (MiB), medians:
| scenario | p99 1.1.0 | p99 nginx | p99 1.0.0 | p99 1.0.0 own | CPU 1.1.0 | CPU nginx | CPU 1.0.0 | CPU 1.0.0 own | RSS 1.1.0 | RSS nginx |
|---|---|---|---|---|---|---|---|---|---|---|
| static-small | 3.38 | 3.37 | 3.47 | 3.31 | 48.4 | 47.9 | 49.8 | 47.4 | 44 | 37 |
| static-1m | 18.47 | 17.23 | 18.40 | 18.27 | 276.6 | 261.8 | 278.1 | 277.3 | 44 | 32 |
| respond | 1.99 | 1.94 | 2.16 | 1.98 | 26.7 | 25.7 | 29.4 | 26.5 | 44 | 32 |
| proxy | 3.72 | 3.92 | 5.64 | 3.80 | 53.3 | 56.1 | 67.8 | 54.7 | 46 | 32 |
| cache-hit | 2.35 | 3.77 | 2.51 | 2.29 | 32.3 | 54.1 | 34.9 | 31.4 | 46 | 32 |
| tls-h2-static-small | 4.08 | 4.46 | 4.14 | 4.07 | 53.1 | 65.0 | 53.8 | 53.1 | 49 | 38 |
| php | 5.82 | 5.42 | 6.09 | 5.75 | 87.6 | 79.2 | 91.7 | 86.4 | 46 | 32 |
| node | 11.98 | 11.77 | 12.04 | 12.06 | 71.8 | 67.7 | 82.5 | 71.6 | 46 | 32 |
| python | 11.10 | 15.62 | 12.01 | 12.24 | 90.7 | 83.2 | 100.8 | 89.2 | 46 | 32 |
6 CPUs
Requests per second (medians of 3 rounds):
| scenario | 1.1.0 | nginx 1.31.6 | 1.0.0 defaults | 1.0.0 own HTTP/1 | 1.1.0 / nginx | verdict |
|---|---|---|---|---|---|---|
| static-small | 124 386 | 121 868 | 118 774 | 125 006 | 1.021 (1.009-1.024) | 1.00 to 1.05, reported |
| static-1m | 11 489 | 11 651 | 11 479 | 11 479 | 0.987 (0.986-1.014) | finding: below 1.00 |
| respond | 228 454 | 226 131 | 206 284 | 225 827 | 0.992 (0.982-1.015) | finding: below 1.00 |
| proxy | 105 081 | 104 512 | 91 495 | 105 089 | 1.006 (1.005-1.007) | 1.00 to 1.05, reported |
| cache-hit | 185 126 | 108 762 | 171 010 | 189 384 | 1.706 (1.675-1.730) | at or above 1.05 |
| tls-h2-static-small | 87 560 | 80 327 | 90 498 | 94 585 | 1.090 (1.002-1.311) | at or above 1.05 |
| php | 28 426 | 26 756 | 28 285 | 28 471 | 1.062 (1.061-1.068) | at or above 1.05 |
| node | 10 007 | 10 361 | 10 068 | 10 161 | 0.963 (0.959-0.973) | finding: below 1.00 |
| python | 6 035 | 6 291 | 6 068 | 6 066 | 0.959 (0.892-0.967) | finding: below 1.00 |
| scenario | p99 1.1.0 | p99 nginx | p99 1.0.0 | p99 1.0.0 own | CPU 1.1.0 | CPU nginx | CPU 1.0.0 | CPU 1.0.0 own | RSS 1.1.0 | RSS nginx |
|---|---|---|---|---|---|---|---|---|---|---|
| static-small | 0.72 | 0.64 | 0.76 | 0.69 | 48.5 | 49.2 | 50.8 | 48.3 | 122 | 107 |
| static-1m | 8.47 | 8.37 | 8.51 | 8.70 | 524.6 | 514.9 | 526.1 | 526.2 | 124 | 102 |
| respond | 0.41 | 0.41 | 0.42 | 0.41 | 26.4 | 26.0 | 29.2 | 26.8 | 123 | 102 |
| proxy | 0.95 | 0.91 | 1.12 | 0.95 | 56.9 | 57.3 | 66.1 | 56.8 | 124 | 108 |
| cache-hit | 0.47 | 0.71 | 0.52 | 0.48 | 32.7 | 55.1 | 35.3 | 31.9 | 124 | 109 |
| tls-h2-static-small | 1.67 | 1.15 | 1.74 | 1.62 | 57.5 | 66.3 | 59.6 | 59.3 | 130 | 130 |
| php | 2.57 | 2.69 | 2.58 | 2.56 | 119.1 | 95.2 | 122.5 | 118.8 | 129 | 104 |
| node | 12.34 | 11.92 | 12.28 | 12.18 | 85.5 | 74.1 | 97.3 | 86.3 | 125 | 108 |
| python | 13.68 | 15.54 | 11.91 | 14.61 | 118.0 | 103.9 | 134.1 | 117.1 | 124 | 108 |
At 6 CPUs, TLS + HTTP/2 varies widely from start to start for every ScalWS version (1.1.0: 84 657 to 104 532; 1.0.0: 74 325 to 94 065), nginx does not (79 759 to 84 467): with 64 long-lived HTTP/2 connections over 3 instances, how the connections fall on the instances decides the round. The 1.0.0 report’s 1.29x for this row is within that range.
Against 1.0.0
Ratio of 1.1.0 to each 1.0.0 row (median of the per-round ratios, lowest and highest round), and the spread of each server over its 3 rounds ((max - min) / median). Rule: no scenario more than 3 % below 1.0.0 beyond the measured spread.
| CPUs | scenario | / 1.0.0 defaults | / 1.0.0 own | spread 1.1.0 | spread 1.0.0 | spread 1.0.0 own | verdict |
|---|---|---|---|---|---|---|---|
| 1 | static-small | 1.020 (1.011-1.051) | 0.961 (0.956-1.016) | 2.7 % | 2.0 % | 5.0 % | no regression |
| 1 | static-1m | 1.007 (0.986-1.014) | 1.001 (0.996-1.003) | 1.4 % | 1.5 % | 1.0 % | no regression |
| 1 | respond | 1.099 (1.082-1.121) | 0.991 (0.977-1.025) | 3.0 % | 0.7 % | 2.0 % | no regression |
| 1 | proxy | 1.275 (1.228-1.275) | 1.025 (0.970-1.063) | 3.6 % | 0.4 % | 5.5 % | no regression |
| 1 | cache-hit | 1.063 (1.041-1.088) | 0.972 (0.938-1.010) | 4.1 % | 1.8 % | 3.3 % | no regression |
| 1 | tls-h2-static-small | 1.003 (1.000-1.020) | 1.000 (0.986-1.002) | 1.3 % | 1.5 % | 0.3 % | no regression |
| 1 | php | 1.034 (1.025-1.060) | 0.985 (0.961-0.993) | 2.7 % | 1.8 % | 0.6 % | no regression |
| 1 | node | 0.998 (0.989-1.009) | 1.001 (0.990-1.006) | 1.7 % | 1.0 % | 0.6 % | no regression |
| 1 | python | 0.928 (0.925-0.998) | 0.926 (0.922-0.988) | 7.1 % | 1.0 % | 0.7 % | no regression (see note) |
| 6 | static-small | 1.044 (1.040-1.056) | 0.992 (0.988-0.998) | 0.7 % | 1.2 % | 0.6 % | no regression |
| 6 | static-1m | 1.001 (1.000-1.033) | 1.005 (0.999-1.031) | 3.0 % | 0.2 % | 0.7 % | no regression |
| 6 | respond | 1.107 (1.078-1.121) | 1.008 (0.993-1.028) | 2.1 % | 1.7 % | 1.6 % | no regression |
| 6 | proxy | 1.150 (1.145-1.163) | 1.003 (0.998-1.004) | 0.7 % | 1.5 % | 0.8 % | no regression |
| 6 | cache-hit | 1.083 (1.071-1.119) | 0.976 (0.975-1.005) | 1.9 % | 2.4 % | 1.3 % | no regression |
| 6 | tls-h2-static-small | 0.968 (0.900-1.406) | 0.955 (0.877-1.105) | 22.7 % | 21.8 % | 11.9 % | no regression (connection placement) |
| 6 | php | 1.005 (1.000-1.009) | 1.001 (0.996-1.003) | 0.6 % | 0.4 % | 0.7 % | no regression |
| 6 | node | 0.994 (0.985-0.995) | 0.985 (0.983-0.993) | 0.7 % | 0.3 % | 1.7 % | no regression |
| 6 | python | 0.995 (0.864-0.999) | 0.999 (0.855-1.081) | 7.3 % | 7.2 % | 16.4 % | no regression |
Note on python at 1 CPU, the closest row: two of the three 1.1.0 starts served 6 041 and
6 057 requests per second, the third 6 471 (level with 1.0.0’s 6 483 to 6 566). In the two
slow starts the application itself used more cycles per request (app_cycles_per_req 862k
and 866k against 795k to 809k in every other start of every server), while ScalWS’s own CPU
per request was unchanged (90.5 to 91.1 µs, 1.0.0 own 89.0 to 89.7). That is the
start-to-start variance of uvicorn that bench/README.md describes, not server work; the
5 extra python starts planned to settle it were not run because 1.1.0 was released first.
The other two rows below 0.97x a 1.0.0 row, static-small and cache-hit at 1 CPU against
1.0.0 own (0.961, 0.972), are inside their spread (5.0 % and 4.1 %) and at 6 CPUs at 0.992
and 0.976.
Compression (rows of 2026-11-15-compression.md)
(a) mode off against 1.0.0, which has no compression (gate of that report: >= 0.98):
| CPUs | scenario | 1.1.0 rps | 1.0.0 rps | ratio | 1.1.0 p99 ms | 1.0.0 p99 ms |
|---|---|---|---|---|---|---|
| 1 | php-hello | 13 154 | 12 660 | 1.041 (1.034-1.044) | 5.22 | 5.43 |
| 1 | static-100k | 5 519 | 5 490 | 1.003 (0.998-1.018) | 28.85 | 29.05 |
| 1 | static-1k | 13 242 | 12 995 | 1.019 (1.011-1.048) | 11.59 | 11.90 |
| 6 | php-hello | 29 504 | 29 503 | 1.000 (1.000-1.001) | 3.17 | 3.11 |
| 6 | static-100k | 35 206 | 34 914 | 1.013 (1.008-1.016) | 3.42 | 3.77 |
| 6 | static-1k | 80 229 | 78 187 | 1.036 (1.018-1.054) | 1.53 | 1.61 |
(b) mode static against nginx gzip_comp_level 1 + gzip_static, and (c) mode all on a
50 KiB PHP page against nginx gzip on over FastCGI:
| CPUs | scenario | 1.1.0 rps | nginx rps | ratio | 1.1.0 p99 ms | nginx p99 ms | 1.1.0 bytes | nginx bytes | 1 CPU gate (>= 1.05) |
|---|---|---|---|---|---|---|---|---|---|
| 1 | css-100k-br | 9 912 | 979 | 10.100 (9.925-10.130) | 15.48 | 65.86 | 17 031 | 21 744 | met |
| 1 | css-100k-gzip | 10 177 | 979 | 10.362 (10.269-10.484) | 15.13 | 66.00 | 16 694 | 21 744 | met |
| 1 | html-20k-br | 10 462 | 2 740 | 3.819 (3.745-3.824) | 14.69 | 23.73 | 6 236 | 7 193 | met |
| 1 | html-20k-gzip | 10 764 | 2 742 | 3.926 (3.863-3.956) | 14.29 | 23.71 | 6 470 | 7 193 | met |
| 1 | js-300k-br | 7 154 | 188 | 38.011 (37.464-38.253) | 22.00 | 3 580.78 | 79 667 | 111 126 | met |
| 1 | js-300k-gzip | 7 026 | 188 | 37.311 (36.721-37.840) | 22.69 | 3 574.75 | 91 848 | 111 126 | met |
| 1 | php-50k-gzip (c) | 1 935 | 1 166 | 1.658 (1.656-1.666) | 33.80 | 55.69 | 23 105 | 17 259 | met |
| 6 | css-100k-br | 59 154 | 5 926 | 9.985 (9.982-10.092) | 2.17 | 13.45 | 17 031 | 21 744 | |
| 6 | css-100k-gzip | 61 839 | 5 915 | 10.435 (10.435-10.584) | 1.92 | 11.52 | 16 694 | 21 744 | |
| 6 | html-20k-br | 61 921 | 16 466 | 3.755 (3.747-3.836) | 2.54 | 4.67 | 6 236 | 7 193 | |
| 6 | html-20k-gzip | 64 710 | 16 454 | 3.931 (3.908-4.004) | 2.10 | 5.14 | 6 470 | 7 193 | |
| 6 | js-300k-br | 43 337 | 1 122 | 38.635 (38.514-38.732) | 2.82 | 59.38 | 79 667 | 111 126 | |
| 6 | js-300k-gzip | 42 780 | 1 122 | 38.121 (38.098-38.363) | 2.72 | 59.47 | 91 848 | 111 126 | |
| 6 | php-50k-gzip (c) | 7 988 | 4 525 | 1.813 (1.700-1.826) | 10.90 | 16.51 | 23 105 | 17 259 |
Edge features (rows of 2026-11-18-edge.md)
ScalPanel’s website route on the proxy path: (a) without the edge keys, (b) with them, (c) (b) plus gzip; nginx configured the same way per variant.
Against nginx (median of per-round ratios):
| CPUs | scenario | (a) | (b) | (c) | 1 CPU gate (>= 1.05) |
|---|---|---|---|---|---|
| 1 | proxy-1k | 1.133 (1.129-1.154) | 1.088 (1.088-1.183) | 1.094 (1.090-1.140) | met |
| 1 | proxy-20k-css | 1.225 (1.221-1.253) | 1.208 (1.180-1.255) | 1.462 (1.453-1.491) | met |
| 6 | proxy-1k | 1.031 (1.026-1.040) | 1.092 (1.083-1.097) | 1.073 (1.063-1.096) | |
| 6 | proxy-20k-css | 1.059 (1.056-1.078) | 1.122 (1.113-1.129) | 1.488 (1.478-1.491) |
ScalWS rps (a) / (b) / (c): 18 337 / 16 243 / 12 054 and 14 497 / 13 328 / 5 953 at 1 CPU, 100 212 / 95 499 / 70 988 and 76 483 / 74 676 / 36 137 at 6 CPUs. nginx: 16 069 / 14 880 / 10 950 and 11 810 / 11 058 / 4 071 at 1 CPU, 96 658 / 87 069 / 66 139 and 72 172 / 66 466 / 24 282 at 6 CPUs.
The cost of the edge keys, (b) against (a) (the 0.97 rule of that report, accepted as missed for 1.1 and moved to 1.2): 0.888 and 0.919 at 1 CPU, 0.950 and 0.975 at 6 CPUs; nginx’s own (b) against (a): 0.926, 0.936, 0.901, 0.930. The 1 KiB rows of (c), below 1.05x in the edge report before its gzip fix, are now 1.094x and 1.073x.
What is behind nginx, briefly
No new profile was made for this report (the release went ahead first). From the earlier
diagnosis on this host (2026-11-13-xeon-profile.md and the 1.1 performance plan): respond
and small static files are within a few per cent of nginx at 1 CPU, where 70 to 77 % of the
server’s cycles are the kernel’s loopback TCP path for both servers; the 6-CPU divergence is
smaller event-loop batches plus tokio’s per-wakeup cost and cache lines shared by the loops
of an instance. New in this run: with PHP at 1 CPU the server CPU is saturated and ScalWS
spends 87.6 µs per request against nginx’s 79.2; with Node.js and Python the application is
the limit and does more work per request behind ScalWS (application cycles per request at
6 CPUs: node 265k to 289k against nginx 254k to 257k), worth checking against what ScalWS
sends upstream (extra forwarded headers, the request id). static-1m costs 5 % more server CPU
per request than nginx at 1 CPU (276.6 against 261.8 µs). These are the starting points of
the 1.2 performance work.
Raw results
On the bench host in [private host path]: main-L1, main-L6 (one
directory per round and server with summary.csv, oha JSON and environment.txt), comp,
edge (rows.csv, summary.md), the drivers, and sampler.log (load and build processes
every 10 s). The round-1 nginx run at 1 CPU that overlapped the build is the one in
main-L1/run-1/nginx; it is included in the tables above.