Repository navigation
List each timed operation as its own benchmark row - #519
Merged
Merged
Conversation
operation_rows.json holds one row per timed operation: fit, and the prediction stage (predict, or transform for PCA). Each row has median and IQR for both implementations, speedup, status, the parity prerequisite and, for a loss, a tracking issue. Operations the headline benchmark does not time are listed as not measured. The file is built from headline_result_v2.json, checked in the Flow workflow, rebuilt at freeze, validated and published to Pages, which shows the table. The first loss this exposes is LinearSVC Digits predict at 0.61x inside a total Flow win. It is tracked in #518.
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 #489. Part of #478.
What changed
benchmarks/operation_rows.jsonlists every timed operation as its own row. The headline benchmark times two stages per estimator and dataset, so each gets a row:fit, and the prediction stage (predict, ortransformfor PCA).Row fields:
sklearn_median_ms,flow_median_ms,sklearn_iqr_ms,flow_iqr_ms,speedup,status,parity_status,prerequisites_met,tracking_issue. Counts are given per operation.every_measured_operation_winsis the #478 exit criterion evaluated over operations.generate_operation_rows.pybuilds the file fromheadline_result_v2.json.--checkfails when the committed file differs from a fresh build.operation_loss_issues.jsonmaps each losing operation to its focused issue.publish_headline_v2.pyvalidates the file (counts, one fit row and one prediction row per headline row, source digest) and copies it to Pages.docs/benchmarks.htmlshows the table, losses first.flow.ymlvalidate step runs the test and the check, andremaining-issues.ymlrebuilds the file in the existing "Sync published claims" step. No new workflow, and no generated file other than the new one is touched, so this does not conflict with freeze commits.Finding
Reproduced on main at f1ed528: LinearSVC Digits predict is 0.176 ms on Flow against 0.107 ms on scikit-learn (0.61x), inside an estimator total that is a Flow win. It is below 1x in four of the last six freezes. Filed as #518 and linked from the row.
The losses named in the issue (GaussianNB Digits predict, RandomForest Digits fit, KernelRidge, KernelSVC) are already Flow wins at the operation level in this freeze: 37 wins, 1 loss and 0 ties over 38 timed operations. Digits KernelSVC fit is 1.11x, the narrowest win.
Not covered
predict_probaanddecision_functionare not timed by the headline benchmark. They are listed with statusnot measured(18 rows) and are not given numbers. Timing them needs new Flow benchmark code.Tests
Before, on main:
python benchmarks/test_generate_operation_rows.pyfails withModuleNotFoundError: No module named 'generate_operation_rows'.After: the same command passes 13 of 13 checks, including a synthetic result whose total is a Flow win while predict loses (the row is listed, links its issue, and a zero-resolution timing is unresolved instead of a win), and a rejection of an edited
operation_rows.json.python benchmarks/generate_operation_rows.py --checkandpython benchmarks/publish_headline_v2.py --checkpass.Pages table checked in headless Chromium against a local server: the section renders 56 operation rows plus the existing tables, the loss row shows
#518, and the page logs no errors.python tools/run_all.py(pinned Flow 88aac509, macOS, FLOW_OPT_LEVEL=0): passed 119/119.