33#
44# Run performance benchmarks comparing the compiler performance of two different Kani versions.
55name : Kani Compiler Performance Benchmarks
6+ permissions :
7+ contents : read
68on :
79 push :
810 branches :
@@ -24,31 +26,19 @@ jobs:
2426 echo "OLD_REF=${{ github.event.pull_request.base.sha }}" | tee -a "$GITHUB_ENV"
2527 echo "NEW_REF=${{ github.event.pull_request.head.sha }}" | tee -a "$GITHUB_ENV"
2628 - name : Check out Kani (old variant)
27- uses : actions/checkout@v5
29+ uses : actions/checkout@v6
2830 with :
2931 path : ./old
3032 ref : ${{ env.OLD_REF }}
3133 fetch-depth : 2
3234
3335 - name : Check out Kani (new variant)
34- uses : actions/checkout@v5
36+ uses : actions/checkout@v6
3537 with :
3638 path : ./new
3739 ref : ${{ env.NEW_REF }}
3840 fetch-depth : 1
3941
40- - name : Cache Kani build artifacts
41- uses : Swatinem/rust-cache@v2
42- with :
43- cache-on-failure : true
44- shared-key : " kani-rust-cache-bench"
45- workspaces : |
46- new
47- new/tools/compile-timer
48- old
49- old/tools/compile-timer
50- cache-directories : " ~/.rustup"
51-
5242 - name : Set up Kani Dependencies (old variant)
5343 uses : ./old/.github/actions/setup
5444 with :
@@ -100,31 +90,19 @@ jobs:
10090 echo "NEW_REF=${{ github.event.pull_request.head.sha }}" | tee -a "$GITHUB_ENV"
10191
10292 - name : Check out Kani (old variant)
103- uses : actions/checkout@v5
93+ uses : actions/checkout@v6
10494 with :
10595 path : ./old
10696 ref : ${{ env.OLD_REF }}
10797 fetch-depth : 2
10898
10999 - name : Check out Kani (new variant)
110- uses : actions/checkout@v5
100+ uses : actions/checkout@v6
111101 with :
112102 path : ./new
113103 ref : ${{ env.NEW_REF }}
114104 fetch-depth : 1
115105
116- - name : Cache Kani build artifacts
117- uses : Swatinem/rust-cache@v2
118- with :
119- cache-on-failure : true
120- shared-key : " kani-rust-cache-bench"
121- workspaces : |
122- new
123- new/tools/compile-timer
124- old
125- old/tools/compile-timer
126- cache-directories : " ~/.rustup"
127-
128106 - name : Set up Kani Dependencies (old variant)
129107 uses : ./old/.github/actions/setup
130108 with :
@@ -161,4 +139,4 @@ jobs:
161139 export PATH="${{ github.workspace }}/new/scripts:$PATH"
162140 cd new/tests/perf/s2n-quic && ../../../target/release/compile-timer --out-path compile-times-new.json --also-visit quic/s2n-quic-core --also-visit quic/s2n-quic-platform --also-visit common/s2n-codec --skip-current
163141 - name : Run analysis between the two
164- run : ./new/target/release/compile-analyzer --path-pre old/tests/perf/s2n-quic/compile-times-old.json --path-post new/tests/perf/s2n-quic/compile-times-new.json --only-markdown --suite-name long >> "$GITHUB_STEP_SUMMARY"
142+ run : ./new/target/release/compile-analyzer --path-pre old/tests/perf/s2n-quic/compile-times-old.json --path-post new/tests/perf/s2n-quic/compile-times-new.json --only-markdown --suite-name long >> "$GITHUB_STEP_SUMMARY"
0 commit comments