[PR #755] [MERGED] perf_bench --warm: measure later starts, after the caches are built #2781

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

📋 Pull Request Information

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

Base: main ← Head: bench/warm-start


📝 Commits (1)

  • 4ae51c1 perf_bench --warm: measure a later start, after a first one built the caches

📊 Changes

1 file changed (+16 additions, -0 deletions)

View changed files

📝 tools/perf_bench.py (+16 -0)

📄 Description

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

What

tools/perf_bench.py --warm first starts the game once, unmeasured, in the same game folder: to the title screen, then quit. Only then does it take the measured run. That first start builds what later starts reuse (the content-mod root from #756, the block-behaviour snapshot), so the measured run is what a player sees every day after the first launch. Without --warm, nothing changes.

Why

With content mods, the first start and later starts differ by about a minute (see #756). Modpack numbers against NeoForge need both.

Checks

  • python3 -m py_compile tools/perf_bench.py.
  • Used for the warm row in #756: --game horizon --port-work ~/m4work/atm10-40 --warm --offscreen, RD 8.
  • Parity: tools only, no harness depends on tools/perf_bench.py.

🤖 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/755 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/17/2026 **Status:** ✅ Merged **Merged:** 10/18/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `bench/warm-start` --- ### 📝 Commits (1) - [`4ae51c1`](https://github.com/horizon-rust/horizon/commit/4ae51c1d5ee5e8a06dda0c6aae67cddbde148909) perf_bench --warm: measure a later start, after a first one built the caches ### 📊 Changes **1 file changed** (+16 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `tools/perf_bench.py` (+16 -0) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What `tools/perf_bench.py --warm` first starts the game once, unmeasured, in the same game folder: to the title screen, then quit. Only then does it take the measured run. That first start builds what later starts reuse (the content-mod root from #756, the block-behaviour snapshot), so the measured run is what a player sees every day after the first launch. Without `--warm`, nothing changes. ## Why With content mods, the first start and later starts differ by about a minute (see #756). Modpack numbers against NeoForge need both. ## Checks - `python3 -m py_compile tools/perf_bench.py`. - Used for the warm row in #756: `--game horizon --port-work ~/m4work/atm10-40 --warm --offscreen`, RD 8. - Parity: tools only, no harness depends on `tools/perf_bench.py`. 🤖 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 15:59:01 +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#2781
No description provided.