Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/flow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/remaining-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
44 changes: 22 additions & 22 deletions benchmarks/ARCHITECTURE_PERFORMANCE_MAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -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% |
2 changes: 1 addition & 1 deletion benchmarks/NATIVE_HOTSPOT_AUDIT.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
58 changes: 29 additions & 29 deletions benchmarks/OPTIMIZATION_ROADMAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
Loading
Loading