Skip to content

Commit 934b66a

Browse files
feat: Enable historical benchmark tracking with GitHub Pages
- Created gh-pages branch for storing benchmark history - Re-enabled benchmark-action with auto-push to gh-pages - Benchmark results will be stored and visualized at: https://spandigital.github.io/cel2sql/dev/bench/ Features: - Historical trend tracking across commits - Automatic PR comments on performance changes >150% - Visual charts showing performance over time - Permanent storage of benchmark results Updated documentation to reflect new capabilities. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 974a77f commit 934b66a

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,16 @@ jobs:
6565
run: go mod download
6666

6767
- name: Run benchmarks
68-
run: go test -bench=. -benchmem -benchtime=1s -run=^$$ ./...
68+
run: go test -bench=. -benchmem -benchtime=1s -run=^$$ ./... | tee benchmark-results.txt
69+
70+
- name: Store benchmark result
71+
uses: benchmark-action/github-action-benchmark@v1
72+
with:
73+
tool: 'go'
74+
output-file-path: benchmark-results.txt
75+
github-token: ${{ secrets.GITHUB_TOKEN }}
76+
auto-push: true
77+
comment-on-alert: true
78+
alert-threshold: '150%'
79+
fail-on-alert: false
80+
summary-always: true

CLAUDE.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,9 +266,10 @@ BenchmarkConvertOperators/logical_and-12 943438 1255 ns/op 2154 B/op
266266

267267
Benchmarks run automatically on every PR and push to main:
268268
- Runs on Go 1.24.x
269-
- Validates that all benchmarks complete successfully
270-
- Detects performance regressions
271-
- Ensures code changes don't break benchmark tests
269+
- Stores benchmark results in gh-pages branch for historical tracking
270+
- Comments on PRs when performance changes >150%
271+
- Generates visual charts at https://spandigital.github.io/cel2sql/dev/bench/
272+
- Provides summary of all benchmark results
272273

273274
#### Comparing Benchmark Results
274275

0 commit comments

Comments
 (0)