Repository navigation
ci(measure): record each rvt-ifc export's wall time - #687
Merged
Merged
Conversation
DrunkOnJava
enabled auto-merge (squash)
October 4, 2026 22:00
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 -->
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-ifcexport 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'srvt-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.