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.sh of 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-controller with 1 instance of 1 CPU on CPU 0, nginx worker_processes 1 on CPU 0. 6 CPUs = 3 instances x 2 CPUs on CPUs 0-5 (the 1.0.0 report’s layout), nginx worker_processes 6 on 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 (sha256 2d713f5923a9f64b2f42ceb69dc24c967df3401284cdffa98e7e594903336271, built at e30facac with SCALWS_RELEASE=1 scripts/release-build.sh: profile-guided, http3, EL8 glibc), installed with dpkg -i over 1.0.0. /usr/bin/scalwsd sha256 78d067ae...d602, scalws-controller e8d91611...6a55. Package defaults: own HTTP/1 server and client.
  • 1.0.0: the published scalws_1.0.0-1_amd64.deb (sha256 93f9d02e9815f9a09b336c03cca0c2e8f74f827190406abdd4cfc68a66a87cc5). 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 only ReadWritePaths=-/var/log/scalws). Two 1.0.0 rows: its defaults (hyper’s HTTP/1 server and client) and “own” with http1_server: experimental and upstream_client: experimental.
  • nginx 1.31.6 (/opt/nginx-1.31.6, built from the signed source tarball) with bench/configs/nginx.conf of the same commit.
  • Bench upstream: /usr/local/bin/scalws-bench-upstream (sha256 05c7cf19...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> (sha256 343a9cd7...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 cargo or rustc and held the bench lock /var/tmp/XEON_BENCH; a sampler logged the load and any cargo/rustc every 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):

scenario1.1.0nginx 1.31.61.0.0 defaults1.0.0 own HTTP/11.1.0 / nginxgate (>= 1.05)
static-small20 80720 88020 23421 3011.006 (0.980-1.030)not met
static-1m3 6483 8193 6293 6370.957 (0.933-0.964)not met
respond37 78138 85234 34438 0430.973 (0.956-0.988)not met
proxy18 94317 83814 90718 4781.057 (1.027-1.085)met
cache-hit31 22718 47428 94032 1141.683 (1.631-1.732)met
tls-h2-static-small18 97115 34418 74118 9681.238 (1.221-1.263)met
php11 72612 59711 20311 9060.932 (0.912-0.945)not met
node10 29010 47110 22910 2320.983 (0.961-0.989)not met
python6 0576 4936 5086 5480.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:

scenariop99 1.1.0p99 nginxp99 1.0.0p99 1.0.0 ownCPU 1.1.0CPU nginxCPU 1.0.0CPU 1.0.0 ownRSS 1.1.0RSS nginx
static-small3.383.373.473.3148.447.949.847.44437
static-1m18.4717.2318.4018.27276.6261.8278.1277.34432
respond1.991.942.161.9826.725.729.426.54432
proxy3.723.925.643.8053.356.167.854.74632
cache-hit2.353.772.512.2932.354.134.931.44632
tls-h2-static-small4.084.464.144.0753.165.053.853.14938
php5.825.426.095.7587.679.291.786.44632
node11.9811.7712.0412.0671.867.782.571.64632
python11.1015.6212.0112.2490.783.2100.889.24632

6 CPUs

Requests per second (medians of 3 rounds):

scenario1.1.0nginx 1.31.61.0.0 defaults1.0.0 own HTTP/11.1.0 / nginxverdict
static-small124 386121 868118 774125 0061.021 (1.009-1.024)1.00 to 1.05, reported
static-1m11 48911 65111 47911 4790.987 (0.986-1.014)finding: below 1.00
respond228 454226 131206 284225 8270.992 (0.982-1.015)finding: below 1.00
proxy105 081104 51291 495105 0891.006 (1.005-1.007)1.00 to 1.05, reported
cache-hit185 126108 762171 010189 3841.706 (1.675-1.730)at or above 1.05
tls-h2-static-small87 56080 32790 49894 5851.090 (1.002-1.311)at or above 1.05
php28 42626 75628 28528 4711.062 (1.061-1.068)at or above 1.05
node10 00710 36110 06810 1610.963 (0.959-0.973)finding: below 1.00
python6 0356 2916 0686 0660.959 (0.892-0.967)finding: below 1.00
scenariop99 1.1.0p99 nginxp99 1.0.0p99 1.0.0 ownCPU 1.1.0CPU nginxCPU 1.0.0CPU 1.0.0 ownRSS 1.1.0RSS nginx
static-small0.720.640.760.6948.549.250.848.3122107
static-1m8.478.378.518.70524.6514.9526.1526.2124102
respond0.410.410.420.4126.426.029.226.8123102
proxy0.950.911.120.9556.957.366.156.8124108
cache-hit0.470.710.520.4832.755.135.331.9124109
tls-h2-static-small1.671.151.741.6257.566.359.659.3130130
php2.572.692.582.56119.195.2122.5118.8129104
node12.3411.9212.2812.1885.574.197.386.3125108
python13.6815.5411.9114.61118.0103.9134.1117.1124108

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.

CPUsscenario/ 1.0.0 defaults/ 1.0.0 ownspread 1.1.0spread 1.0.0spread 1.0.0 ownverdict
1static-small1.020 (1.011-1.051)0.961 (0.956-1.016)2.7 %2.0 %5.0 %no regression
1static-1m1.007 (0.986-1.014)1.001 (0.996-1.003)1.4 %1.5 %1.0 %no regression
1respond1.099 (1.082-1.121)0.991 (0.977-1.025)3.0 %0.7 %2.0 %no regression
1proxy1.275 (1.228-1.275)1.025 (0.970-1.063)3.6 %0.4 %5.5 %no regression
1cache-hit1.063 (1.041-1.088)0.972 (0.938-1.010)4.1 %1.8 %3.3 %no regression
1tls-h2-static-small1.003 (1.000-1.020)1.000 (0.986-1.002)1.3 %1.5 %0.3 %no regression
1php1.034 (1.025-1.060)0.985 (0.961-0.993)2.7 %1.8 %0.6 %no regression
1node0.998 (0.989-1.009)1.001 (0.990-1.006)1.7 %1.0 %0.6 %no regression
1python0.928 (0.925-0.998)0.926 (0.922-0.988)7.1 %1.0 %0.7 %no regression (see note)
6static-small1.044 (1.040-1.056)0.992 (0.988-0.998)0.7 %1.2 %0.6 %no regression
6static-1m1.001 (1.000-1.033)1.005 (0.999-1.031)3.0 %0.2 %0.7 %no regression
6respond1.107 (1.078-1.121)1.008 (0.993-1.028)2.1 %1.7 %1.6 %no regression
6proxy1.150 (1.145-1.163)1.003 (0.998-1.004)0.7 %1.5 %0.8 %no regression
6cache-hit1.083 (1.071-1.119)0.976 (0.975-1.005)1.9 %2.4 %1.3 %no regression
6tls-h2-static-small0.968 (0.900-1.406)0.955 (0.877-1.105)22.7 %21.8 %11.9 %no regression (connection placement)
6php1.005 (1.000-1.009)1.001 (0.996-1.003)0.6 %0.4 %0.7 %no regression
6node0.994 (0.985-0.995)0.985 (0.983-0.993)0.7 %0.3 %1.7 %no regression
6python0.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):

CPUsscenario1.1.0 rps1.0.0 rpsratio1.1.0 p99 ms1.0.0 p99 ms
1php-hello13 15412 6601.041 (1.034-1.044)5.225.43
1static-100k5 5195 4901.003 (0.998-1.018)28.8529.05
1static-1k13 24212 9951.019 (1.011-1.048)11.5911.90
6php-hello29 50429 5031.000 (1.000-1.001)3.173.11
6static-100k35 20634 9141.013 (1.008-1.016)3.423.77
6static-1k80 22978 1871.036 (1.018-1.054)1.531.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:

CPUsscenario1.1.0 rpsnginx rpsratio1.1.0 p99 msnginx p99 ms1.1.0 bytesnginx bytes1 CPU gate (>= 1.05)
1css-100k-br9 91297910.100 (9.925-10.130)15.4865.8617 03121 744met
1css-100k-gzip10 17797910.362 (10.269-10.484)15.1366.0016 69421 744met
1html-20k-br10 4622 7403.819 (3.745-3.824)14.6923.736 2367 193met
1html-20k-gzip10 7642 7423.926 (3.863-3.956)14.2923.716 4707 193met
1js-300k-br7 15418838.011 (37.464-38.253)22.003 580.7879 667111 126met
1js-300k-gzip7 02618837.311 (36.721-37.840)22.693 574.7591 848111 126met
1php-50k-gzip (c)1 9351 1661.658 (1.656-1.666)33.8055.6923 10517 259met
6css-100k-br59 1545 9269.985 (9.982-10.092)2.1713.4517 03121 744
6css-100k-gzip61 8395 91510.435 (10.435-10.584)1.9211.5216 69421 744
6html-20k-br61 92116 4663.755 (3.747-3.836)2.544.676 2367 193
6html-20k-gzip64 71016 4543.931 (3.908-4.004)2.105.146 4707 193
6js-300k-br43 3371 12238.635 (38.514-38.732)2.8259.3879 667111 126
6js-300k-gzip42 7801 12238.121 (38.098-38.363)2.7259.4791 848111 126
6php-50k-gzip (c)7 9884 5251.813 (1.700-1.826)10.9016.5123 10517 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):

CPUsscenario(a)(b)(c)1 CPU gate (>= 1.05)
1proxy-1k1.133 (1.129-1.154)1.088 (1.088-1.183)1.094 (1.090-1.140)met
1proxy-20k-css1.225 (1.221-1.253)1.208 (1.180-1.255)1.462 (1.453-1.491)met
6proxy-1k1.031 (1.026-1.040)1.092 (1.083-1.097)1.073 (1.063-1.096)
6proxy-20k-css1.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.