Skip to content

Try again

Try again #6

Workflow file for this run

name: Report qe benchmarks

Check failure on line 1 in .github/workflows/qe-perf.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/qe-perf.yml

Invalid workflow file

No steps defined in `steps` and no workflow called in `uses` for the following jobs: run-benchmarks
on:
pull_request:
paths-ignore:
- ".github/**"
- "!.github/workflows/qe-perf.yml"
- ".buildkite/**"
- "*.md"
- "LICENSE"
- "CODEOWNERS"
- "renovate.json"
jobs:
run-benchmarks:
name: Run benchmarks
runs-on: ubuntu-latest
outputs:
steps:
- name: Run benchmarks
id: bench
run: |
echo <<EOF
cpu: Apple M1 Pro
runtime: node v18.17.0 (arm64-darwin)
benchmark time (avg) (min … max) p75 p99 p995
-------------------------------------------------------------- -----------------------------
• movies.findMany() (all - 25000)
-------------------------------------------------------------- -----------------------------
Web Assembly: Baseline 129.59 µs/iter (115.33 µs … 881.38 µs) 129.5 µs 171.71 µs 302.33 µs
Web Assembly: Latest 138.29 µs/iter (121.58 µs … 2.29 ms) 137.71 µs 180.67 µs 199.83 µs
Web Assembly: Current 1.05 ms/iter (794.04 µs … 1.93 ms) 1.21 ms 1.62 ms 1.8 ms
Node API: Current 2.34 ms/iter (1.98 ms … 2.94 ms) 2.42 ms 2.83 ms 2.89 ms
summary for movies.findMany() (all - 25000)
Web Assembly: Current
8.1x slower than Web Assembly: Baseline
7.59x slower than Web Assembly: Latest
2.23x faster than Node API: Current
EOF
report:
name: Report benchmarks
runs-on: ubuntu-latest
needs:
- run-benchmarks
steps:
- name: Find past report comment
uses: peter-evans/find-comment@v2
id: findReportComment
with:
issue-number: ${{ github.event.pull_request.number }}
body-includes: "<!-- qe-benchmarks -->"
- name: Create or update report
uses: peter-evans/create-or-update-comment@v3
with:
comment-id: ${{ steps.findReportComment.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }}
body: |
<!-- qe-benchmarks -->
### Query engine benchmark results
```sh
${{ needs.run-benchmarks.steps.bench.outputs.stdout }}
```
edit-mode: replace