This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

👷 Add perf testing CI job

+44 -2
+41
.github/workflows/check.yml
··· 2 2 pull_request: {} 3 3 4 4 jobs: 5 + perf-check: 6 + runs-on: ubuntu-latest 7 + steps: 8 + - uses: actions/checkout@v2 9 + - name: install system deps for ffmpeg-sys-next 10 + run: | 11 + sudo apt update 12 + sudo apt install -y \ 13 + pkg-config \ 14 + clang \ 15 + libavcodec-dev \ 16 + libavdevice-dev \ 17 + libavfilter-dev \ 18 + libavformat-dev \ 19 + libswresample-dev \ 20 + libavutil-dev \ 21 + libpostproc-dev \ 22 + libswscale-dev 23 + - uses: actions-rs/toolchain@v1 24 + with: { toolchain: stable } 25 + - uses: extractions/setup-just@v1 26 + - run: just timings 27 + - id: results_csv 28 + uses: juliangruber/read-file-action@v1 29 + with: { path: ./results.csv } 30 + - id: results_table 31 + uses: petems/csv-to-md-table-action@master 32 + with: { csvinput: "${{ steps.results_csv.outputs.content }}" } 33 + - name: Comment on PR 34 + if: github.event_name == 'pull_request' 35 + # create or update a comment on the PR with the results 36 + uses: edumserrano/find-create-or-update-comment@v1 37 + with: 38 + issue-number: ${{ github.event.pull_request.number }} 39 + edit-mode: replace 40 + body-includes: <!-- PERF TIMING RESULTS COMMENT --> 41 + body: | 42 + <!-- PERF TIMING RESULTS COMMENT --> 43 + ### Performance Timings 44 + 45 + ${{ steps.results_table.outputs.markdown-table }} 5 46 check: 6 47 runs-on: ubuntu-latest 7 48 steps:
+1
.gitignore
··· 28 28 examples/specimen/shapeshed.svg 29 29 framedump.png 30 30 framedump.svg 31 + results.csv
+1 -1
Justfile
··· 40 40 readme: 41 41 cd examples/gallery; ./fill.rb 42 42 43 - analyze_times: 43 + timings: 44 44 just 45 45 rm timings.log 46 46 python script/debug-performance.py
+1 -1
script/debug-performance.py
··· 22 22 23 23 timings = [ 24 24 line.split(" took ") 25 - for line in Path("timings.log").read_text().splitlines() 25 + for line in Path("timings.log").read_text(encoding="utf-8").splitlines() 26 26 if " took " in line 27 27 ] 28 28