Repository navigation
Commit 680772f
authored
ci: run benchmark comparison on pull requests only, and shorten it (#3140)
* ci: run benchmark comparison on pull requests only, and shorten it
The benchmark job checks out github.base_ref as the previous code, but
that is only set on pull_request events. On pushes to master both
checkouts were the same commit, so the job spent about 20 minutes
comparing master with itself (the Sep 30 run compared af07b69 with
af07b69). Run it only for pull requests.
Benchmarks now run with -benchtime=100ms instead of the default 1s. Echo
has 51 benchmarks run 8 times on each side, so the 1s default kept the
job at about 20 minutes regardless of the machine. At 100ms one side
takes about a minute.
Both workflows also get a concurrency group, so a new push to a pull
request cancels its superseded runs. Runs on master always finish.
Claude-Session: https://claude.ai/code/session_01QKDYQr53zNKkR7nif2CAAq
* ci: describe the benchmark comparison as advisory
Claude-Session: https://claude.ai/code/session_01QKDYQr53zNKkR7nif2CAAq1 parent af07b69 commit 680772f
2 files changed
Lines changed: 17 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
15 | 20 | | |
16 | 21 | | |
17 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
15 | 20 | | |
16 | 21 | | |
17 | 22 | | |
| |||
56 | 61 | | |
57 | 62 | | |
58 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
59 | 67 | | |
60 | 68 | | |
61 | 69 | | |
| |||
79 | 87 | | |
80 | 88 | | |
81 | 89 | | |
| 90 | + | |
| 91 | + | |
82 | 92 | | |
83 | 93 | | |
84 | 94 | | |
85 | | - | |
| 95 | + | |
86 | 96 | | |
87 | 97 | | |
88 | 98 | | |
89 | 99 | | |
90 | | - | |
| 100 | + | |
91 | 101 | | |
92 | 102 | | |
93 | 103 | | |
| |||
0 commit comments