Repository navigation
perf(bench): isolate native executable startup from compile-to-result (#746) - #1410
Merged
Merged
Conversation
This was referenced Oct 6, 2026
Closed
Port of the startup cohort from the original #1410 branch onto main after #1265 (native baselines). The startup_* rows reuse the cold sources and twins, build the Flow program before timing, and every row now carries a timing_scope. The draft's profile flag is dropped: main already profiles only the memory suite (#1341).
godofecht
force-pushed
the
fix/746-native-startup-vs-compile-and-run
branch
from
October 7, 2026 11:01
fe75fd5 to
956a851
Compare
godofecht
marked this pull request as ready for review
October 7, 2026 11:01
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.
Part of #746. Does not close it.
Change
The
cold_*rows of./flow tool bench_harnesstimeflow run --json, which compiles and then runs. That is compile-to-result time, and the harness had no row for the startup of an already-built executable.startupsuite reuses thecoldsources forhello,tiny_arithmeticandfile_transform, with their Python and native twins. The Flow program is built before timing and there is no warm-up.timing_scope:compile_and_execute(cold_*,compiler_*),precompiled_exec_to_exit(startup_*) orprecompiled_workload(everything else).--timing-scope WORKLOADprints it, for tests.benchmarks/README.mdsays what each scope measures. Startup rows are launch-to-exit wall time. Measuringexecvetomainis still open on [Performance #727] Minimize compiled-program cold start and runtime initialization overhead #746.The original branch was cut before #1265 (native baselines) and #1341 (memory-only profiling) and no longer rebased cleanly, so this is a fresh port of its net change onto main 9f1d6d0 in one commit. Its extra
profileflag onmeasure()is dropped because main already profiles only the memory suite.Evidence
./flow tool tests/bench_harness/run.flow: 61 passed. With main'sbench_harnessthe same test has 6 failures (the five--timing-scopechecks and thetiming_scopekey)../flow tool bench_harness --smoke: writesstartup_hello,startup_tiny_arithmeticandstartup_file_transformwithprecompiled_exec_to_exitandwarm_mode: false, 10compile_and_executerows and 19precompiled_workloadrows../flow tool tests/cli/run.flow: 152 passed, 2 failed (jit_hello,test_mlir: golden drift on main).test-langandtest-runtimewere not run: no file they build is touched.git merge-tree).No
compiler/srcchange.