diff --git a/.github/workflows/flow.yml b/.github/workflows/flow.yml
index 450199d..031e917 100644
--- a/.github/workflows/flow.yml
+++ b/.github/workflows/flow.yml
@@ -47,6 +47,8 @@ jobs:
python benchmarks/test_config_equivalence.py
python benchmarks/test_rank_optimization_stages.py
python benchmarks/publish_headline_v2.py --check
+ python benchmarks/test_check_evidence_drift.py
+ python benchmarks/check_evidence_drift.py
python benchmarks/validate_execution_substrate.py
python -m py_compile \
benchmarks/timing.py \
diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml
index 2d27efe..58c3015 100644
--- a/.github/workflows/pages.yml
+++ b/.github/workflows/pages.yml
@@ -52,7 +52,9 @@ jobs:
- name: Materialize disparity history for this Pages build
run: python benchmarks/check_disparity_regression.py --baseline /tmp/no-disparity-baseline.json --commit "${GITHUB_SHA}"
- name: Publish canonical benchmark, disparity, history and architecture evidence
- run: python benchmarks/publish_headline_v2.py
+ run: |
+ python benchmarks/check_evidence_drift.py
+ python benchmarks/publish_headline_v2.py
- uses: actions/configure-pages@v5
- uses: actions/upload-pages-artifact@v3
with:
diff --git a/.github/workflows/remaining-issues.yml b/.github/workflows/remaining-issues.yml
index 39f1e71..5b822cc 100644
--- a/.github/workflows/remaining-issues.yml
+++ b/.github/workflows/remaining-issues.yml
@@ -231,7 +231,9 @@ jobs:
name: architecture-map-${{ github.run_id }}
path: benchmarks
- name: Promote canonical summary to published source of truth
- run: cp benchmarks/headline_summary.json benchmarks/headline_result_v2.json
+ run: |
+ cp benchmarks/headline_summary.json benchmarks/headline_result_v2.json
+ python benchmarks/refresh_derived_evidence.py
- name: Sync published claims to the frozen artifact
run: |
python benchmarks/validate_published_claims.py --fix
diff --git a/benchmarks/ARCHITECTURE_PERFORMANCE_MAP.md b/benchmarks/ARCHITECTURE_PERFORMANCE_MAP.md
index dea309d..90ddf75 100644
--- a/benchmarks/ARCHITECTURE_PERFORMANCE_MAP.md
+++ b/benchmarks/ARCHITECTURE_PERFORMANCE_MAP.md
@@ -6,30 +6,30 @@ This report is generated from the committed inventory, mixed-stack profiles, par
| Algorithm | sklearn estimator | Dataset | Substrate | Parity | Flow/sklearn speedup | Python self share |
|---|---|---|---|---|---:|---:|
-| `LogisticRegression` | `LogisticRegression` | iris | mixed | approximately equivalent | 20.14× | 76.0% |
-| `LinearSVC` | `LinearSVC` | iris | external-native-bound | approximately equivalent | 5.70× | |
-| `KernelSVC_RBF` | `SVC` | iris | external-native-bound | approximately equivalent | 3.41× | 89.0% |
-| `DecisionTree` | `DecisionTreeClassifier` | iris | mixed | approximately equivalent | 15.24× | |
-| `RandomForest` | `RandomForestClassifier` | iris | mixed | approximately equivalent | 4.33× | |
-| `GaussianNB` | `GaussianNB` | iris | python-bound | parity verified | 73.75× | 77.7% |
-| `KMeans` | `KMeans` | iris | mixed | approximately equivalent | 22.30× | 84.0% |
-| `PCA` | `PCA` | iris | python-bound | parity verified | 29.01× | 76.8% |
-| `LogisticRegression` | `LogisticRegression` | digits | mixed | approximately equivalent | 3.09× | 76.0% |
-| `LinearSVC` | `LinearSVC` | digits | external-native-bound | approximately equivalent | 2.48× | |
-| `KernelSVC_RBF` | `SVC` | digits | external-native-bound | approximately equivalent | 1.77× | 89.0% |
-| `DecisionTree` | `DecisionTreeClassifier` | digits | mixed | approximately equivalent | 1.75× | |
-| `RandomForest` | `RandomForestClassifier` | digits | mixed | approximately equivalent | 2.23× | |
-| `GaussianNB` | `GaussianNB` | digits | python-bound | parity verified | 4.91× | 77.7% |
-| `KMeans` | `KMeans` | digits | mixed | approximately equivalent | 2.02× | 84.0% |
-| `Ridge` | `Ridge` | diabetes | python-bound | approximately equivalent | 7.89× | |
-| `Lasso` | `Lasso` | diabetes | mixed | approximately equivalent | 9.38× | |
-| `LinearRegression` | `LinearRegression` | diabetes | mixed | parity verified | 8.81× | 75.8% |
-| `KernelRidge_RBF` | `KernelRidge` | diabetes | mixed | parity verified | 4.09× | |
+| `LogisticRegression` | `LogisticRegression` | iris | mixed | approximately equivalent | 18.33× | 76.0% |
+| `LinearSVC` | `LinearSVC` | iris | external-native-bound | approximately equivalent | 5.96× | |
+| `KernelSVC_RBF` | `SVC` | iris | external-native-bound | approximately equivalent | 3.58× | 89.0% |
+| `DecisionTree` | `DecisionTreeClassifier` | iris | mixed | approximately equivalent | 15.21× | |
+| `RandomForest` | `RandomForestClassifier` | iris | mixed | approximately equivalent | 7.15× | |
+| `GaussianNB` | `GaussianNB` | iris | python-bound | parity verified | 95.68× | 77.7% |
+| `KMeans` | `KMeans` | iris | mixed | approximately equivalent | 19.26× | 84.0% |
+| `PCA` | `PCA` | iris | python-bound | parity verified | 28.04× | 76.8% |
+| `LogisticRegression` | `LogisticRegression` | digits | mixed | approximately equivalent | 3.02× | 76.0% |
+| `LinearSVC` | `LinearSVC` | digits | external-native-bound | approximately equivalent | 2.01× | |
+| `KernelSVC_RBF` | `SVC` | digits | external-native-bound | approximately equivalent | 1.50× | 89.0% |
+| `DecisionTree` | `DecisionTreeClassifier` | digits | mixed | approximately equivalent | 1.62× | |
+| `RandomForest` | `RandomForestClassifier` | digits | mixed | approximately equivalent | 1.55× | |
+| `GaussianNB` | `GaussianNB` | digits | python-bound | parity verified | 5.40× | 77.7% |
+| `KMeans` | `KMeans` | digits | mixed | approximately equivalent | 1.59× | 84.0% |
+| `Ridge` | `Ridge` | diabetes | python-bound | approximately equivalent | 9.57× | |
+| `Lasso` | `Lasso` | diabetes | mixed | approximately equivalent | 9.39× | |
+| `LinearRegression` | `LinearRegression` | diabetes | mixed | parity verified | 9.39× | 75.8% |
+| `KernelRidge_RBF` | `KernelRidge` | diabetes | mixed | parity verified | 5.06× | |
## Speedup grouped by execution substrate
| Substrate | Rows | Mean speedup | Flow win fraction |
|---|---:|---:|---:|
-| external-native-bound | 4 | 3.34× | 100% |
-| mixed | 11 | 8.49× | 100% |
-| python-bound | 4 | 28.89× | 100% |
+| external-native-bound | 4 | 3.26× | 100% |
+| mixed | 11 | 8.32× | 100% |
+| python-bound | 4 | 34.67× | 100% |
diff --git a/benchmarks/NATIVE_HOTSPOT_AUDIT.md b/benchmarks/NATIVE_HOTSPOT_AUDIT.md
index 92f3f55..040f965 100644
--- a/benchmarks/NATIVE_HOTSPOT_AUDIT.md
+++ b/benchmarks/NATIVE_HOTSPOT_AUDIT.md
@@ -12,7 +12,7 @@
| `RandomForestClassifier` | `fit` | mixed | sklearn | already-equivalent | 48.0 |
| `RandomForestClassifier` | `predict` | mixed | sklearn | already-equivalent | 48.0 |
| `RandomForestClassifier` | `predict_proba` | mixed | sklearn | already-equivalent | 48.0 |
-| `SVC` | `fit` | external-native-bound | external | retain-native | 41.8 |
+| `SVC` | `fit` | external-native-bound | external | retain-native | 41.5 |
| `ARDRegression` | `fit` | mixed | sklearn | already-equivalent | 40.5 |
| `AdaBoostClassifier` | `fit` | mixed | sklearn | already-equivalent | 40.5 |
| `AdaBoostRegressor` | `fit` | mixed | sklearn | already-equivalent | 40.5 |
diff --git a/benchmarks/OPTIMIZATION_ROADMAP.md b/benchmarks/OPTIMIZATION_ROADMAP.md
index bff2a16..caeba4c 100644
--- a/benchmarks/OPTIMIZATION_ROADMAP.md
+++ b/benchmarks/OPTIMIZATION_ROADMAP.md
@@ -6,35 +6,35 @@ Observed Flow speedup is the mean over the estimator's canonical rows of the sta
| Rank | Estimator | Operation | Substrate | Score | Disposition | Observed Flow speedup | Basis | Hypothesis |
|---:|---|---|---|---:|---|---:|---|---|
-| 1 | `GaussianNB` | `fit` | python-bound | 75.3 | rewrite first | 36.92× | fit stage | remove Python control/validation and specialize the complete operation |
-| 2 | `PCA` | `fit` | python-bound | 74.2 | rewrite first | 26.73× | fit stage | remove Python control/validation and specialize the complete operation |
-| 3 | `GaussianNB` | `predict` | python-bound | 73.7 | rewrite first | 67.42× | prediction stage | remove Python control/validation and specialize the complete operation |
-| 4 | `LinearRegression` | `predict` | python-bound | 73.4 | rewrite first | 78.57× | prediction stage | remove Python control/validation and specialize the complete operation |
-| 5 | `PCA` | `transform` | python-bound | 73.4 | rewrite first | 45.17× | prediction stage | remove Python control/validation and specialize the complete operation |
-| 6 | `LogisticRegression` | `predict` | python-bound | 73.3 | rewrite first | 11.62× | prediction stage | remove Python control/validation and specialize the complete operation |
-| 7 | `KMeans` | `fit` | mixed | 72.1 | rewrite first | 12.05× | fit stage | remove Python control/validation and specialize the complete operation |
-| 8 | `LogisticRegression` | `fit` | mixed | 71.7 | rewrite first | 11.61× | fit stage | remove Python control/validation and specialize the complete operation |
-| 9 | `LinearRegression` | `fit` | mixed | 68.6 | rewrite first | 7.94× | fit stage | remove Python control/validation and specialize the complete operation |
-| 10 | `SVC` | `predict` | numpy-bound | 63.9 | rewrite first | 3.92× | prediction stage | remove Python control/validation and specialize the complete operation |
-| 11 | `KMeans` | `predict` | numpy-bound | 60.1 | rewrite first | 37.92× | prediction stage | remove Python control/validation and specialize the complete operation |
-| 12 | `GaussianNB` | `predict_proba` | python-bound | 54.0 | rewrite first | 67.42× | prediction stage | remove Python control/validation and specialize the complete operation |
-| 13 | `KMeans` | `transform` | python-bound | 54.0 | rewrite first | 37.92× | prediction stage | remove Python control/validation and specialize the complete operation |
-| 14 | `Lasso` | `predict` | python-bound | 54.0 | rewrite first | 41.58× | prediction stage | remove Python control/validation and specialize the complete operation |
-| 15 | `LinearSVC` | `predict` | python-bound | 54.0 | rewrite first | 45.25× | prediction stage | remove Python control/validation and specialize the complete operation |
-| 16 | `LinearSVC` | `decision_function` | python-bound | 54.0 | rewrite first | 45.25× | prediction stage | remove Python control/validation and specialize the complete operation |
-| 17 | `LogisticRegression` | `predict_proba` | python-bound | 54.0 | rewrite first | 11.62× | prediction stage | remove Python control/validation and specialize the complete operation |
-| 18 | `LogisticRegression` | `decision_function` | python-bound | 54.0 | rewrite first | 11.62× | prediction stage | remove Python control/validation and specialize the complete operation |
-| 19 | `Ridge` | `fit` | python-bound | 54.0 | rewrite first | 7.26× | fit stage | remove Python control/validation and specialize the complete operation |
-| 20 | `Ridge` | `predict` | python-bound | 54.0 | rewrite first | 33.70× | prediction stage | remove Python control/validation and specialize the complete operation |
-| 21 | `SVC` | `predict_proba` | python-bound | 54.0 | rewrite first | 3.92× | prediction stage | remove Python control/validation and specialize the complete operation |
-| 22 | `SVC` | `decision_function` | python-bound | 54.0 | rewrite first | 3.92× | prediction stage | remove Python control/validation and specialize the complete operation |
-| 23 | `DecisionTreeClassifier` | `fit` | mixed | 48.0 | compile whole estimator | 7.98× | fit stage | retain useful numerical kernels while fusing validation, allocation and orchestration |
-| 24 | `DecisionTreeClassifier` | `predict` | mixed | 48.0 | compile whole estimator | 26.27× | prediction stage | retain useful numerical kernels while fusing validation, allocation and orchestration |
-| 25 | `KernelRidge` | `fit` | mixed | 48.0 | compile whole estimator | 4.24× | fit stage | retain useful numerical kernels while fusing validation, allocation and orchestration |
-| 26 | `Lasso` | `fit` | mixed | 48.0 | compile whole estimator | 8.68× | fit stage | retain useful numerical kernels while fusing validation, allocation and orchestration |
-| 27 | `RandomForestClassifier` | `fit` | mixed | 48.0 | compile whole estimator | 3.15× | fit stage | retain useful numerical kernels while fusing validation, allocation and orchestration |
-| 28 | `RandomForestClassifier` | `predict` | mixed | 48.0 | compile whole estimator | 34.18× | prediction stage | retain useful numerical kernels while fusing validation, allocation and orchestration |
-| 29 | `RandomForestClassifier` | `predict_proba` | mixed | 48.0 | compile whole estimator | 34.18× | prediction stage | retain useful numerical kernels while fusing validation, allocation and orchestration |
+| 1 | `GaussianNB` | `fit` | python-bound | 75.3 | rewrite first | 48.38× | fit stage | remove Python control/validation and specialize the complete operation |
+| 2 | `PCA` | `fit` | python-bound | 74.2 | rewrite first | 25.52× | fit stage | remove Python control/validation and specialize the complete operation |
+| 3 | `GaussianNB` | `predict` | python-bound | 73.7 | rewrite first | 67.51× | prediction stage | remove Python control/validation and specialize the complete operation |
+| 4 | `LinearRegression` | `predict` | python-bound | 73.4 | rewrite first | 100.20× | prediction stage | remove Python control/validation and specialize the complete operation |
+| 5 | `PCA` | `transform` | python-bound | 73.4 | rewrite first | 42.03× | prediction stage | remove Python control/validation and specialize the complete operation |
+| 6 | `LogisticRegression` | `predict` | python-bound | 73.3 | rewrite first | 9.88× | prediction stage | remove Python control/validation and specialize the complete operation |
+| 7 | `KMeans` | `fit` | mixed | 72.1 | rewrite first | 10.29× | fit stage | remove Python control/validation and specialize the complete operation |
+| 8 | `LogisticRegression` | `fit` | mixed | 71.7 | rewrite first | 10.71× | fit stage | remove Python control/validation and specialize the complete operation |
+| 9 | `LinearRegression` | `fit` | mixed | 68.6 | rewrite first | 8.30× | fit stage | remove Python control/validation and specialize the complete operation |
+| 10 | `SVC` | `predict` | numpy-bound | 63.9 | rewrite first | 4.10× | prediction stage | remove Python control/validation and specialize the complete operation |
+| 11 | `KMeans` | `predict` | numpy-bound | 60.1 | rewrite first | 40.44× | prediction stage | remove Python control/validation and specialize the complete operation |
+| 12 | `GaussianNB` | `predict_proba` | python-bound | 54.0 | rewrite first | 67.51× | prediction stage | remove Python control/validation and specialize the complete operation |
+| 13 | `KMeans` | `transform` | python-bound | 54.0 | rewrite first | 40.44× | prediction stage | remove Python control/validation and specialize the complete operation |
+| 14 | `Lasso` | `predict` | python-bound | 54.0 | rewrite first | 45.54× | prediction stage | remove Python control/validation and specialize the complete operation |
+| 15 | `LinearSVC` | `predict` | python-bound | 54.0 | rewrite first | 42.58× | prediction stage | remove Python control/validation and specialize the complete operation |
+| 16 | `LinearSVC` | `decision_function` | python-bound | 54.0 | rewrite first | 42.58× | prediction stage | remove Python control/validation and specialize the complete operation |
+| 17 | `LogisticRegression` | `predict_proba` | python-bound | 54.0 | rewrite first | 9.88× | prediction stage | remove Python control/validation and specialize the complete operation |
+| 18 | `LogisticRegression` | `decision_function` | python-bound | 54.0 | rewrite first | 9.88× | prediction stage | remove Python control/validation and specialize the complete operation |
+| 19 | `Ridge` | `fit` | python-bound | 54.0 | rewrite first | 8.76× | fit stage | remove Python control/validation and specialize the complete operation |
+| 20 | `Ridge` | `predict` | python-bound | 54.0 | rewrite first | 32.15× | prediction stage | remove Python control/validation and specialize the complete operation |
+| 21 | `SVC` | `predict_proba` | python-bound | 54.0 | rewrite first | 4.10× | prediction stage | remove Python control/validation and specialize the complete operation |
+| 22 | `SVC` | `decision_function` | python-bound | 54.0 | rewrite first | 4.10× | prediction stage | remove Python control/validation and specialize the complete operation |
+| 23 | `DecisionTreeClassifier` | `fit` | mixed | 48.0 | compile whole estimator | 7.79× | fit stage | retain useful numerical kernels while fusing validation, allocation and orchestration |
+| 24 | `DecisionTreeClassifier` | `predict` | mixed | 48.0 | compile whole estimator | 30.07× | prediction stage | retain useful numerical kernels while fusing validation, allocation and orchestration |
+| 25 | `KernelRidge` | `fit` | mixed | 48.0 | compile whole estimator | 5.22× | fit stage | retain useful numerical kernels while fusing validation, allocation and orchestration |
+| 26 | `Lasso` | `fit` | mixed | 48.0 | compile whole estimator | 8.50× | fit stage | retain useful numerical kernels while fusing validation, allocation and orchestration |
+| 27 | `RandomForestClassifier` | `fit` | mixed | 48.0 | compile whole estimator | 4.14× | fit stage | retain useful numerical kernels while fusing validation, allocation and orchestration |
+| 28 | `RandomForestClassifier` | `predict` | mixed | 48.0 | compile whole estimator | 29.81× | prediction stage | retain useful numerical kernels while fusing validation, allocation and orchestration |
+| 29 | `RandomForestClassifier` | `predict_proba` | mixed | 48.0 | compile whole estimator | 29.81× | prediction stage | retain useful numerical kernels while fusing validation, allocation and orchestration |
| 30 | `AdaBoostRegressor` | `predict` | python-bound | 46.5 | rewrite first | | | remove Python control/validation and specialize the complete operation |
| 31 | `AdditiveChi2Sampler` | `fit` | python-bound | 46.5 | rewrite first | | | remove Python control/validation and specialize the complete operation |
| 32 | `AdditiveChi2Sampler` | `transform` | python-bound | 46.5 | rewrite first | | | remove Python control/validation and specialize the complete operation |
diff --git a/benchmarks/architecture_performance_map.json b/benchmarks/architecture_performance_map.json
index 16efd47..2a8197b 100644
--- a/benchmarks/architecture_performance_map.json
+++ b/benchmarks/architecture_performance_map.json
@@ -1,5 +1,10 @@
{
"schema_version": 1,
+ "provenance": {
+ "result_sha256": "466fd432d26dd8042a24425290d5c09ff749b3c504b137930334d97b7bb397be",
+ "environment_id": "8f11a9c3927a0fee",
+ "source_commit": "f1ed528c85871eb6174e614cb2070cf9d8f285c7"
+ },
"joined_headline_rows": [
{
"algorithm": "LogisticRegression",
@@ -7,7 +12,7 @@
"dataset": "iris",
"parity_status": "approximately equivalent",
"classification": "flow win",
- "flow_speedup": 20.138838466393967,
+ "flow_speedup": 18.325913260420794,
"fit_execution_class": "mixed",
"inventory_confidence": "medium",
"python_visible_self_share": 0.7603974859103786,
@@ -19,7 +24,7 @@
"dataset": "iris",
"parity_status": "approximately equivalent",
"classification": "flow win",
- "flow_speedup": 5.7031897831092495,
+ "flow_speedup": 5.956357291673469,
"fit_execution_class": "external-native-bound",
"inventory_confidence": "medium",
"python_visible_self_share": null,
@@ -31,7 +36,7 @@
"dataset": "iris",
"parity_status": "approximately equivalent",
"classification": "flow win",
- "flow_speedup": 3.4107037640720983,
+ "flow_speedup": 3.583960656391348,
"fit_execution_class": "external-native-bound",
"inventory_confidence": "medium",
"python_visible_self_share": 0.8895490126881933,
@@ -43,7 +48,7 @@
"dataset": "iris",
"parity_status": "approximately equivalent",
"classification": "flow win",
- "flow_speedup": 15.243286426828677,
+ "flow_speedup": 15.210603348720923,
"fit_execution_class": "mixed",
"inventory_confidence": "medium",
"python_visible_self_share": null,
@@ -55,7 +60,7 @@
"dataset": "iris",
"parity_status": "approximately equivalent",
"classification": "flow win",
- "flow_speedup": 4.3251520332318325,
+ "flow_speedup": 7.147391218072022,
"fit_execution_class": "mixed",
"inventory_confidence": "medium",
"python_visible_self_share": null,
@@ -67,7 +72,7 @@
"dataset": "iris",
"parity_status": "parity verified",
"classification": "flow win",
- "flow_speedup": 73.74595737761041,
+ "flow_speedup": 95.68179514290723,
"fit_execution_class": "python-bound",
"inventory_confidence": "low",
"python_visible_self_share": 0.7768487375502466,
@@ -79,7 +84,7 @@
"dataset": "iris",
"parity_status": "approximately equivalent",
"classification": "flow win",
- "flow_speedup": 22.30126137457344,
+ "flow_speedup": 19.26445955488127,
"fit_execution_class": "mixed",
"inventory_confidence": "medium",
"python_visible_self_share": 0.8401106939359337,
@@ -91,7 +96,7 @@
"dataset": "iris",
"parity_status": "parity verified",
"classification": "flow win",
- "flow_speedup": 29.01401055054671,
+ "flow_speedup": 28.035204331766288,
"fit_execution_class": "python-bound",
"inventory_confidence": "low",
"python_visible_self_share": 0.7675010060851367,
@@ -103,7 +108,7 @@
"dataset": "digits",
"parity_status": "approximately equivalent",
"classification": "flow win",
- "flow_speedup": 3.088564461252091,
+ "flow_speedup": 3.023643681184223,
"fit_execution_class": "mixed",
"inventory_confidence": "medium",
"python_visible_self_share": 0.7603974859103786,
@@ -115,7 +120,7 @@
"dataset": "digits",
"parity_status": "approximately equivalent",
"classification": "flow win",
- "flow_speedup": 2.4783068358357307,
+ "flow_speedup": 2.0118704132564647,
"fit_execution_class": "external-native-bound",
"inventory_confidence": "medium",
"python_visible_self_share": null,
@@ -127,7 +132,7 @@
"dataset": "digits",
"parity_status": "approximately equivalent",
"classification": "flow win",
- "flow_speedup": 1.771042578788627,
+ "flow_speedup": 1.5021819978598925,
"fit_execution_class": "external-native-bound",
"inventory_confidence": "medium",
"python_visible_self_share": 0.8895490126881933,
@@ -139,7 +144,7 @@
"dataset": "digits",
"parity_status": "approximately equivalent",
"classification": "flow win",
- "flow_speedup": 1.7528539139530472,
+ "flow_speedup": 1.6222807120674694,
"fit_execution_class": "mixed",
"inventory_confidence": "medium",
"python_visible_self_share": null,
@@ -151,7 +156,7 @@
"dataset": "digits",
"parity_status": "approximately equivalent",
"classification": "flow win",
- "flow_speedup": 2.233445622924289,
+ "flow_speedup": 1.5547691041635163,
"fit_execution_class": "mixed",
"inventory_confidence": "medium",
"python_visible_self_share": null,
@@ -163,7 +168,7 @@
"dataset": "digits",
"parity_status": "parity verified",
"classification": "flow win",
- "flow_speedup": 4.90863927505433,
+ "flow_speedup": 5.396373676623674,
"fit_execution_class": "python-bound",
"inventory_confidence": "low",
"python_visible_self_share": 0.7768487375502466,
@@ -175,7 +180,7 @@
"dataset": "digits",
"parity_status": "approximately equivalent",
"classification": "flow win",
- "flow_speedup": 2.0176391661422284,
+ "flow_speedup": 1.590500808964903,
"fit_execution_class": "mixed",
"inventory_confidence": "medium",
"python_visible_self_share": 0.8401106939359337,
@@ -187,7 +192,7 @@
"dataset": "diabetes",
"parity_status": "approximately equivalent",
"classification": "flow win",
- "flow_speedup": 7.892718509725372,
+ "flow_speedup": 9.572992671204576,
"fit_execution_class": "python-bound",
"inventory_confidence": "low",
"python_visible_self_share": null,
@@ -199,7 +204,7 @@
"dataset": "diabetes",
"parity_status": "approximately equivalent",
"classification": "flow win",
- "flow_speedup": 9.379820419772697,
+ "flow_speedup": 9.387582899739245,
"fit_execution_class": "mixed",
"inventory_confidence": "medium",
"python_visible_self_share": null,
@@ -211,7 +216,7 @@
"dataset": "diabetes",
"parity_status": "parity verified",
"classification": "flow win",
- "flow_speedup": 8.810806376308534,
+ "flow_speedup": 9.388836176223185,
"fit_execution_class": "mixed",
"inventory_confidence": "medium",
"python_visible_self_share": 0.757963360389168,
@@ -223,7 +228,7 @@
"dataset": "diabetes",
"parity_status": "parity verified",
"classification": "flow win",
- "flow_speedup": 4.086517645676629,
+ "flow_speedup": 5.055631247728192,
"fit_execution_class": "mixed",
"inventory_confidence": "medium",
"python_visible_self_share": null,
@@ -234,19 +239,19 @@
{
"execution_class": "external-native-bound",
"n": 4,
- "mean_flow_speedup": 3.3408107404514262,
+ "mean_flow_speedup": 3.2635925897952935,
"flow_win_fraction": 1.0
},
{
"execution_class": "mixed",
"n": 11,
- "mean_flow_speedup": 8.488925991550675,
+ "mean_flow_speedup": 8.324692001105976,
"flow_win_fraction": 1.0
},
{
"execution_class": "python-bound",
"n": 4,
- "mean_flow_speedup": 28.890331428234205,
+ "mean_flow_speedup": 34.671591455625446,
"flow_win_fraction": 1.0
}
],
diff --git a/benchmarks/architecture_performance_report.py b/benchmarks/architecture_performance_report.py
index 8d5a1e8..768dde9 100644
--- a/benchmarks/architecture_performance_report.py
+++ b/benchmarks/architecture_performance_report.py
@@ -7,6 +7,8 @@
from collections import defaultdict
from pathlib import Path
+from evidence_provenance import provenance
+
ROOT = Path(__file__).resolve().parents[1]
ESTIMATOR_ALIASES = {
@@ -94,6 +96,7 @@ def main():
payload = {
"schema_version": 1,
+ "provenance": provenance(args.headline),
"joined_headline_rows": joined,
"speedup_by_execution_substrate": substrate_summary,
"coverage": {
diff --git a/benchmarks/audit_native_hotspots.py b/benchmarks/audit_native_hotspots.py
index 64aa90b..e47eb4d 100644
--- a/benchmarks/audit_native_hotspots.py
+++ b/benchmarks/audit_native_hotspots.py
@@ -44,7 +44,8 @@ def main():
p.add_argument("--markdown", type=Path, default=ROOT / "benchmarks" / "NATIVE_HOTSPOT_AUDIT.md")
args = p.parse_args()
inv = json.loads(args.inventory.read_text())["rows"]
- roadmap = json.loads(args.roadmap.read_text())["rows"] if args.roadmap.exists() else []
+ roadmap_doc = json.loads(args.roadmap.read_text()) if args.roadmap.exists() else {"rows": []}
+ roadmap = roadmap_doc["rows"]
priority = {(r["estimator"], r["operation"]): r["priority_score"] for r in roadmap}
candidates = [r for r in inv if r["execution_class"] in {"cython-bound","c-bound","cpp-bound","external-native-bound","blas-lapack-bound","mixed"}]
rows = []
@@ -63,7 +64,7 @@ def main():
),
})
rows.sort(key=lambda r: (r["priority_score"] is not None, r["priority_score"] or 0), reverse=True)
- args.json.write_text(json.dumps({"schema_version": 1, "rows": rows}, indent=2) + "\n")
+ args.json.write_text(json.dumps({"schema_version": 1, "provenance": roadmap_doc.get("provenance"), "rows": rows}, indent=2) + "\n")
md = ["# Native hotspot audit", "", "| Estimator | Operation | Class | Owner | Disposition | Priority |", "|---|---|---|---|---|---:|"]
for r in rows:
score = "" if r["priority_score"] is None else f"{r['priority_score']:.1f}"
diff --git a/benchmarks/check_evidence_drift.py b/benchmarks/check_evidence_drift.py
new file mode 100644
index 0000000..565af54
--- /dev/null
+++ b/benchmarks/check_evidence_drift.py
@@ -0,0 +1,173 @@
+#!/usr/bin/env python3
+"""Fail when an artifact derived from the canonical headline result is stale.
+
+Canonical input: benchmarks/headline_result_v2.json. Every artifact below must
+have been generated from exactly those bytes:
+
+ optimization_roadmap.json, native_hotspot_audit.json,
+ whole_estimator_experiments.json, architecture_performance_map.json
+ carry provenance.result_sha256 and provenance.environment_id
+ architecture_performance_map.json
+ its joined rows and substrate summary are recomputed from the result
+ ARCHITECTURE_PERFORMANCE_MAP.md
+ its table rows match the map
+ whole_estimator_experiments.json
+ its embedded headline rows equal the result's rows
+ disparity_report.json
+ its environment_id equals the result's
+ docs/*.json (the Pages copies, when present)
+ are byte-identical to their benchmarks/ source
+
+Stdlib only. Exit 1 on any drift. Regenerate with
+`python benchmarks/refresh_derived_evidence.py`.
+"""
+from __future__ import annotations
+
+import argparse
+import hashlib
+import json
+import re
+import sys
+from pathlib import Path
+
+DEFAULT_ROOT = Path(__file__).resolve().parents[1]
+
+PROVENANCE_ARTIFACTS = [
+ "optimization_roadmap.json",
+ "native_hotspot_audit.json",
+ "whole_estimator_experiments.json",
+ "architecture_performance_map.json",
+]
+PAGES_COPIES = {
+ "headline_result_v2.json": "headline-result-v2.json",
+ "architecture_performance_map.json": "architecture-performance-map.json",
+ "disparity_report.json": "disparity-report.json",
+ "disparity_history.json": "disparity-history.json",
+ "scaled_ci_history.json": "scaled-ci-history.json",
+ "estimator_comparison.json": "estimator-comparison.json",
+}
+VERIFIED = {"parity verified", "approximately equivalent"}
+
+
+def headline_speedup(row: dict):
+ """Same rule architecture_performance_report.py applies."""
+ if row.get("speedup") is not None:
+ return float(row["speedup"])
+ if row.get("flow_ms", 0) and row.get("sklearn_ms") is not None:
+ return float(row["sklearn_ms"]) / float(row["flow_ms"])
+ sk = float(row.get("sklearn_fit_ms", 0) or 0) + float(row.get("sklearn_pred_ms", 0) or 0)
+ fl = float(row.get("flow_fit_ms", 0) or 0) + float(row.get("flow_pred_ms", 0) or 0)
+ return sk / fl if sk > 0 and fl > 0 else None
+
+
+def close(a, b) -> bool:
+ if a is None or b is None:
+ return a is b
+ return abs(a - b) <= 1e-9 * max(1.0, abs(a), abs(b))
+
+
+def check(root: Path) -> list[str]:
+ bench = root / "benchmarks"
+ docs = root / "docs"
+ problems: list[str] = []
+ result_path = bench / "headline_result_v2.json"
+ digest = hashlib.sha256(result_path.read_bytes()).hexdigest()
+ result = json.loads(result_path.read_text())
+ env = result.get("environment_id")
+
+ for row in result["rows"]:
+ if row.get("environment_id") != env:
+ problems.append(f"headline row {row['algorithm']}/{row['dataset']} has environment_id {row.get('environment_id')!r}, result has {env!r}")
+
+ docs_by_name: dict[str, dict] = {}
+ for name in PROVENANCE_ARTIFACTS:
+ path = bench / name
+ if not path.exists():
+ problems.append(f"{name}: missing")
+ continue
+ doc = json.loads(path.read_text())
+ docs_by_name[name] = doc
+ prov = doc.get("provenance")
+ if not prov:
+ problems.append(f"{name}: carries no provenance block")
+ continue
+ if prov.get("result_sha256") != digest:
+ problems.append(f"{name}: built from result sha256 {str(prov.get('result_sha256'))[:12]}, committed result is {digest[:12]}")
+ if prov.get("environment_id") != env:
+ problems.append(f"{name}: environment_id {prov.get('environment_id')!r}, committed result is {env!r}")
+
+ disparity = bench / "disparity_report.json"
+ if disparity.exists():
+ d_env = json.loads(disparity.read_text()).get("environment_id")
+ if d_env != env:
+ problems.append(f"disparity_report.json: environment_id {d_env!r}, committed result is {env!r}")
+
+ amap = docs_by_name.get("architecture_performance_map.json")
+ if amap is not None:
+ joined = {(r["algorithm"], r["dataset"]): r for r in amap["joined_headline_rows"]}
+ if len(joined) != len(result["rows"]):
+ problems.append(f"architecture map joins {len(joined)} rows, result has {len(result['rows'])}")
+ for row in result["rows"]:
+ key = (row["algorithm"], row["dataset"])
+ j = joined.get(key)
+ if j is None:
+ problems.append(f"architecture map has no row for {key[0]}/{key[1]}")
+ continue
+ for field, want in (("parity_status", row.get("parity_status")), ("classification", row.get("classification"))):
+ if j.get(field) != want:
+ problems.append(f"architecture map {key[0]}/{key[1]} {field} is {j.get(field)!r}, result says {want!r}")
+ if not close(j.get("flow_speedup"), headline_speedup(row)):
+ problems.append(f"architecture map {key[0]}/{key[1]} flow_speedup is {j.get('flow_speedup')}, result gives {headline_speedup(row)}")
+ by_class: dict[str, list[float]] = {}
+ for j in amap["joined_headline_rows"]:
+ if j["flow_speedup"] is not None and j["parity_status"] in VERIFIED:
+ by_class.setdefault(j["fit_execution_class"], []).append(j["flow_speedup"])
+ stored = {g["execution_class"]: g for g in amap["speedup_by_execution_substrate"]}
+ if set(stored) != set(by_class):
+ problems.append("architecture map substrate summary lists different classes than its joined rows")
+ for cls, vals in by_class.items():
+ g = stored.get(cls)
+ if g and (g["n"] != len(vals) or not close(g["mean_flow_speedup"], sum(vals) / len(vals))):
+ problems.append(f"architecture map substrate summary for {cls} disagrees with its joined rows")
+
+ md = bench / "ARCHITECTURE_PERFORMANCE_MAP.md"
+ text = md.read_text() if md.exists() else ""
+ for j in amap["joined_headline_rows"]:
+ speed = "" if j["flow_speedup"] is None else f"{j['flow_speedup']:.2f}×"
+ line = next((ln for ln in text.splitlines() if ln.startswith(f"| `{j['algorithm']}` |") and f"| {j['dataset']} |" in ln), None)
+ if line is None or f"| {speed} |" not in line:
+ problems.append(f"ARCHITECTURE_PERFORMANCE_MAP.md row {j['algorithm']}/{j['dataset']} does not show {speed or 'an empty speedup'}")
+
+ whole = docs_by_name.get("whole_estimator_experiments.json")
+ if whole is not None:
+ for row in whole["rows"]:
+ if "flow_rows" not in row:
+ continue
+ want = [r for r in result["rows"] if r.get("algorithm") == row.get("representative")]
+ if row["flow_rows"] != want:
+ problems.append(f"whole_estimator_experiments.json embeds stale headline rows for {row.get('representative')}")
+
+ for src, dst in PAGES_COPIES.items():
+ copy = docs / dst
+ if copy.exists() and copy.read_bytes() != (bench / src).read_bytes():
+ problems.append(f"docs/{dst} differs from benchmarks/{src}")
+ return problems
+
+
+def main() -> int:
+ ap = argparse.ArgumentParser()
+ ap.add_argument("--root", type=Path, default=DEFAULT_ROOT)
+ args = ap.parse_args()
+ problems = check(args.root)
+ if problems:
+ print("Derived evidence disagrees with benchmarks/headline_result_v2.json:")
+ for p in problems:
+ print(" -", p)
+ print("Run: python benchmarks/refresh_derived_evidence.py")
+ return 1
+ print("derived evidence matches the committed headline result")
+ return 0
+
+
+if __name__ == "__main__":
+ sys.exit(main())
diff --git a/benchmarks/evidence_provenance.py b/benchmarks/evidence_provenance.py
new file mode 100644
index 0000000..19a2bb3
--- /dev/null
+++ b/benchmarks/evidence_provenance.py
@@ -0,0 +1,43 @@
+#!/usr/bin/env python3
+"""Provenance carried by every artifact derived from the canonical headline result.
+
+A derived artifact records the sha256 of the exact bytes of
+headline_result_v2.json it was joined against, plus that result's
+environment_id. check_evidence_drift.py rejects any artifact whose recorded
+digest differs from the committed result, so an artifact built from an older
+result can no longer pass as current. source_commit is an audit coordinate and
+is not compared.
+"""
+from __future__ import annotations
+
+import hashlib
+import json
+import subprocess
+from pathlib import Path
+
+ROOT = Path(__file__).resolve().parents[1]
+RESULT = ROOT / "benchmarks" / "headline_result_v2.json"
+
+
+def result_digest(path: Path = RESULT) -> str:
+ return hashlib.sha256(path.read_bytes()).hexdigest()
+
+
+def source_commit() -> str | None:
+ try:
+ out = subprocess.run(["git", "rev-parse", "HEAD"], cwd=ROOT, capture_output=True, text=True, check=True)
+ except (OSError, subprocess.CalledProcessError):
+ return None
+ return out.stdout.strip() or None
+
+
+def provenance(path: Path = RESULT) -> dict:
+ """Provenance block for an artifact joined against the result at ``path``."""
+ if not path.exists():
+ return {"result_sha256": None, "environment_id": None, "source_commit": source_commit()}
+ result = json.loads(path.read_text())
+ return {
+ "result_sha256": result_digest(path),
+ "environment_id": result.get("environment_id"),
+ "source_commit": source_commit(),
+ }
diff --git a/benchmarks/native_hotspot_audit.json b/benchmarks/native_hotspot_audit.json
index 9a5666b..c9028cf 100644
--- a/benchmarks/native_hotspot_audit.json
+++ b/benchmarks/native_hotspot_audit.json
@@ -1,5 +1,10 @@
{
"schema_version": 1,
+ "provenance": {
+ "result_sha256": "466fd432d26dd8042a24425290d5c09ff749b3c504b137930334d97b7bb397be",
+ "environment_id": "8f11a9c3927a0fee",
+ "source_commit": "f1ed528c85871eb6174e614cb2070cf9d8f285c7"
+ },
"rows": [
{
"module": "sklearn.cluster._kmeans",
@@ -184,7 +189,7 @@
"numpy-bound:np."
],
"flow_scikit_status": "present",
- "priority_score": 41.763,
+ "priority_score": 41.493,
"disposition": "retain-native",
"replacement_hypothesis": "retain mature native kernel and optimize orchestration"
},
diff --git a/benchmarks/optimization_roadmap.json b/benchmarks/optimization_roadmap.json
index db337a5..a9bbdff 100644
--- a/benchmarks/optimization_roadmap.json
+++ b/benchmarks/optimization_roadmap.json
@@ -1,5 +1,10 @@
{
"schema_version": 1,
+ "provenance": {
+ "result_sha256": "466fd432d26dd8042a24425290d5c09ff749b3c504b137930334d97b7bb397be",
+ "environment_id": "8f11a9c3927a0fee",
+ "source_commit": "f1ed528c85871eb6174e614cb2070cf9d8f285c7"
+ },
"rows": [
{
"module": "sklearn.naive_bayes",
@@ -10,9 +15,9 @@
"priority_score": 75.303,
"disposition": "rewrite first",
"hypothesis": "remove Python control/validation and specialize the complete operation",
- "observed_flow_speedup": 36.92305912003644,
+ "observed_flow_speedup": 48.37859924418307,
"observed_flow_speedup_basis": "fit stage",
- "end_to_end_flow_speedup": 39.32729832633237,
+ "end_to_end_flow_speedup": 50.53908440976545,
"factors": {
"substrate": 1.0,
"python_share": 0.7768487375502466,
@@ -33,9 +38,9 @@
"priority_score": 74.209,
"disposition": "rewrite first",
"hypothesis": "remove Python control/validation and specialize the complete operation",
- "observed_flow_speedup": 26.729430370045982,
+ "observed_flow_speedup": 25.518284865293186,
"observed_flow_speedup_basis": "fit stage",
- "end_to_end_flow_speedup": 29.01401055054671,
+ "end_to_end_flow_speedup": 28.035204331766288,
"factors": {
"substrate": 1.0,
"python_share": 0.7675010060851367,
@@ -56,9 +61,9 @@
"priority_score": 73.718,
"disposition": "rewrite first",
"hypothesis": "remove Python control/validation and specialize the complete operation",
- "observed_flow_speedup": 67.42404894880767,
+ "observed_flow_speedup": 67.51252976533829,
"observed_flow_speedup_basis": "prediction stage",
- "end_to_end_flow_speedup": 39.32729832633237,
+ "end_to_end_flow_speedup": 50.53908440976545,
"factors": {
"substrate": 1.0,
"python_share": 0.7719461877859674,
@@ -79,9 +84,9 @@
"priority_score": 73.448,
"disposition": "rewrite first",
"hypothesis": "remove Python control/validation and specialize the complete operation",
- "observed_flow_speedup": 78.56684196567862,
+ "observed_flow_speedup": 100.19701143984221,
"observed_flow_speedup_basis": "prediction stage",
- "end_to_end_flow_speedup": 8.810806376308534,
+ "end_to_end_flow_speedup": 9.388836176223185,
"factors": {
"substrate": 1.0,
"python_share": 0.7651921008307522,
@@ -102,9 +107,9 @@
"priority_score": 73.412,
"disposition": "rewrite first",
"hypothesis": "remove Python control/validation and specialize the complete operation",
- "observed_flow_speedup": 45.16521439628483,
+ "observed_flow_speedup": 42.027946035242294,
"observed_flow_speedup_basis": "prediction stage",
- "end_to_end_flow_speedup": 29.01401055054671,
+ "end_to_end_flow_speedup": 28.035204331766288,
"factors": {
"substrate": 1.0,
"python_share": 0.761548614592637,
@@ -125,9 +130,9 @@
"priority_score": 73.343,
"disposition": "rewrite first",
"hypothesis": "remove Python control/validation and specialize the complete operation",
- "observed_flow_speedup": 11.623518585932295,
+ "observed_flow_speedup": 9.882211111342,
"observed_flow_speedup_basis": "prediction stage",
- "end_to_end_flow_speedup": 11.613701463823029,
+ "end_to_end_flow_speedup": 10.674778470802508,
"factors": {
"substrate": 1.0,
"python_share": 0.7521554495603252,
@@ -148,9 +153,9 @@
"priority_score": 72.137,
"disposition": "rewrite first",
"hypothesis": "remove Python control/validation and specialize the complete operation",
- "observed_flow_speedup": 12.047040386286522,
+ "observed_flow_speedup": 10.285252562800675,
"observed_flow_speedup_basis": "fit stage",
- "end_to_end_flow_speedup": 12.159450270357834,
+ "end_to_end_flow_speedup": 10.427480181923087,
"factors": {
"substrate": 0.8,
"python_share": 0.8401106939359337,
@@ -171,9 +176,9 @@
"priority_score": 71.741,
"disposition": "rewrite first",
"hypothesis": "remove Python control/validation and specialize the complete operation",
- "observed_flow_speedup": 11.612529870895028,
+ "observed_flow_speedup": 10.707179367161494,
"observed_flow_speedup_basis": "fit stage",
- "end_to_end_flow_speedup": 11.613701463823029,
+ "end_to_end_flow_speedup": 10.674778470802508,
"factors": {
"substrate": 0.8,
"python_share": 0.7603974859103786,
@@ -194,9 +199,9 @@
"priority_score": 68.569,
"disposition": "rewrite first",
"hypothesis": "remove Python control/validation and specialize the complete operation",
- "observed_flow_speedup": 7.940519133860424,
+ "observed_flow_speedup": 8.29885426498862,
"observed_flow_speedup_basis": "fit stage",
- "end_to_end_flow_speedup": 8.810806376308534,
+ "end_to_end_flow_speedup": 9.388836176223185,
"factors": {
"substrate": 0.8,
"python_share": 0.757963360389168,
@@ -217,9 +222,9 @@
"priority_score": 63.898,
"disposition": "rewrite first",
"hypothesis": "remove Python control/validation and specialize the complete operation",
- "observed_flow_speedup": 3.9240646092788634,
+ "observed_flow_speedup": 4.103123016662689,
"observed_flow_speedup_basis": "prediction stage",
- "end_to_end_flow_speedup": 2.5908731714303626,
+ "end_to_end_flow_speedup": 2.5430713271256202,
"factors": {
"substrate": 0.55,
"python_share": 0.9092169168801558,
@@ -240,9 +245,9 @@
"priority_score": 60.054,
"disposition": "rewrite first",
"hypothesis": "remove Python control/validation and specialize the complete operation",
- "observed_flow_speedup": 37.91835051479883,
+ "observed_flow_speedup": 40.43982718849677,
"observed_flow_speedup_basis": "prediction stage",
- "end_to_end_flow_speedup": 12.159450270357834,
+ "end_to_end_flow_speedup": 10.427480181923087,
"factors": {
"substrate": 0.55,
"python_share": 0.7657178256770327,
@@ -263,9 +268,9 @@
"priority_score": 54.0,
"disposition": "rewrite first",
"hypothesis": "remove Python control/validation and specialize the complete operation",
- "observed_flow_speedup": 67.42404894880767,
+ "observed_flow_speedup": 67.51252976533829,
"observed_flow_speedup_basis": "prediction stage",
- "end_to_end_flow_speedup": 39.32729832633237,
+ "end_to_end_flow_speedup": 50.53908440976545,
"factors": {
"substrate": 1.0,
"python_share": 0.0,
@@ -286,9 +291,9 @@
"priority_score": 54.0,
"disposition": "rewrite first",
"hypothesis": "remove Python control/validation and specialize the complete operation",
- "observed_flow_speedup": 37.91835051479883,
+ "observed_flow_speedup": 40.43982718849677,
"observed_flow_speedup_basis": "prediction stage",
- "end_to_end_flow_speedup": 12.159450270357834,
+ "end_to_end_flow_speedup": 10.427480181923087,
"factors": {
"substrate": 1.0,
"python_share": 0.0,
@@ -309,9 +314,9 @@
"priority_score": 54.0,
"disposition": "rewrite first",
"hypothesis": "remove Python control/validation and specialize the complete operation",
- "observed_flow_speedup": 41.57855967987805,
+ "observed_flow_speedup": 45.54252061512884,
"observed_flow_speedup_basis": "prediction stage",
- "end_to_end_flow_speedup": 9.379820419772697,
+ "end_to_end_flow_speedup": 9.387582899739245,
"factors": {
"substrate": 1.0,
"python_share": 0.0,
@@ -332,9 +337,9 @@
"priority_score": 54.0,
"disposition": "rewrite first",
"hypothesis": "remove Python control/validation and specialize the complete operation",
- "observed_flow_speedup": 45.247654460967894,
+ "observed_flow_speedup": 42.57640050122827,
"observed_flow_speedup_basis": "prediction stage",
- "end_to_end_flow_speedup": 4.09074830947249,
+ "end_to_end_flow_speedup": 3.984113852464967,
"factors": {
"substrate": 1.0,
"python_share": 0.0,
@@ -355,9 +360,9 @@
"priority_score": 54.0,
"disposition": "rewrite first",
"hypothesis": "remove Python control/validation and specialize the complete operation",
- "observed_flow_speedup": 45.247654460967894,
+ "observed_flow_speedup": 42.57640050122827,
"observed_flow_speedup_basis": "prediction stage",
- "end_to_end_flow_speedup": 4.09074830947249,
+ "end_to_end_flow_speedup": 3.984113852464967,
"factors": {
"substrate": 1.0,
"python_share": 0.0,
@@ -378,9 +383,9 @@
"priority_score": 54.0,
"disposition": "rewrite first",
"hypothesis": "remove Python control/validation and specialize the complete operation",
- "observed_flow_speedup": 11.623518585932295,
+ "observed_flow_speedup": 9.882211111342,
"observed_flow_speedup_basis": "prediction stage",
- "end_to_end_flow_speedup": 11.613701463823029,
+ "end_to_end_flow_speedup": 10.674778470802508,
"factors": {
"substrate": 1.0,
"python_share": 0.0,
@@ -401,9 +406,9 @@
"priority_score": 54.0,
"disposition": "rewrite first",
"hypothesis": "remove Python control/validation and specialize the complete operation",
- "observed_flow_speedup": 11.623518585932295,
+ "observed_flow_speedup": 9.882211111342,
"observed_flow_speedup_basis": "prediction stage",
- "end_to_end_flow_speedup": 11.613701463823029,
+ "end_to_end_flow_speedup": 10.674778470802508,
"factors": {
"substrate": 1.0,
"python_share": 0.0,
@@ -424,9 +429,9 @@
"priority_score": 54.0,
"disposition": "rewrite first",
"hypothesis": "remove Python control/validation and specialize the complete operation",
- "observed_flow_speedup": 7.255379668730581,
+ "observed_flow_speedup": 8.762613696778553,
"observed_flow_speedup_basis": "fit stage",
- "end_to_end_flow_speedup": 7.892718509725372,
+ "end_to_end_flow_speedup": 9.572992671204576,
"factors": {
"substrate": 1.0,
"python_share": 0.0,
@@ -447,9 +452,9 @@
"priority_score": 54.0,
"disposition": "rewrite first",
"hypothesis": "remove Python control/validation and specialize the complete operation",
- "observed_flow_speedup": 33.70367658730159,
+ "observed_flow_speedup": 32.15473948524796,
"observed_flow_speedup_basis": "prediction stage",
- "end_to_end_flow_speedup": 7.892718509725372,
+ "end_to_end_flow_speedup": 9.572992671204576,
"factors": {
"substrate": 1.0,
"python_share": 0.0,
@@ -470,9 +475,9 @@
"priority_score": 54.0,
"disposition": "rewrite first",
"hypothesis": "remove Python control/validation and specialize the complete operation",
- "observed_flow_speedup": 3.9240646092788634,
+ "observed_flow_speedup": 4.103123016662689,
"observed_flow_speedup_basis": "prediction stage",
- "end_to_end_flow_speedup": 2.5908731714303626,
+ "end_to_end_flow_speedup": 2.5430713271256202,
"factors": {
"substrate": 1.0,
"python_share": 0.0,
@@ -493,9 +498,9 @@
"priority_score": 54.0,
"disposition": "rewrite first",
"hypothesis": "remove Python control/validation and specialize the complete operation",
- "observed_flow_speedup": 3.9240646092788634,
+ "observed_flow_speedup": 4.103123016662689,
"observed_flow_speedup_basis": "prediction stage",
- "end_to_end_flow_speedup": 2.5908731714303626,
+ "end_to_end_flow_speedup": 2.5430713271256202,
"factors": {
"substrate": 1.0,
"python_share": 0.0,
@@ -516,9 +521,9 @@
"priority_score": 48.0,
"disposition": "compile whole estimator",
"hypothesis": "retain useful numerical kernels while fusing validation, allocation and orchestration",
- "observed_flow_speedup": 7.977987362909781,
+ "observed_flow_speedup": 7.789170029073743,
"observed_flow_speedup_basis": "fit stage",
- "end_to_end_flow_speedup": 8.498070170390863,
+ "end_to_end_flow_speedup": 8.416442030394196,
"factors": {
"substrate": 0.8,
"python_share": 0.0,
@@ -539,9 +544,9 @@
"priority_score": 48.0,
"disposition": "compile whole estimator",
"hypothesis": "retain useful numerical kernels while fusing validation, allocation and orchestration",
- "observed_flow_speedup": 26.27175165350508,
+ "observed_flow_speedup": 30.07185415693676,
"observed_flow_speedup_basis": "prediction stage",
- "end_to_end_flow_speedup": 8.498070170390863,
+ "end_to_end_flow_speedup": 8.416442030394196,
"factors": {
"substrate": 0.8,
"python_share": 0.0,
@@ -562,9 +567,9 @@
"priority_score": 48.0,
"disposition": "compile whole estimator",
"hypothesis": "retain useful numerical kernels while fusing validation, allocation and orchestration",
- "observed_flow_speedup": 4.239864485931094,
+ "observed_flow_speedup": 5.221266262888449,
"observed_flow_speedup_basis": "fit stage",
- "end_to_end_flow_speedup": 4.086517645676629,
+ "end_to_end_flow_speedup": 5.055631247728192,
"factors": {
"substrate": 0.8,
"python_share": 0.0,
@@ -585,9 +590,9 @@
"priority_score": 48.0,
"disposition": "compile whole estimator",
"hypothesis": "retain useful numerical kernels while fusing validation, allocation and orchestration",
- "observed_flow_speedup": 8.684113012020141,
+ "observed_flow_speedup": 8.500593951382656,
"observed_flow_speedup_basis": "fit stage",
- "end_to_end_flow_speedup": 9.379820419772697,
+ "end_to_end_flow_speedup": 9.387582899739245,
"factors": {
"substrate": 0.8,
"python_share": 0.0,
@@ -608,9 +613,9 @@
"priority_score": 48.0,
"disposition": "compile whole estimator",
"hypothesis": "retain useful numerical kernels while fusing validation, allocation and orchestration",
- "observed_flow_speedup": 3.1497298989110503,
+ "observed_flow_speedup": 4.143966874699554,
"observed_flow_speedup_basis": "fit stage",
- "end_to_end_flow_speedup": 3.279298828078061,
+ "end_to_end_flow_speedup": 4.351080161117769,
"factors": {
"substrate": 0.8,
"python_share": 0.0,
@@ -631,9 +636,9 @@
"priority_score": 48.0,
"disposition": "compile whole estimator",
"hypothesis": "retain useful numerical kernels while fusing validation, allocation and orchestration",
- "observed_flow_speedup": 34.17660144912489,
+ "observed_flow_speedup": 29.80588514508356,
"observed_flow_speedup_basis": "prediction stage",
- "end_to_end_flow_speedup": 3.279298828078061,
+ "end_to_end_flow_speedup": 4.351080161117769,
"factors": {
"substrate": 0.8,
"python_share": 0.0,
@@ -654,9 +659,9 @@
"priority_score": 48.0,
"disposition": "compile whole estimator",
"hypothesis": "retain useful numerical kernels while fusing validation, allocation and orchestration",
- "observed_flow_speedup": 34.17660144912489,
+ "observed_flow_speedup": 29.80588514508356,
"observed_flow_speedup_basis": "prediction stage",
- "end_to_end_flow_speedup": 3.279298828078061,
+ "end_to_end_flow_speedup": 4.351080161117769,
"factors": {
"substrate": 0.8,
"python_share": 0.0,
@@ -5849,18 +5854,18 @@
"operation": "fit",
"execution_class": "external-native-bound",
"flow_scikit_status": "present",
- "priority_score": 41.763,
+ "priority_score": 41.493,
"disposition": "reuse optimized native kernel",
"hypothesis": "retain the mature backend and optimize boundary, layout and dispatch overhead around it",
- "observed_flow_speedup": 2.3763485516876193,
+ "observed_flow_speedup": 2.322446994796547,
"observed_flow_speedup_basis": "fit stage",
- "end_to_end_flow_speedup": 2.5908731714303626,
+ "end_to_end_flow_speedup": 2.5430713271256202,
"factors": {
"substrate": 0.15,
"python_share": 0.8895490126881933,
"crossing_cost_proxy": 0.2308,
"allocation_proxy": 0.033409875,
- "observed_flow_speed": 0.7921161838958731,
+ "observed_flow_speed": 0.7741489982655158,
"implementation_readiness": 1.0,
"native_reuse_penalty": 0.35,
"complexity_penalty": 0.25
@@ -6105,9 +6110,9 @@
"priority_score": 40.5,
"disposition": "compile whole estimator",
"hypothesis": "retain useful numerical kernels while fusing validation, allocation and orchestration",
- "observed_flow_speedup": 26.27175165350508,
+ "observed_flow_speedup": 30.07185415693676,
"observed_flow_speedup_basis": "prediction stage",
- "end_to_end_flow_speedup": 8.498070170390863,
+ "end_to_end_flow_speedup": 8.416442030394196,
"factors": {
"substrate": 0.55,
"python_share": 0.0,
@@ -7039,6 +7044,29 @@
"complexity_penalty": 0.1
}
},
+ {
+ "module": "sklearn.kernel_ridge",
+ "estimator": "KernelRidge",
+ "operation": "predict",
+ "execution_class": "numpy-bound",
+ "flow_scikit_status": "present",
+ "priority_score": 40.5,
+ "disposition": "compile whole estimator",
+ "hypothesis": "retain useful numerical kernels while fusing validation, allocation and orchestration",
+ "observed_flow_speedup": 3.5023414110251694,
+ "observed_flow_speedup_basis": "prediction stage",
+ "end_to_end_flow_speedup": 5.055631247728192,
+ "factors": {
+ "substrate": 0.55,
+ "python_share": 0.0,
+ "crossing_cost_proxy": 0.0,
+ "allocation_proxy": 0.0,
+ "observed_flow_speed": 1.0,
+ "implementation_readiness": 1.0,
+ "native_reuse_penalty": 0.0,
+ "complexity_penalty": 0.1
+ }
+ },
{
"module": "sklearn.semi_supervised._label_propagation",
"estimator": "LabelPropagation",
@@ -8879,29 +8907,6 @@
"complexity_penalty": 0.1
}
},
- {
- "module": "sklearn.kernel_ridge",
- "estimator": "KernelRidge",
- "operation": "predict",
- "execution_class": "numpy-bound",
- "flow_scikit_status": "present",
- "priority_score": 39.901,
- "disposition": "compile whole estimator",
- "hypothesis": "retain useful numerical kernels while fusing validation, allocation and orchestration",
- "observed_flow_speedup": 2.8802705827523685,
- "observed_flow_speedup_basis": "prediction stage",
- "end_to_end_flow_speedup": 4.086517645676629,
- "factors": {
- "substrate": 0.55,
- "python_share": 0.0,
- "crossing_cost_proxy": 0.0,
- "allocation_proxy": 0.0,
- "observed_flow_speed": 0.9600901942507895,
- "implementation_readiness": 1.0,
- "native_reuse_penalty": 0.0,
- "complexity_penalty": 0.1
- }
- },
{
"module": "sklearn.cluster._bisect_k_means",
"estimator": "BisectingKMeans",
@@ -11119,9 +11124,9 @@
"priority_score": 20.0,
"disposition": "reuse optimized native kernel",
"hypothesis": "retain the mature backend and optimize boundary, layout and dispatch overhead around it",
- "observed_flow_speedup": 3.7923632527939537,
+ "observed_flow_speedup": 3.6295157085356964,
"observed_flow_speedup_basis": "fit stage",
- "end_to_end_flow_speedup": 4.09074830947249,
+ "end_to_end_flow_speedup": 3.984113852464967,
"factors": {
"substrate": 0.15,
"python_share": 0.0,
diff --git a/benchmarks/rank_optimization_opportunities.py b/benchmarks/rank_optimization_opportunities.py
index 8873e52..683474c 100644
--- a/benchmarks/rank_optimization_opportunities.py
+++ b/benchmarks/rank_optimization_opportunities.py
@@ -11,6 +11,8 @@
import json
from pathlib import Path
+from evidence_provenance import provenance
+
ROOT = Path(__file__).resolve().parents[1]
SUBSTRATE_OPPORTUNITY = {
@@ -199,7 +201,7 @@ def main():
},
})
rows.sort(key=lambda x: x["priority_score"], reverse=True)
- args.json.write_text(json.dumps({"schema_version": 1, "rows": rows}, indent=2) + "\n")
+ args.json.write_text(json.dumps({"schema_version": 1, "provenance": provenance(args.headline), "rows": rows}, indent=2) + "\n")
md = ["# Flow optimization roadmap", "", "Generated from committed inventory/profile/benchmark evidence.", "", "Observed Flow speedup is the mean over the estimator's canonical rows of the stage that times the operation: the fit stage for `fit`, the prediction stage for `predict`, `predict_proba`, `decision_function` and `transform`. The Basis column names the stage. End-to-end totals are kept in the JSON as `end_to_end_flow_speedup` and are not used for ranking.", "", "| Rank | Estimator | Operation | Substrate | Score | Disposition | Observed Flow speedup | Basis | Hypothesis |", "|---:|---|---|---|---:|---|---:|---|---|"]
for i, r in enumerate(rows[:100], 1):
observed = "" if r["observed_flow_speedup"] is None else f"{r['observed_flow_speedup']:.2f}×"
diff --git a/benchmarks/refresh_derived_evidence.py b/benchmarks/refresh_derived_evidence.py
new file mode 100644
index 0000000..cbecf26
--- /dev/null
+++ b/benchmarks/refresh_derived_evidence.py
@@ -0,0 +1,63 @@
+#!/usr/bin/env python3
+"""Regenerate every artifact derived from headline_result_v2.json in one step.
+
+Reads the committed headline result and rebuilds the optimization roadmap, the
+native hotspot audit, the architecture map, and the headline rows embedded in
+whole_estimator_experiments.json. All outputs are staged in a temporary
+directory first and moved into place together, then check_evidence_drift.py
+runs over the result. Needs only the standard library, so it can run on the
+freeze job after the canonical result is promoted.
+
+whole_estimator_experiments.json also holds timed kernel experiments. Those
+are kept as measured; only its provenance and its copy of the headline rows are
+refreshed here.
+"""
+from __future__ import annotations
+
+import json
+import os
+import subprocess
+import sys
+import tempfile
+from pathlib import Path
+
+from evidence_provenance import provenance
+
+ROOT = Path(__file__).resolve().parents[1]
+BENCH = ROOT / "benchmarks"
+
+
+def run(script: str, *args: object) -> None:
+ subprocess.run([sys.executable, str(BENCH / script), *map(str, args)], cwd=ROOT, check=True, stdout=subprocess.DEVNULL)
+
+
+def main() -> int:
+ headline_path = BENCH / "headline_result_v2.json"
+ headline = json.loads(headline_path.read_text())
+ with tempfile.TemporaryDirectory(dir=BENCH, prefix=".refresh-") as tmp:
+ tmp = Path(tmp)
+ roadmap, roadmap_md = tmp / "optimization_roadmap.json", tmp / "OPTIMIZATION_ROADMAP.md"
+ hotspots, hotspots_md = tmp / "native_hotspot_audit.json", tmp / "NATIVE_HOTSPOT_AUDIT.md"
+ whole = tmp / "whole_estimator_experiments.json"
+ amap, amap_md = tmp / "architecture_performance_map.json", tmp / "ARCHITECTURE_PERFORMANCE_MAP.md"
+
+ run("rank_optimization_opportunities.py", "--headline", headline_path, "--json", roadmap, "--markdown", roadmap_md)
+ run("audit_native_hotspots.py", "--roadmap", roadmap, "--json", hotspots, "--markdown", hotspots_md)
+
+ doc = json.loads((BENCH / "whole_estimator_experiments.json").read_text())
+ doc["provenance"] = provenance(headline_path)
+ for row in doc["rows"]:
+ if "flow_rows" in row:
+ row["flow_rows"] = [r for r in headline["rows"] if r.get("algorithm") == row["representative"]]
+ whole.write_text(json.dumps(doc, indent=2) + "\n")
+
+ run("architecture_performance_report.py", "--headline", headline_path, "--roadmap", roadmap,
+ "--hotspots", hotspots, "--whole", whole, "--json", amap, "--markdown", amap_md)
+
+ for src in (roadmap, roadmap_md, hotspots, hotspots_md, whole, amap, amap_md):
+ os.replace(src, BENCH / src.name)
+ return subprocess.run([sys.executable, str(BENCH / "check_evidence_drift.py")], cwd=ROOT).returncode
+
+
+if __name__ == "__main__":
+ raise SystemExit(main())
diff --git a/benchmarks/test_check_evidence_drift.py b/benchmarks/test_check_evidence_drift.py
new file mode 100644
index 0000000..674c5ad
--- /dev/null
+++ b/benchmarks/test_check_evidence_drift.py
@@ -0,0 +1,143 @@
+#!/usr/bin/env python3
+"""check_evidence_drift.py must accept a refreshed tree and reject each kind of drift.
+
+Each case copies benchmarks/ to a scratch root, refreshes the derived artifacts
+there so the starting point is consistent, applies one mutation, and requires a
+non-zero exit that names the mutated artifact.
+"""
+from __future__ import annotations
+
+import json
+import shutil
+import subprocess
+import sys
+import tempfile
+from pathlib import Path
+
+ROOT = Path(__file__).resolve().parents[1]
+
+
+def run(root: Path, script: str) -> subprocess.CompletedProcess:
+ return subprocess.run([sys.executable, str(root / "benchmarks" / script)], cwd=root, capture_output=True, text=True)
+
+
+def load(path: Path):
+ return json.loads(path.read_text())
+
+
+def store(path: Path, doc) -> None:
+ path.write_text(json.dumps(doc, indent=2) + "\n")
+
+
+def mutate_result_speedup(root: Path) -> None:
+ p = root / "benchmarks" / "headline_result_v2.json"
+ doc = load(p)
+ doc["rows"][0]["speedup"] = doc["rows"][0]["speedup"] * 1.5
+ store(p, doc)
+
+
+def mutate_map_speedup(root: Path) -> None:
+ p = root / "benchmarks" / "architecture_performance_map.json"
+ doc = load(p)
+ doc["joined_headline_rows"][0]["flow_speedup"] *= 1.5
+ store(p, doc)
+
+
+def mutate_map_digest(root: Path) -> None:
+ p = root / "benchmarks" / "architecture_performance_map.json"
+ doc = load(p)
+ doc["provenance"]["result_sha256"] = "0" * 64
+ store(p, doc)
+
+
+def mutate_map_environment(root: Path) -> None:
+ p = root / "benchmarks" / "optimization_roadmap.json"
+ doc = load(p)
+ doc["provenance"]["environment_id"] = "ffffffffffffffff"
+ store(p, doc)
+
+
+def mutate_markdown(root: Path) -> None:
+ p = root / "benchmarks" / "ARCHITECTURE_PERFORMANCE_MAP.md"
+ p.write_text(p.read_text().replace("× |", "×x |", 1))
+
+
+def mutate_whole_rows(root: Path) -> None:
+ p = root / "benchmarks" / "whole_estimator_experiments.json"
+ doc = load(p)
+ row = next(r for r in doc["rows"] if r.get("flow_rows"))
+ row["flow_rows"][0]["flow_fit_ms"] += 1.0
+ store(p, doc)
+
+
+def mutate_pages_copy(root: Path) -> None:
+ docs = root / "docs"
+ docs.mkdir(exist_ok=True)
+ shutil.copyfile(root / "benchmarks" / "architecture_performance_map.json", docs / "architecture-performance-map.json")
+ with (docs / "architecture-performance-map.json").open("a") as f:
+ f.write(" ")
+
+
+def mutate_disparity_environment(root: Path) -> None:
+ p = root / "benchmarks" / "disparity_report.json"
+ doc = load(p)
+ doc["environment_id"] = "ffffffffffffffff"
+ store(p, doc)
+
+
+CASES = [
+ ("result changed after the derived files were built", mutate_result_speedup, "built from result sha256"),
+ ("map speedup edited", mutate_map_speedup, "flow_speedup"),
+ ("map digest replaced", mutate_map_digest, "architecture_performance_map.json: built from result sha256"),
+ ("roadmap environment replaced", mutate_map_environment, "optimization_roadmap.json: environment_id"),
+ ("map markdown disagrees with map", mutate_markdown, "ARCHITECTURE_PERFORMANCE_MAP.md"),
+ ("whole-estimator embedded rows stale", mutate_whole_rows, "stale headline rows"),
+ ("Pages copy differs from source", mutate_pages_copy, "docs/architecture-performance-map.json differs"),
+ ("disparity report from another environment", mutate_disparity_environment, "disparity_report.json: environment_id"),
+]
+
+
+def main() -> int:
+ failures = 0
+ with tempfile.TemporaryDirectory() as tmp:
+ base = Path(tmp) / "base"
+ (base / "docs").mkdir(parents=True)
+ shutil.copytree(ROOT / "benchmarks", base / "benchmarks", ignore=shutil.ignore_patterns("__pycache__", "generated"))
+ refreshed = run(base, "refresh_derived_evidence.py")
+ if refreshed.returncode != 0:
+ print("FAIL refresh on a scratch copy:", refreshed.stdout, refreshed.stderr)
+ return 1
+ if run(base, "check_evidence_drift.py").returncode != 0:
+ print("FAIL a freshly refreshed tree must pass")
+ return 1
+ print("PASS refreshed tree is accepted")
+
+ for name, mutate, expect in CASES:
+ case = Path(tmp) / "case"
+ if case.exists():
+ shutil.rmtree(case)
+ shutil.copytree(base, case)
+ mutate(case)
+ out = run(case, "check_evidence_drift.py")
+ if out.returncode == 0 or expect not in out.stdout:
+ failures += 1
+ print(f"FAIL {name}: exit {out.returncode}, wanted {expect!r}\n{out.stdout}{out.stderr}")
+ else:
+ print(f"PASS {name} is rejected")
+
+ # A refresh heals the mutated result, which proves the check is about
+ # the join and that the single command repairs it.
+ case = Path(tmp) / "heal"
+ shutil.copytree(base, case)
+ mutate_result_speedup(case)
+ run(case, "refresh_derived_evidence.py")
+ if run(case, "check_evidence_drift.py").returncode != 0:
+ failures += 1
+ print("FAIL refresh did not repair a changed result")
+ else:
+ print("PASS refresh repairs a changed result")
+ return 1 if failures else 0
+
+
+if __name__ == "__main__":
+ sys.exit(main())
diff --git a/benchmarks/whole_estimator_experiments.json b/benchmarks/whole_estimator_experiments.json
index ca2cfa4..a5715d9 100644
--- a/benchmarks/whole_estimator_experiments.json
+++ b/benchmarks/whole_estimator_experiments.json
@@ -114,25 +114,25 @@
"category": "supervised",
"sklearn_score": 0.966666667,
"flow_score": 0.966666639,
- "sklearn_fit_ms": 0.547885469,
- "sklearn_pred_ms": 0.0983503555,
- "flow_fit_ms": 0.008012,
- "flow_pred_ms": 0.000751,
- "sklearn_fit_iqr_ms": 0.005536797,
- "sklearn_pred_iqr_ms": 0.0008921328,
- "flow_fit_iqr_ms": 0.003325,
- "flow_pred_iqr_ms": 8e-05,
- "sklearn_ms": 0.6462358245000001,
- "flow_ms": 0.008763,
+ "sklearn_fit_ms": 0.458299266,
+ "sklearn_pred_ms": 0.0873740117,
+ "flow_fit_ms": 0.005032,
+ "flow_pred_ms": 0.000671,
+ "sklearn_fit_iqr_ms": 0.001183953,
+ "sklearn_pred_iqr_ms": 0.0009356406,
+ "flow_fit_iqr_ms": 0.000343,
+ "flow_pred_iqr_ms": 0.000175,
+ "sklearn_ms": 0.5456732777,
+ "flow_ms": 0.005703,
"timing_unit": "ms",
"benchmark_mode": "end_to_end",
"fixture_source": "benchmarks/split_indices.json + split_*.bin",
"parity_status": "parity verified",
"measurement_status": "resolved",
"comparable": true,
- "environment_id": "dfc7d2341e474c4a",
+ "environment_id": "8f11a9c3927a0fee",
"classification": "flow win",
- "speedup": 73.74595737761041
+ "speedup": 95.68179514290723
},
{
"algorithm": "GaussianNB",
@@ -141,25 +141,25 @@
"category": "supervised",
"sklearn_score": 0.741666667,
"flow_score": 0.741666675,
- "sklearn_fit_ms": 1.09014897,
- "sklearn_pred_ms": 0.421883734,
- "flow_fit_ms": 0.199551001,
- "flow_pred_ms": 0.108484,
- "sklearn_fit_iqr_ms": 0.00353891,
- "sklearn_pred_iqr_ms": 0.010360343,
- "flow_fit_iqr_ms": 0.004898012,
- "flow_pred_iqr_ms": 0.001281999,
- "sklearn_ms": 1.5120327040000001,
- "flow_ms": 0.30803500100000003,
+ "sklearn_fit_ms": 0.955796563,
+ "sklearn_pred_ms": 0.392142016,
+ "flow_fit_ms": 0.168266997,
+ "flow_pred_ms": 0.081519,
+ "sklearn_fit_iqr_ms": 0.010119219,
+ "sklearn_pred_iqr_ms": 0.006483219,
+ "flow_fit_iqr_ms": 0.003013998,
+ "flow_pred_iqr_ms": 0.000372998,
+ "sklearn_ms": 1.347938579,
+ "flow_ms": 0.24978599699999998,
"timing_unit": "ms",
"benchmark_mode": "end_to_end",
"fixture_source": "benchmarks/split_indices.json + split_*.bin",
"parity_status": "parity verified",
"measurement_status": "resolved",
"comparable": true,
- "environment_id": "dfc7d2341e474c4a",
+ "environment_id": "8f11a9c3927a0fee",
"classification": "flow win",
- "speedup": 4.90863927505433
+ "speedup": 5.396373676623674
}
],
"kernel_baseline": {
@@ -279,25 +279,25 @@
"category": "supervised",
"sklearn_score": 0.966666667,
"flow_score": 0.966666639,
- "sklearn_fit_ms": 0.547885469,
- "sklearn_pred_ms": 0.0983503555,
- "flow_fit_ms": 0.008012,
- "flow_pred_ms": 0.000751,
- "sklearn_fit_iqr_ms": 0.005536797,
- "sklearn_pred_iqr_ms": 0.0008921328,
- "flow_fit_iqr_ms": 0.003325,
- "flow_pred_iqr_ms": 8e-05,
- "sklearn_ms": 0.6462358245000001,
- "flow_ms": 0.008763,
+ "sklearn_fit_ms": 0.458299266,
+ "sklearn_pred_ms": 0.0873740117,
+ "flow_fit_ms": 0.005032,
+ "flow_pred_ms": 0.000671,
+ "sklearn_fit_iqr_ms": 0.001183953,
+ "sklearn_pred_iqr_ms": 0.0009356406,
+ "flow_fit_iqr_ms": 0.000343,
+ "flow_pred_iqr_ms": 0.000175,
+ "sklearn_ms": 0.5456732777,
+ "flow_ms": 0.005703,
"timing_unit": "ms",
"benchmark_mode": "end_to_end",
"fixture_source": "benchmarks/split_indices.json + split_*.bin",
"parity_status": "parity verified",
"measurement_status": "resolved",
"comparable": true,
- "environment_id": "dfc7d2341e474c4a",
+ "environment_id": "8f11a9c3927a0fee",
"classification": "flow win",
- "speedup": 73.74595737761041
+ "speedup": 95.68179514290723
},
{
"algorithm": "GaussianNB",
@@ -306,25 +306,25 @@
"category": "supervised",
"sklearn_score": 0.741666667,
"flow_score": 0.741666675,
- "sklearn_fit_ms": 1.09014897,
- "sklearn_pred_ms": 0.421883734,
- "flow_fit_ms": 0.199551001,
- "flow_pred_ms": 0.108484,
- "sklearn_fit_iqr_ms": 0.00353891,
- "sklearn_pred_iqr_ms": 0.010360343,
- "flow_fit_iqr_ms": 0.004898012,
- "flow_pred_iqr_ms": 0.001281999,
- "sklearn_ms": 1.5120327040000001,
- "flow_ms": 0.30803500100000003,
+ "sklearn_fit_ms": 0.955796563,
+ "sklearn_pred_ms": 0.392142016,
+ "flow_fit_ms": 0.168266997,
+ "flow_pred_ms": 0.081519,
+ "sklearn_fit_iqr_ms": 0.010119219,
+ "sklearn_pred_iqr_ms": 0.006483219,
+ "flow_fit_iqr_ms": 0.003013998,
+ "flow_pred_iqr_ms": 0.000372998,
+ "sklearn_ms": 1.347938579,
+ "flow_ms": 0.24978599699999998,
"timing_unit": "ms",
"benchmark_mode": "end_to_end",
"fixture_source": "benchmarks/split_indices.json + split_*.bin",
"parity_status": "parity verified",
"measurement_status": "resolved",
"comparable": true,
- "environment_id": "dfc7d2341e474c4a",
+ "environment_id": "8f11a9c3927a0fee",
"classification": "flow win",
- "speedup": 4.90863927505433
+ "speedup": 5.396373676623674
}
],
"kernel_baseline": {
@@ -444,25 +444,25 @@
"category": "supervised",
"sklearn_score": 0.933333333,
"flow_score": 0.933333337,
- "sklearn_fit_ms": 2.95820125,
- "sklearn_pred_ms": 0.0821389336,
- "flow_fit_ms": 0.146911994,
- "flow_pred_ms": 0.004057,
- "sklearn_fit_iqr_ms": 0.01090163,
- "sklearn_pred_iqr_ms": 0.0027472422,
- "flow_fit_iqr_ms": 0.001000002,
- "flow_pred_iqr_ms": 8e-05,
- "sklearn_ms": 3.0403401836,
- "flow_ms": 0.150968994,
+ "sklearn_fit_ms": 2.33989094,
+ "sklearn_pred_ms": 0.0800641953,
+ "flow_fit_ms": 0.127223998,
+ "flow_pred_ms": 0.004827,
+ "sklearn_fit_iqr_ms": 0.00226838,
+ "sklearn_pred_iqr_ms": 0.0001028789,
+ "flow_fit_iqr_ms": 0.003358006,
+ "flow_pred_iqr_ms": 0.000417,
+ "sklearn_ms": 2.4199551353,
+ "flow_ms": 0.132050998,
"timing_unit": "ms",
"benchmark_mode": "end_to_end",
"fixture_source": "benchmarks/split_indices.json + split_*.bin",
"parity_status": "approximately equivalent",
"measurement_status": "resolved",
"comparable": true,
- "environment_id": "dfc7d2341e474c4a",
+ "environment_id": "8f11a9c3927a0fee",
"classification": "flow win",
- "speedup": 20.138838466393967
+ "speedup": 18.325913260420794
},
{
"algorithm": "LogisticRegression",
@@ -471,25 +471,25 @@
"category": "supervised",
"sklearn_score": 0.972222222,
"flow_score": 0.972222209,
- "sklearn_fit_ms": 14.5276295,
- "sklearn_pred_ms": 0.10007709,
- "flow_fit_ms": 4.7027359,
- "flow_pred_ms": 0.033349998,
- "sklearn_fit_iqr_ms": 0.2933725,
- "sklearn_pred_iqr_ms": 0.0008928088,
- "flow_fit_iqr_ms": 0.038368225,
- "flow_pred_iqr_ms": 0.000631001,
- "sklearn_ms": 14.627706589999999,
- "flow_ms": 4.736085898000001,
+ "sklearn_fit_ms": 12.1236595,
+ "sklearn_pred_ms": 0.0979806484,
+ "flow_fit_ms": 4.01118994,
+ "flow_pred_ms": 0.030834001,
+ "sklearn_fit_iqr_ms": 0.1280435,
+ "sklearn_pred_iqr_ms": 0.0005349805,
+ "flow_fit_iqr_ms": 0.058334112,
+ "flow_pred_iqr_ms": 0.000497999,
+ "sklearn_ms": 12.2216401484,
+ "flow_ms": 4.042023941,
"timing_unit": "ms",
"benchmark_mode": "end_to_end",
"fixture_source": "benchmarks/split_indices.json + split_*.bin",
"parity_status": "approximately equivalent",
"measurement_status": "resolved",
"comparable": true,
- "environment_id": "dfc7d2341e474c4a",
+ "environment_id": "8f11a9c3927a0fee",
"classification": "flow win",
- "speedup": 3.088564461252091
+ "speedup": 3.023643681184223
}
],
"kernel_baseline": {
@@ -609,25 +609,25 @@
"category": "supervised",
"sklearn_score": 0.452602744,
"flow_score": 0.452602625,
- "sklearn_fit_ms": 0.407968,
- "sklearn_pred_ms": 0.0503613457,
- "flow_fit_ms": 0.051378001,
- "flow_pred_ms": 0.000641,
- "sklearn_fit_iqr_ms": 0.004298,
- "sklearn_pred_iqr_ms": 0.0006205547,
- "flow_fit_iqr_ms": 0.000710998,
- "flow_pred_iqr_ms": 5.1e-05,
- "sklearn_ms": 0.4583293457,
- "flow_ms": 0.052019001,
+ "sklearn_fit_ms": 0.350535297,
+ "sklearn_pred_ms": 0.0507998848,
+ "flow_fit_ms": 0.042238999,
+ "flow_pred_ms": 0.000507,
+ "sklearn_fit_iqr_ms": 0.001480359,
+ "sklearn_pred_iqr_ms": 0.0007798164,
+ "flow_fit_iqr_ms": 0.000530001,
+ "flow_pred_iqr_ms": 3.9e-05,
+ "sklearn_ms": 0.40133518180000005,
+ "flow_ms": 0.042745999,
"timing_unit": "ms",
"benchmark_mode": "end_to_end",
"fixture_source": "benchmarks/split_indices.json + split_*.bin",
"parity_status": "parity verified",
"measurement_status": "resolved",
"comparable": true,
- "environment_id": "dfc7d2341e474c4a",
+ "environment_id": "8f11a9c3927a0fee",
"classification": "flow win",
- "speedup": 8.810806376308534
+ "speedup": 9.388836176223185
}
],
"kernel_baseline": {
@@ -752,25 +752,25 @@
"category": "supervised",
"sklearn_score": 0.966666667,
"flow_score": 0.966666639,
- "sklearn_fit_ms": 8.42097725,
- "sklearn_pred_ms": 0.547021906,
- "flow_fit_ms": 2.06512093,
- "flow_pred_ms": 0.008332,
- "sklearn_fit_iqr_ms": 0.07931675,
- "sklearn_pred_iqr_ms": 0.007694563,
- "flow_fit_iqr_ms": 1.77364397,
- "flow_pred_iqr_ms": 0.00046,
- "sklearn_ms": 8.967999156,
- "flow_ms": 2.0734529299999997,
+ "sklearn_fit_ms": 7.08113325,
+ "sklearn_pred_ms": 0.465911281,
+ "flow_fit_ms": 1.04771697,
+ "flow_pred_ms": 0.008199,
+ "sklearn_fit_iqr_ms": 0.0568885,
+ "sklearn_pred_iqr_ms": 0.000123266,
+ "flow_fit_iqr_ms": 0.290257037,
+ "flow_pred_iqr_ms": 0.000651,
+ "sklearn_ms": 7.547044531,
+ "flow_ms": 1.05591597,
"timing_unit": "ms",
"benchmark_mode": "end_to_end",
"fixture_source": "benchmarks/split_indices.json + split_*.bin",
"parity_status": "approximately equivalent",
"measurement_status": "resolved",
"comparable": true,
- "environment_id": "dfc7d2341e474c4a",
+ "environment_id": "8f11a9c3927a0fee",
"classification": "flow win",
- "speedup": 4.3251520332318325
+ "speedup": 7.147391218072022
},
{
"algorithm": "RandomForest",
@@ -779,25 +779,25 @@
"category": "supervised",
"sklearn_score": 0.936111111,
"flow_score": 0.955555558,
- "sklearn_fit_ms": 22.656283,
- "sklearn_pred_ms": 0.690505,
- "flow_fit_ms": 10.1975241,
- "flow_pred_ms": 0.255735993,
- "sklearn_fit_iqr_ms": 0.063057,
- "sklearn_pred_iqr_ms": 0.005458813,
- "flow_fit_iqr_ms": 1.10964107,
- "flow_pred_iqr_ms": 0.014230996,
- "sklearn_ms": 23.346788,
- "flow_ms": 10.453260093,
+ "sklearn_fit_ms": 18.7362865,
+ "sklearn_pred_ms": 0.705887656,
+ "flow_fit_ms": 12.2515287,
+ "flow_pred_ms": 0.253333986,
+ "sklearn_fit_iqr_ms": 0.0804385,
+ "sklearn_pred_iqr_ms": 0.006308844,
+ "flow_fit_iqr_ms": 3.04496956,
+ "flow_pred_iqr_ms": 0.003629982,
+ "sklearn_ms": 19.442174156,
+ "flow_ms": 12.504862686,
"timing_unit": "ms",
"benchmark_mode": "end_to_end",
"fixture_source": "benchmarks/split_indices.json + split_*.bin",
"parity_status": "approximately equivalent",
"measurement_status": "resolved",
"comparable": true,
- "environment_id": "dfc7d2341e474c4a",
+ "environment_id": "8f11a9c3927a0fee",
"classification": "flow win",
- "speedup": 2.233445622924289
+ "speedup": 1.5547691041635163
}
],
"kernel_baseline": {
@@ -1070,5 +1070,10 @@
"kernel": "fused NumPy scaling + lstsq reference",
"orchestration_overhead_ms": 0.0
}
- ]
+ ],
+ "provenance": {
+ "result_sha256": "466fd432d26dd8042a24425290d5c09ff749b3c504b137930334d97b7bb397be",
+ "environment_id": "8f11a9c3927a0fee",
+ "source_commit": "f1ed528c85871eb6174e614cb2070cf9d8f285c7"
+ }
}
diff --git a/benchmarks/whole_estimator_experiments.py b/benchmarks/whole_estimator_experiments.py
index 289e0bf..be13de3 100644
--- a/benchmarks/whole_estimator_experiments.py
+++ b/benchmarks/whole_estimator_experiments.py
@@ -13,6 +13,7 @@
from pathlib import Path
import numpy as np
+from evidence_provenance import provenance
from sklearn.decomposition import PCA
from sklearn.linear_model import LinearRegression
from sklearn.pipeline import make_pipeline
@@ -90,7 +91,7 @@ def main():
row["kernel_baseline"] = {"status": "unavailable", "reason": "no stable public isolated kernel exposes identical estimator semantics"}
rows.append(row)
rows.append({"execution_class": "mixed", "representative": "Pipeline(StandardScaler,LinearRegression)", "kernel_baseline": direct[-1], "profile": None, "flow_rows": [], "hypothesis": "whole-program fusion can eliminate intermediate standardized arrays and repeated validation"})
- args.output.write_text(json.dumps({"schema_version": 1, "question": "does whole-estimator compilation reduce orchestration/allocation overhead beyond kernel speed?", "rows": rows, "direct_kernel_experiments": direct}, indent=2) + "\n")
+ args.output.write_text(json.dumps({"schema_version": 1, "provenance": provenance(args.headline), "question": "does whole-estimator compilation reduce orchestration/allocation overhead beyond kernel speed?", "rows": rows, "direct_kernel_experiments": direct}, indent=2) + "\n")
print(f"wrote {len(rows)} whole-estimator experiment rows")
return 0
diff --git a/docs/architecture.html b/docs/architecture.html
index 2e3ebeb..8ecb439 100644
--- a/docs/architecture.html
+++ b/docs/architecture.html
@@ -1 +1 @@
-
Execution architecture, flow-scikit execution architecture / generated appraisal
"Python versus compiled" is the wrong comparison. scikit-learn is layered. Its public API is Python, but estimator work may execute in Python orchestration, NumPy/SciPy, BLAS/LAPACK, sklearn-owned compiled code or mature external native libraries. Flow-scikit now maps those layers, profiles representative workloads and joins that evidence to the canonical benchmark.
estimator operations ... Generated from the pinned sklearn public estimator surface.
runtime profiles ... Representative fit/inference attribution rows.
native hotspots ... Compiled/mixed paths with explicit retain/replace dispositions.
whole-estimator experiments ... Experiments separating public API overhead from underlying kernels.
Evidence status: this is no longer a provisional static table. CI regenerates the estimator-operation inventory against the pinned sklearn version, checks estimator-surface drift, profiles representative workloads, ranks optimization opportunities and joins all 19 canonical benchmark rows to substrate and speedup evidence.
substrate signal
Where Flow wins follows the substrate. The current grouped result is descriptive evidence. It does not establish cause. It is nevertheless useful enough to prioritize engineering: Flow now wins every canonical row in all three substrate classes, and the margin still follows the class: largest on rows classified Python-bound, smaller on boundary-heavy workloads, smallest where sklearn calls an external native library. The table below carries the current means. Earlier, while the Flow side was compiled unoptimized, every external-native-bound row lost, which read as a ceiling rather than as a build setting.
sklearn fit substrate rows mean Flow speedup Flow win fraction
all headline rows
Every benchmark result is attached to an execution hypothesis. Algorithm Dataset Substrate Parity Winner Flow speedup Python self share
roadmap logic
Replace selectively. Reuse deliberately. Python-bound and boundary-heavy operations can rank highly when profiling shows orchestration cost, allocation pressure or repeated crossings. sklearn-owned compiled hotspots become direct Flow replacement targets when parity and benchmark evidence justify it. BLAS/LAPACK, liblinear, libsvm and other mature native kernels receive a reuse bias unless measurements show a real reason to replace them.
The generated optimization roadmap , native hotspot audit and full estimator inventory are the detailed source artifacts.
defensible conclusion
Whole-estimator compilation is a measurable hypothesis now. Flow-scikit no longer needs to infer opportunity from whether sklearn source files happen to be Python or Cython. The repository can connect a win or loss to the substrate underneath the public API, the Python-visible runtime share, native crossings, parity status and current Flow implementation. That makes future rewrite decisions falsifiable rather than rhetorical.
Inspect the canonical benchmark →
\ No newline at end of file
+Execution architecture, flow-scikit execution architecture / generated appraisal
"Python versus compiled" is the wrong comparison. scikit-learn is layered. Its public API is Python, but estimator work may execute in Python orchestration, NumPy/SciPy, BLAS/LAPACK, sklearn-owned compiled code or mature external native libraries. Flow-scikit now maps those layers, profiles representative workloads and joins that evidence to the canonical benchmark.
estimator operations ... Generated from the pinned sklearn public estimator surface.
runtime profiles ... Representative fit/inference attribution rows.
native hotspots ... Compiled/mixed paths with explicit retain/replace dispositions.
whole-estimator experiments ... Experiments separating public API overhead from underlying kernels.
Evidence status: this is no longer a provisional static table. CI regenerates the estimator-operation inventory against the pinned sklearn version, checks estimator-surface drift, profiles representative workloads, ranks optimization opportunities and joins all 19 canonical benchmark rows to substrate and speedup evidence.
substrate signal
Where Flow wins follows the substrate. The current grouped result is descriptive evidence. It does not establish cause. It is nevertheless useful enough to prioritize engineering: Flow now wins every canonical row in all three substrate classes, and the margin still follows the class: largest on rows classified Python-bound, smaller on boundary-heavy workloads, smallest where sklearn calls an external native library. The table below carries the current means. Earlier, while the Flow side was compiled unoptimized, every external-native-bound row lost, which read as a ceiling rather than as a build setting.
sklearn fit substrate rows mean Flow speedup Flow win fraction
all headline rows
Every benchmark result is attached to an execution hypothesis. Algorithm Dataset Substrate Parity Winner Flow speedup Python self share
roadmap logic
Replace selectively. Reuse deliberately. Python-bound and boundary-heavy operations can rank highly when profiling shows orchestration cost, allocation pressure or repeated crossings. sklearn-owned compiled hotspots become direct Flow replacement targets when parity and benchmark evidence justify it. BLAS/LAPACK, liblinear, libsvm and other mature native kernels receive a reuse bias unless measurements show a real reason to replace them.
The generated optimization roadmap , native hotspot audit and full estimator inventory are the detailed source artifacts.
defensible conclusion
Whole-estimator compilation is a measurable hypothesis now. Flow-scikit no longer needs to infer opportunity from whether sklearn source files happen to be Python or Cython. The repository can connect a win or loss to the substrate underneath the public API, the Python-visible runtime share, native crossings, parity status and current Flow implementation. That makes future rewrite decisions falsifiable rather than rhetorical.
Inspect the canonical benchmark →
\ No newline at end of file
diff --git a/docs/benchmarks.html b/docs/benchmarks.html
index 1ba3560..f843df0 100644
--- a/docs/benchmarks.html
+++ b/docs/benchmarks.html
@@ -1,4 +1,4 @@
-Benchmarks, flow-scikit canonical v2 / parity + disparity benchmark
Eligibility never means identity. All 19 canonical rows are measured and currently eligible for comparison, but numerical, semantic and runtime disparities remain first-class evidence. This page renders the committed benchmark and disparity artifacts directly so differences cannot disappear merely because a row passes its contract.
Flow wins ... End-to-end fit + predict comparisons won by Flow.
sklearn wins ... End-to-end comparisons won by scikit-learn.
parity eligible ... Rows admitted to the competitive denominator.
substantive disparities ... Rows whose fitted state, score, configuration or semantics genuinely diverge, above float-noise floors. Runtime differences are tracked per row but not counted here.
TIMING_UNIT|ms end-to-end seed=42 80/20 persisted split 2% practical tie threshold disparity retained after eligibility
KMeans note: Digits KMeans is eligible under the same declared contract as every other clustering row. Its seeded k-means++ initialization now matches scikit-learn's, so the strict diagnostic and the final eligibility decision agree. The convergence statistic, the point at which inertia is reported, empty-cluster relocation and the n_init selection rule still differ and stay visible in the disparity artifact.
runtime overview
The plots are generated from the canonical JSON. Each runtime plot shows end-to-end fit + predict time on a log scale. The plots use the same rows as the table below and therefore update whenever the frozen canonical result changes.
All 19 speed ratios scikit-learn total time divided by Flow total time. The vertical 1× line separates Flow wins from scikit-learn wins.
Iris total runtime scikit-learn Flow
Digits total runtime scikit-learn Flow
Diabetes total runtime scikit-learn Flow
persistent disparity
Passing parity does not erase the gap. The disparity plot normalizes each row's principal numerical difference against its effective tolerance where a tolerance is available. A value near 1 means the row is close to the acceptance boundary. Semantic/configuration differences are tracked in the same artifact and remain visible in the table.
Numerical disparity relative to tolerance The dashed line is the acceptance boundary. Values can remain non-zero even for eligible rows.
all canonical rows
No selected-win table. Every row is shown below. Speedup is sklearn_ms / flow_ms; values above 1× favor Flow. Strict diagnostic status is kept separate from final eligibility.
Algorithm Dataset Final parity Strict diagnostic Winner score |Δ| sklearn ms Flow ms speedup
larger data
The canonical rows all fit in 1797 samples. A separate matrix runs five estimators at 100, 1000 and 10000 rows against 8 and 32 features. One run of it does not settle a row: at 100 and 1000 samples a fit finishes in well under a millisecond, and the CI runner moves that by more than the difference being measured. Lasso at 1000 rows and 32 features was recorded at 3.83x and at 0.92x on code that differs in nothing touching Lasso. The table is therefore the spread across consecutive runs rather than one run's number, sorted with the narrowest margins first.
Algorithm samples features runs won median range
This matrix is reported without gating the build. What does gate is benchmarks/scaled_flow_baseline.json, a Flow-against-itself comparison refreshed from a CI artifact.
the rest of the library
The library is 203 estimators. The canonical rows above race twelve estimators under a parity contract. lib/scikit exports 203, and a statement about Flow against scikit-learn covers six percent of it while the rest go unmeasured. A separate registry maps every exported fit to its scikit-learn counterpart and times both sides on the same data.
raced ... Ranked against a named scikit-learn class.
Flow faster ... Of the rows that produce a ratio.
older entry point ... A second function beside each of these does the whole job, and that one is the row that races the class.
no counterpart ... Flow implements it and scikit-learn has no equivalent.
Read this for what it is. These rows carry no parity contract, no declared tolerances and no disparity report. Each library runs its own defaults over the same data, which answers whether an implementation is in the same performance league and says nothing about whether it computes the same thing. The canonical rows above are where numerical equivalence is established. These timings come from the CI runner, where a job times both sides and fails the build if any ranked row is slower than scikit-learn. The widest ratios say more about the defaults than about the code. Each side runs its own. A row can differ by three orders of magnitude simply because one library does far more work at its defaults. That is a difference in the job, and the ratio does not measure how fast either one is at the same job. Iris also carries no missing values, which leaves the imputers nothing to impute on the Flow side while scikit-learn still runs its full round robin. The narrow rows at the top of the table are the informative ones.
Flow estimator scikit-learn Flow ms scikit-learn ms speedup
methodology
Correctness, disparity and timing are separate dimensions. The benchmark consumes the same persisted train/test indices in Python and Flow. Python uses high-resolution adaptive timing and the canonical runner aggregates repeated process measurements with medians and IQR. Flow timings are emitted in milliseconds and aggregated by the same runner.
Supervised rows compare predictive metrics under declared tolerances. PCA additionally checks explained variance, singular values, reconstruction error and sign-aligned components. KMeans uses permutation-invariant clustering quality and inertia. The persistent disparity artifact preserves raw numerical gaps and known semantic/configuration differences even after the estimator-specific eligibility contract succeeds.
historical deployment evidence
Footprint and startup remain separate experiments. The repository also contains a historical deployment comparison recording a roughly 1.4 MB Flow native executable and a roughly 65× cold-start advantage (33 ms versus 2160 ms). Those figures come from a different deployment experiment and are intentionally not mixed into the canonical estimator timing denominator.
trajectory
Flow versus Python, across freezes. Each row's speedup at the previous freeze and at the latest one. A speedup can move because Flow changed or because scikit-learn's side changed on that runner. When a row moves by more than 10%, the last column names which side's own time moved more, from the committed absolute timings.