Skip to content

ci(measure): record each rvt-ifc export's wall time - #687

Merged
DrunkOnJava merged 3 commits into
mainfrom
re/export-timing
Oct 4, 2026
Merged

DrunkOnJava merged 3 commits into
mainfrom
re/export-timing

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Oct 4, 2026 •

Copy link
Copy Markdown
Owner

Measure appends milliseconds <n> to each model's and sample's rvt-ifc.log, so a slower export shows up in the base/head comparison like any other output change. Run 37237567160 used it to time main against 8cdfba1, the commit before #680: the native passes added by #680 and #684 cost about 1 to 4 s per MEP export and nothing on 2016 to 2022.


Note

Low Risk
CI-only timing instrumentation in the measure script; no runtime or export behavior changes.

Overview
The Measure CI script now records wall-clock time for each rvt-ifc export on reference models and Autodesk sample projects.

Before each export it captures a nanosecond timestamp; after the run it appends milliseconds <n> to that model's rvt-ifc.log (alongside the existing exit status). Base/head artifact diffs can then surface export slowdowns the same way as other log changes.

Reviewed by Cursor Bugbot for commit c951e05. Configure here.

@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) October 4, 2026 22:00
@DrunkOnJava
DrunkOnJava merged commit d4f639a into main Oct 4, 2026
25 checks passed
@DrunkOnJava
DrunkOnJava deleted the re/export-timing branch October 4, 2026 22:05
DrunkOnJava added a commit that referenced this pull request Oct 5, 2026
…unners the wall times came from (B81) (#699)

Measure's base and head jobs run on different runners. In today's B80
runs, runner speed alone moved an export's time by up to about 1.7x: run
37244582476 read a change that adds no work in the default export as
1.6x slower on every file, the architecture samples included. So the
wall-time table #687 added compares machines as much as code.

- **The cross-runner table** now names each side's CPU (`runner.txt` in
each artifact, left out of the scorer diff) and says what the numbers
are.
- **A new `timing` input** adds a job, `Timing (one runner)`. It builds
`rvt-ifc` at both refs on one runner, exports every model (and every
sample, with `samples`) with each build in turn, and reports the medians
and their ratio in the run summary and the `measure-timing` artifact
(`tools/ci/measure-timing.sh`). That is three rounds per file, the order
alternating each round so a drift in the runner's speed falls on both
alike. A file either build fails to export is reported as failed, not
timed.
- **CONTRIBUTING** says when to use it.

Verified by dispatching this branch's workflow with `timing`: #695
against `main` (run 37245443309), and `main` against itself as a noise
check (run 37245395447). The results follow in a comment.

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> CI and contributor docs only; no changes to rvt-ifc or export logic.
> 
> **Overview**
> Cross-runner **rvt-ifc** wall times in the Measure compare summary are
now labeled as coming from **two different runners**, with each artifact
carrying **`runner.txt`** (CPU model from `/proc/cpuinfo`) and copy that
warns runner speed alone can skew times by ~**1.7x**; **`runner.txt`**
is excluded from the scorer diff.
> 
> A new workflow input **`timing`** (when **`base` ≠ `none`**) adds a
**Timing (one runner)** job that checks out head and base, builds
**`rvt-ifc`** at both refs, and runs **`tools/ci/measure-timing.sh`**:
three alternating export rounds per model (and samples when
**`samples=true`**), median ms per ref, **head/base** ratio in the run
summary and **`measure-timing`** artifact.
> 
> **CONTRIBUTING** documents using **`-f timing=true`** for defensible
performance claims instead of the default cross-runner table.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
4f95586. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
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