Skip to content

cpeak: add CON-1M and CON-1M-TLS, gzip level 1 - #1885

Open
agile8118 wants to merge 2 commits into
http-arena:mainfrom
agile8118:cpeak-con-1m
Open

agile8118 wants to merge 2 commits into
http-arena:mainfrom
agile8118:cpeak-con-1m

Conversation

@agile8118

Copy link
Copy Markdown
Contributor

Description

Updates the cpeak (Rust) entry. It stays on cpeak 0.4.0.

  • Adds the connections-1m and connections-1m-tls tests to the test list. Nothing new in the code: cpeak
    already listens on every address ([::], dual-stack), has no connection cap, and keeps idle keep-alive
    connections for 30 seconds.
  • json-comp: the entry sets gzip to level 1 (nginx's default) instead of Cpeak's default 6 (src/main.rs). The
    description and README say so.

./scripts/validate.sh cpeak passes locally.


PR Commands — comment on this PR to trigger (requires collaborator approval):

Command Description
/benchmark -f <framework> Run every test the framework subscribes to
/benchmark -f <framework> -t <test> Run one test only
/benchmark -f <framework> -t <t1>,<t2>,... Run several tests in one job: one approval, one results commit, untouched tests keep their numbers
/benchmark -f <framework> --save Run and save results (updates the leaderboard on merge)
/benchmark -f <framework> -t <test> --save Run one test and save results
/benchmark -f <framework> --compare <other> Measure the deltas against another framework instead of this one
/benchmark-multiple -f <fw1>,<fw2>,... Benchmark several frameworks in one run — takes -t and --save too; saved results land in a single commit
/benchmark-multiple --save No -f needed: benchmark and save every framework the PR touches
/benchmark-test -t <test> Benchmark all enabled frameworks subscribed to <test> and save the results
/spec -f <framework> Run the protocol-compliance suites the framework lists in spec in its meta.json
/spec -f <framework> --save Run them and save the scores to site/data/spec/ (lands with the merge, like saved results)
/resilience -f <framework> --save Run the resilience suite and save the verdicts to site/data/resilience/

For /benchmark, always specify -f <framework>; the flags combine in any order. Results come back as a comment with a per-profile table of RPS, p99, CPU and memory — one table per framework on multi runs. A new benchmark comment while a run is in flight queues behind it (one deep) instead of cancelling it. /benchmark, /spec and /resilience share this queue, and GitHub keeps only one waiting run per PR: a third request replaces the waiting one without a message. So send one command for all the frameworks, with a list: /spec -f <fw1>,<fw2> --save, /resilience -f <fw1>,<fw2> --save. For multi-framework PRs (dependency bumps, same-language refactors) prefer /benchmark-multiple, which runs everything in a single job and commits all saved results together, so no run overwrites another. --compare works on single-framework runs only.

A /benchmark without -t also runs the compliance suites, and its --save saves their scores with the results. /spec runs the suites alone; without -f it runs them for every framework the PR touches. See Compliance.

What the deltas are measured against. By default, this framework's own results published on main - answering "did this change help?". When you are tuning a variant or a successor entry, --compare re-bases them on another entry instead:

/benchmark -f genhttp --compare genhttp-kestrel

The reply states which baseline it used, and profiles the other framework does not run show n/a rather than a delta.


Run benchmarks locally

You can validate and benchmark your framework locally with the lite script — no CPU pinning, fixed connection counts, all load generators run in Docker.

./scripts/validate.sh <framework>
./scripts/benchmark-lite.sh <framework> baseline
./scripts/benchmark-lite.sh --load-threads 4 <framework>

Requirements: Docker Engine on Linux. Load generators (gcannon, h2load, h2load-h3, wrk) are built as self-contained Docker images on first run.

@agile8118

Copy link
Copy Markdown
Contributor Author

/benchmark -f cpeak --save

@github-actions

Copy link
Copy Markdown
Contributor

👋 Benchmark request received. A collaborator will review and approve the run.

@github-actions

Copy link
Copy Markdown
Contributor

Benchmark Results

Framework: cpeak | Test: all tests

Test Conn RPS Rate CPU/req p99 p99.9 CPU Mem Δ RPS Δ Mem
baseline 4096 2,925,144 — — — — 6214.3% 233MiB +0.9% -5.7%
pipelined 4096 16,780,921 — — — — 6740.4% 254MiB +0.5% -4.9%
limited-conn 4096 2,375,667 — — — — 6455.9% 307MiB +2.6% -1.3%
json-comp 4096 750,135 — — — — 6326.2% 354MiB +46.5% -3.5%
json-comp 16384 727,931 — — — — 6329.6% 794MiB +42.9% -3.9%
json-tls 4096 1,444,240 — — — — 6202.6% 291MiB +0.9% -4.6%
8gbit 512 49,178 0.9836 45.72us 119.0us 2013.0us 206.9% 161MiB -0.3% -3.0%
async-db 1024 315,163 — — — — 3105.5% 240MiB NEW NEW
latency-1m 1024 997,732 0.9977 24.82us 181.0us 4190.0us 2717.1% 176MiB ~0% +3.5%
latency-10k 1024 9,981 0.9981 27.48us 107.0us 250.0us 26.1% 174MiB ~0% ~0%
async 32000 2,415,505 — — — — 6236.7% 909MiB +1.3% -11.2%
connections-1m-tls 1000000 249,955 0.9998 39.44us 119.0us 159.0us 1482.2% 31.6GiB NEW NEW
connections-1m 1000000 250,001 1.0000 34.91us 140.0us 186.0us 865.6% 23.9GiB NEW NEW

Composite score, main against this run, in the board's default view:

Family main this run Δ
HTTP/1.1 5218.2 (10 of 114) 6190.7 (5 of 114) +972.5
Database - 889.4 (7 of 12) -

The results on main were measured in another session, so a few points up or down can be the machine and not the change.

Full log
    "rate": 7813,
    "launched": 31250,
    "window_requests": 156271,
    "window_s": 20.0
   },
   {
    "addr": "127.0.0.16",
    "connections": 31250,
    "rate": 7813,
    "launched": 31250,
    "window_requests": 156252,
    "window_s": 20.0
   },
   {
    "addr": "127.0.0.17",
    "connections": 31250,
    "rate": 7812,
    "launched": 31250,
    "window_requests": 156245,
    "window_s": 20.0
   },
   {
    "addr": "127.0.0.18",
    "connections": 31250,
    "rate": 7812,
    "launched": 31250,
    "window_requests": 156239,
    "window_s": 20.0
   },
   {
    "addr": "127.0.0.19",
    "connections": 31250,
    "rate": 7812,
    "launched": 31250,
    "window_requests": 156240,
    "window_s": 20.0
   },
   {
    "addr": "127.0.0.20",
    "connections": 31250,
    "rate": 7812,
    "launched": 31250,
    "window_requests": 156249,
    "window_s": 20.0
   },
   {
    "addr": "127.0.0.21",
    "connections": 31250,
    "rate": 7812,
    "launched": 31250,
    "window_requests": 156236,
    "window_s": 20.0
   },
   {
    "addr": "127.0.0.22",
    "connections": 31250,
    "rate": 7812,
    "launched": 31250,
    "window_requests": 156242,
    "window_s": 20.0
   },
   {
    "addr": "127.0.0.23",
    "connections": 31250,
    "rate": 7812,
    "launched": 31250,
    "window_requests": 156246,
    "window_s": 20.0
   },
   {
    "addr": "127.0.0.24",
    "connections": 31250,
    "rate": 7812,
    "launched": 31250,
    "window_requests": 156245,
    "window_s": 20.0
   },
   {
    "addr": "127.0.0.25",
    "connections": 31250,
    "rate": 7812,
    "launched": 31250,
    "window_requests": 156239,
    "window_s": 20.0
   },
   {
    "addr": "127.0.0.26",
    "connections": 31250,
    "rate": 7812,
    "launched": 31250,
    "window_requests": 156242,
    "window_s": 20.0
   },
   {
    "addr": "127.0.0.27",
    "connections": 31250,
    "rate": 7812,
    "launched": 31250,
    "window_requests": 156238,
    "window_s": 20.0
   },
   {
    "addr": "127.0.0.28",
    "connections": 31250,
    "rate": 7812,
    "launched": 31250,
    "window_requests": 156242,
    "window_s": 20.0
   },
   {
    "addr": "127.0.0.29",
    "connections": 31250,
    "rate": 7812,
    "launched": 31250,
    "window_requests": 156245,
    "window_s": 20.0
   },
   {
    "addr": "127.0.0.30",
    "connections": 31250,
    "rate": 7812,
    "launched": 31250,
    "window_requests": 156243,
    "window_s": 20.0
   },
   {
    "addr": "127.0.0.31",
    "connections": 31250,
    "rate": 7812,
    "launched": 31250,
    "window_requests": 156245,
    "window_s": 20.0
   },
   {
    "addr": "127.0.0.32",
    "connections": 31250,
    "rate": 7812,
    "launched": 31250,
    "window_requests": 156242,
    "window_s": 20.0
   }
  ]
 },
 "connections": 1000000,
 "launched": 1000000,
 "connections_open": 1000000,
 "duration_s": 20.0,
 "requests": 5000046,
 "bytes": 510004692,
 "achieved_rate": 250002.3,
 "target_rate": 250000,
 "rate_ratio": 1.0,
 "bytes_per_sec": 25500234.6,
 "max_schedule_lag_us": 0,
 "server_cpu_usec": 175418608,
 "latency_us": {
  "min": 32,
  "mean": 77.7,
  "max": 1445,
  "p50": 74,
  "p75": 87,
  "p90": 102,
  "p99": 143,
  "p99_9": 193,
  "p99_99": 285
 },
 "status_codes": {
  "1xx": 0,
  "2xx": 5000046,
  "3xx": 0,
  "4xx": 0,
  "5xx": 0
 },
 "errors": {
  "connect": 0,
  "read": 0,
  "write": 0,
  "timeout": 0,
  "deadline": 0,
  "non_2xx_3xx": 0
 },
 "ramp_connect_errors": 0
}
[info] CPU 878.4% | Mem 23.9GiB
[info] run 2 wins on score

=== Best: 250001 req/s (CPU: 865.6%, Mem: 23.9GiB) ===
[info] exact CPU: 174.56 core-seconds | 34.912 us/req
=== Fixed-rate: cpu/req 34.91us | p99 140.0us | p99.9 186.0us | rate_ratio 1.0000 ===
=== Connections: 1000000 open of 1000000 | connect errors in the window 0 ===
[info] saved results/connections-1m/1000000/cpeak.json
httparena-bench-cpeak
httparena-bench-cpeak
[info] rebuilding site/data/*.json
[updated] /home/diogo/actions-runner/_work/HttpArena/HttpArena/site/data/frameworks.json
[updated] /home/diogo/actions-runner/_work/HttpArena/HttpArena/site/data/results/cpeak.json - 13 new, 13 total
[updated] /home/diogo/actions-runner/_work/HttpArena/HttpArena/site/data/current.json
[info] done
httparena-postgres
[info] restoring loopback MTU to 65536

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant