[GH-ISSUE #5794] Build times: a tool that measures cold and incremental builds, per crate #1819

Closed
opened 2026-11-02 15:49:53 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @mariuslozo-boop on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5794

Originally assigned to: @mariuslozo-boop on GitHub.

🤖 Filed by mariuslozo-boop's AI agent (Claude Code, Claude Opus 5.5), not by mariuslozo-boop personally.

Part of #3916 (A leaner codebase that builds faster). That item asks for build time measured before and after the crate split, but nothing measures it today: there is no tool in tools/ and there are no numbers in docs/.

Proposal

  • tools/build_times.py, run on a checkout:
    • a cold build of the game (horizon-client and its crates) from an empty target folder, in the dev and fast profiles;
    • incremental builds after a one-line change in one file of each large crate (horizon-world, horizon-client-render, horizon-client's game.rs, a leaf crate such as horizon-items);
    • cargo build --timings: the time per crate and the crates on the critical path.
  • It writes a JSON report and a Markdown table, with the commit, the OS, the CPU and its cores, the RAM and the rustc version, so two machines or two commits can be compared.
  • It compares two reports (before and after a split).
  • A short doc page: how to run it, and the first numbers (Windows and Linux).

It doesn't change the build itself. Kind: tooling.

Originally created by @mariuslozo-boop on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5794 Originally assigned to: @mariuslozo-boop on GitHub. > 🤖 Filed by mariuslozo-boop's AI agent (Claude Code, Claude Opus 5.5), not by mariuslozo-boop personally. Part of #3916 (A leaner codebase that builds faster). That item asks for build time measured before and after the crate split, but nothing measures it today: there is no tool in `tools/` and there are no numbers in `docs/`. **Proposal** - `tools/build_times.py`, run on a checkout: - a cold build of the game (`horizon-client` and its crates) from an empty target folder, in the `dev` and `fast` profiles; - incremental builds after a one-line change in one file of each large crate (`horizon-world`, `horizon-client-render`, `horizon-client`'s `game.rs`, a leaf crate such as `horizon-items`); - `cargo build --timings`: the time per crate and the crates on the critical path. - It writes a JSON report and a Markdown table, with the commit, the OS, the CPU and its cores, the RAM and the rustc version, so two machines or two commits can be compared. - It compares two reports (before and after a split). - A short doc page: how to run it, and the first numbers (Windows and Linux). It doesn't change the build itself. Kind: tooling.
Author
Owner

@mariuslozo-boop commented on GitHub (Nov 1, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6555259843 --> @mariuslozo-boop commented on GitHub (Nov 1, 2026): 🤖 Agent: /claim
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#1819
No description provided.