v / .github / workflows / benchmark_footprint_json_encode.yml
31 lines · 25 sloc · 826 bytes · 93162641ddda0809e8e8c2da69af8b13982567ee
Raw
1name: json encoder benchmark CI
2
3on:
4 push:
5 branches:
6 - master
7 paths:
8 - 'vlib/x/json2/**' # Trigger on changes in this folder
9 - '!vlib/x/json2/strict/**' # Ignore
10 - '!vlib/x/json2/tests/**' # Ignore
11
12jobs:
13 json-encode-benchmark:
14 runs-on: ubuntu-latest
15 timeout-minutes: 5
16
17 steps:
18 - name: Checkout repository
19 uses: actions/checkout@v6
20
21 - name: Build V
22 run: make -j4 && ./v symlink
23
24 - name: Run V benchmark and save output
25 run: (echo '```sh'; v -prod crun vlib/v/tests/bench/bench_json_vs_json2.v; echo '```') > vlib/v/tests/bench/bench_json_vs_json2_out.md
26
27 - name: Upload result file
28 uses: actions/upload-artifact@v7
29 with:
30 name: program-output
31 path: vlib/v/tests/bench/bench_json_vs_json2_out.md
32