[PR #936] [MERGED] Benchmark: Horizon's server against vanilla with mixed bots, equal work (server_bench work table) #2926

Closed
opened 2026-11-02 16:00:11 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/936
Author: @ludovic111
Created: 10/18/2026
Status: ✅ Merged
Merged: 10/18/2026
Merged by: @ludovic111

Base: main ← Head: feat/server-bench-equal-work


📝 Commits (2)

  • f1d5bf5 server_bench: compare each bot count's work across servers, and flag runs that aren't equal
  • 32a37e8 Benchmark: Horizon's server against vanilla 26.3 with mixed bots, equal work

📊 Changes

6 files changed (+1354 additions, -3 deletions)

View changed files

➕ benchmarks/server-equal-mixed-2026-10-18/README.md (+137 -0)
➕ benchmarks/server-equal-mixed-2026-10-18/load.txt (+702 -0)
➕ benchmarks/server-equal-mixed-2026-10-18/mixed-equal.json (+421 -0)
📝 docs/server.md (+16 -1)
➕ tests/test_server_bench.py (+32 -0)
📝 tools/server_bench.py (+46 -2)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

What

The equal-work rerun of the mixed-bots benchmark, published as benchmarks/server-equal-mixed-2026-10-18/ (README, report JSON, load log), with docs/server.md section 9 updated.

  • tools/server_bench.py: a work table. After the runs it compares, at each bot count, every server's chunks sent a second and first-time chunks a second with the busiest server's. It flags any run more than 10 % apart (or more than a chunk a second when there are few). The report keeps it as work. A mixed pass's table row now shows chunks per bot instead of None. tests/test_server_bench.py covers the comparison.
  • The run: --behaviour mixed --explore-speed 0.8 --warmup 300, 1/10/25/50 bots, with Horizon as horizon-engine (the server build from #916, installed from its archive by install.sh --archive).

Results (ThinkPad, i7-7500U 4 threads; servers at nice 19; bots on the Mac mini)

Bots Horizon MSPT vanilla MSPT Horizon RSS vanilla RSS Work
1 1.77 11.34 0.69 GB 3.40 GB equal
10 4.74 34.30 0.86 GB 3.71 GB equal (61.4 / 61.7 chunks/s)
25 11.72 50.45 (19.8 TPS) 0.95 GB 3.87 GB same chunks/s (158.6 / 157.6); vanilla +2.5 first-time chunks/s while catching up
50 23.82 (20 TPS) stopped by its watchdog (a 60 s tick, 30 s after the last join) 1.03 GB

No bot failed or waited for its chunk, and nothing was resent. In the first run, vanilla's walking bots got 640–1100 chunks each, against 5400–6100 here, which is why vanilla held 50 bots there and not here.

How the load was made equal

Explore bots fly at 0.8 blocks/s, so every bot's path is fixed and the same on both servers (a bot only stops while its own chunk is missing, which never happened). The warm-up is 300 s: a first pass with 60 s (aborted after 10 bots) sent equal chunks/s, but vanilla was still delivering first views during the window (12.9 against 4.1 first-time chunks/s), so its window held more work.

Caveats (in the README)

  • One pass. The desktop didn't wake (power wake desktop timed out), so it ran on the 4-thread ThinkPad, where both servers are CPU-bound from 25 bots.
  • server_bench.py stopped after vanilla's 50-bot crash, before writing its report (its process was gone; nothing in the logs says why). The JSON is the run lines it printed, plus the vanilla 50 entry from that server's log. The work table was computed with server_bench.work.
  • After the run the ThinkPad was taken by another agent's game, so vanilla at 50 wasn't repeated.

How tested

python3 -m unittest tests.test_server_bench   3 tests OK
python3 -m unittest discover -s tests         the same 2 errors as on main (parity-runner reuse tests, environment)

No Rust changed.

Needs Ludovic

Nothing. A second pass on the desktop would firm up the 50-bot numbers whenever it is awake and free.

Kira: card#29.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/936 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/18/2026 **Status:** ✅ Merged **Merged:** 10/18/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/server-bench-equal-work` --- ### 📝 Commits (2) - [`f1d5bf5`](https://github.com/horizon-rust/horizon/commit/f1d5bf520986b00a5b968a84d85809fca1a039fa) server_bench: compare each bot count's work across servers, and flag runs that aren't equal - [`32a37e8`](https://github.com/horizon-rust/horizon/commit/32a37e8937069331e06f03ee3751335852639095) Benchmark: Horizon's server against vanilla 26.3 with mixed bots, equal work ### 📊 Changes **6 files changed** (+1354 additions, -3 deletions) <details> <summary>View changed files</summary> ➕ `benchmarks/server-equal-mixed-2026-10-18/README.md` (+137 -0) ➕ `benchmarks/server-equal-mixed-2026-10-18/load.txt` (+702 -0) ➕ `benchmarks/server-equal-mixed-2026-10-18/mixed-equal.json` (+421 -0) 📝 `docs/server.md` (+16 -1) ➕ `tests/test_server_bench.py` (+32 -0) 📝 `tools/server_bench.py` (+46 -2) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What The equal-work rerun of the mixed-bots benchmark, published as `benchmarks/server-equal-mixed-2026-10-18/` (README, report JSON, load log), with docs/server.md section 9 updated. - **`tools/server_bench.py`: a work table.** After the runs it compares, at each bot count, every server's chunks sent a second and first-time chunks a second with the busiest server's. It flags any run more than 10 % apart (or more than a chunk a second when there are few). The report keeps it as `work`. A mixed pass's table row now shows chunks per bot instead of `None`. `tests/test_server_bench.py` covers the comparison. - **The run:** `--behaviour mixed --explore-speed 0.8 --warmup 300`, 1/10/25/50 bots, with Horizon as `horizon-engine` (the server build from #916, installed from its archive by `install.sh --archive`). ## Results (ThinkPad, i7-7500U 4 threads; servers at nice 19; bots on the Mac mini) | Bots | Horizon MSPT | vanilla MSPT | Horizon RSS | vanilla RSS | Work | |---:|---:|---:|---:|---:|---| | 1 | 1.77 | 11.34 | 0.69 GB | 3.40 GB | equal | | 10 | 4.74 | 34.30 | 0.86 GB | 3.71 GB | equal (61.4 / 61.7 chunks/s) | | 25 | 11.72 | 50.45 (19.8 TPS) | 0.95 GB | 3.87 GB | same chunks/s (158.6 / 157.6); vanilla +2.5 first-time chunks/s while catching up | | 50 | 23.82 (20 TPS) | stopped by its watchdog (a 60 s tick, 30 s after the last join) | 1.03 GB | | | No bot failed or waited for its chunk, and nothing was resent. In the first run, vanilla's walking bots got 640–1100 chunks each, against 5400–6100 here, which is why vanilla held 50 bots there and not here. ## How the load was made equal Explore bots fly at 0.8 blocks/s, so every bot's path is fixed and the same on both servers (a bot only stops while its own chunk is missing, which never happened). The warm-up is 300 s: a first pass with 60 s (aborted after 10 bots) sent equal chunks/s, but vanilla was still delivering first views during the window (12.9 against 4.1 first-time chunks/s), so its window held more work. ## Caveats (in the README) - One pass. The desktop didn't wake (`power wake desktop` timed out), so it ran on the 4-thread ThinkPad, where both servers are CPU-bound from 25 bots. - `server_bench.py` stopped after vanilla's 50-bot crash, before writing its report (its process was gone; nothing in the logs says why). The JSON is the run lines it printed, plus the vanilla 50 entry from that server's log. The `work` table was computed with `server_bench.work`. - After the run the ThinkPad was taken by another agent's game, so vanilla at 50 wasn't repeated. ## How tested ``` python3 -m unittest tests.test_server_bench 3 tests OK python3 -m unittest discover -s tests the same 2 errors as on main (parity-runner reuse tests, environment) ``` No Rust changed. ## Needs Ludovic Nothing. A second pass on the desktop would firm up the 50-bot numbers whenever it is awake and free. Kira: card#29. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 16:00:11 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#2926
No description provided.