Skip to content

Julia iouring amanica - #518

Merged
arjaythedev merged 27 commits into
arjaythedev:mainfrom
amanica:julia-iouring-amanica
Dec 4, 2026
Merged

arjaythedev merged 27 commits into
arjaythedev:mainfrom
amanica:julia-iouring-amanica

Conversation

@amanica

@amanica amanica commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Some memory and cpu improvments

arjaythedev added a commit that referenced this pull request Nov 19, 2026
…#472)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@arjaythedev

Copy link
Copy Markdown
Owner

Thanks for the follow-up! Benchmarked on the 1 vCPU / 2 GB box (direct, no Nginx), commit a19d62f:

  • Score: 210,000 users held 5 min (42/42 tests)
  • 20,575 req/s, p95 35.0 ms / p99 189.9 ms, 0 errors
  • 87 % CPU, 39 µs per request, 658 MB peak
  • 220,000 failed the 2-minute probe on p95/p99 (788 ms / 1.80 s at 89 % CPU, 0 errors); 240,000 on p95/p99 (1.01 / 2.24 s at 94 % CPU)

That's just below your merged #472 row (220,000), so under the follow-up rule I'm not merging this one: the leaderboard keeps #472's row and this run is in a footnote. I'll leave the PR open. If a later push beats 220,000 it gets merged and the row moves.

— benchmark agent

arjaythedev added a commit that referenced this pull request Nov 20, 2026
…#472)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@arjaythedev

Copy link
Copy Markdown
Owner

Re-ran this at e4b4d12 (PRAGMA mmap_size=0), direct, on the same 1 vCPU / 2 GB box.

Score: 219,000 users held for 5 minutes — 21,381 req/s, p95 29.5 ms / p99 180.7 ms, 0 errors, 86 % CPU (37 µs/request), 1,065 MB peak. 42/42 tests, CI green.

  • 230,000 passed the 2-minute probe but failed the 5-minute hold on p99 (1.58 s at 90 % CPU, 0 errors)
  • 240,000 failed the 2-minute probe on p95/p99 (596 ms / 1.53 s at 92 % CPU)

That's a bit better than a19d62f (210,000), but still just under the merged #472 row (220,000), so per the follow-up rule I'm not merging it: the leaderboard keeps #472's row and this score goes in its footnote. The PR stays open — if a later commit beats 220,000 I'll re-run it and merge.

— benchmark agent

arjaythedev added a commit that referenced this pull request Nov 28, 2026
…t merged)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@arjaythedev

Copy link
Copy Markdown
Owner

Thanks for the PGO update! Benchmarked on the 1 vCPU / 2 GB box (direct, no Nginx), commit b51ffb3. The profile is recorded by build.sh on the box, so that part is fine.

  • Score: 199,000 users held 5 min (42/42 tests)
  • 19,560 req/s, p95 17.1 ms / p99 590.5 ms, 0 errors
  • 78 % CPU, 37 µs per request, 659 MB peak
  • 209,000 and 220,000 failed the 5-minute hold on p95/p99 (633 ms / 1.34 s at 83 % CPU; 261 ms / 1.15 s at 85 % CPU, 0 errors); 230,000 failed the 2-minute probe (p95/p99 3.24 / 8.33 s at 91 % CPU)

That's below your merged #472 row (220,000), so under the follow-up rule I'm not merging this one: the leaderboard keeps #472's row and this run goes in its footnote. The PR stays open, and if a later push beats 220,000 it gets merged and the row moves up.

— benchmark agent

arjaythedev added a commit that referenced this pull request Dec 3, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@arjaythedev

Copy link
Copy Markdown
Owner

Re-ran julia-iouring-amanica at 70e14b0 (batched completion wait + SWAR JSON escaping) on the $12 box (1 vCPU / 2 GB, direct):

208,000 users held for 5 minutes: 20,390 req/s, p95 11.4 ms / p99 58.1 ms, 0 % errors, 71 % CPU (32 µs per request), 651 MB peak. 42/42 tests pass.

  • 230,000 and 219,000 failed the 5-minute hold on p99 (1.95 s and 3.40 s, 0 errors)
  • 240,000 failed the 2-minute probe on p95/p99 (567 ms / 1.23 s at 80 % CPU)

Latency at the score is a lot tighter than the earlier runs (p99 58 ms vs 190 ms at a19d62f), and CPU per request dropped too, but the ceiling is still just under your merged #472 row (220,000). Follow-ups are only merged when they beat the merged row, so this stays open with the score in the leaderboard footnote. Push again any time and it'll be re-run.

— benchmark agent

amanica pushed a commit to amanica/twelve-dollar-server-challenge that referenced this pull request Dec 4, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
arjaythedev added a commit that referenced this pull request Dec 4, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@arjaythedev

Copy link
Copy Markdown
Owner

Re-ran julia-iouring-amanica at 1040330 (20 ms write window) on the $12 box (1 vCPU / 2 GB, direct):

257,000 users held for 5 minutes: 24,728 req/s, p95 83.2 ms / p99 341.6 ms, 0 % errors, 81 % CPU (30 µs per request), 1,064 MB peak. 42/42 tests pass.

  • 260,000 and 270,000 passed the 2-minute probe; 270,000 failed the 5-minute hold on p95/p99 (608 ms / 1.70 s at 88 % CPU, 0 errors)
  • 280,000 failed the 2-minute probe on p95/p99 (1.13 s / 2.01 s at 91 % CPU)

That's a big jump: it beats your merged #472 row (220,000), so I'm merging this at 1040330 and the leaderboard row moves to #518 at 257,000 (rank 36). Nice work!

— benchmark agent

@arjaythedev
arjaythedev merged commit 3eabbf3 into arjaythedev:main Dec 4, 2026
2 checks passed
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.

2 participants