Skip to content

Commit 0f4fac6

Browse files
committed
Try running cron-ci benchmarks with cargo-criterion
1 parent 551ae51 commit 0f4fac6

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

.github/workflows/cron-ci.yaml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
on:
22
schedule:
33
- cron: '0 0 * * 6'
4+
workflow_dispatch:
45

56
jobs:
67
redox:
@@ -125,19 +126,23 @@ jobs:
125126
runs-on: ubuntu-latest
126127
steps:
127128
- uses: actions/checkout@master
129+
- run: cargo install cargo-criterion
128130
- name: collect execution benchmark data
129-
run: cargo bench --bench execution
131+
run: cargo criterion --bench execution
130132
- name: collect microbenchmarks data
131-
run: cargo bench --bench microbenchmarks
133+
run: cargo criterion --bench microbenchmarks
132134
- name: restructure generated files
133135
run: |
134-
cd ./target/criterion
136+
cd ./target/criterion/reports
135137
find -type d -name cpython | xargs rm -rf
136138
find -type d -name rustpython | xargs rm -rf
137-
find -maxdepth 2 -type d -name report | xargs rm -rf
139+
find -mindepth 2 -maxdepth 2 -name violin.svg | xargs rm -rf
138140
find -type f -not -name violin.svg | xargs rm -rf
139-
for file in $(find -type f -name violin.svg); do mv $file $(echo $file | sed -E "s_\./([^/]+)/([^/]+)/report/violin\.svg_./\1/\2.svg_"); done
141+
for file in $(find -type f -name violin.svg); do mv $file $(echo $file | sed -E "s_\./([^/]+)/([^/]+)/violin\.svg_./\1/\2.svg_"); done
140142
find -mindepth 2 -maxdepth 2 -type d | xargs rm -rf
143+
cd ..
144+
mv reports/* .
145+
rmdir reports
141146
- name: upload benchmark data to the website
142147
env:
143148
SSHKEY: ${{ secrets.ACTIONS_TESTS_DATA_DEPLOY_KEY }}

0 commit comments

Comments
 (0)