mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Cleaned up luau benchmarks
Removed duplicate storage of benchmark output files
This commit is contained in:
parent
1af36eb542
commit
435701a2a3
1 changed files with 10 additions and 17 deletions
27
.github/workflows/benchmark.yml
vendored
27
.github/workflows/benchmark.yml
vendored
|
@ -35,7 +35,7 @@ jobs:
|
||||||
- {
|
- {
|
||||||
script: "run-benchmarks",
|
script: "run-benchmarks",
|
||||||
timeout: 12,
|
timeout: 12,
|
||||||
title: "Luau Performance Benchmark",
|
title: "benchmarkluau",
|
||||||
cachegrindTitle: "Performance",
|
cachegrindTitle: "Performance",
|
||||||
cachegrindIterCount: 20, # Extra iterations to ensure we hit the first artificial slowdown.
|
cachegrindIterCount: 20, # Extra iterations to ensure we hit the first artificial slowdown.
|
||||||
}
|
}
|
||||||
|
@ -64,7 +64,7 @@ jobs:
|
||||||
|
|
||||||
#Run benchmark with `python bench/bench.py` and stores the output to a file
|
#Run benchmark with `python bench/bench.py` and stores the output to a file
|
||||||
- name: Run benchmark
|
- name: Run benchmark
|
||||||
run: python bench/bench.py | tee output.txt
|
run: python bench/bench.py | tee ${{ matrix.bench.script }}-output.txt
|
||||||
|
|
||||||
# Download previous benchmark result from cache (if exists)
|
# Download previous benchmark result from cache (if exists)
|
||||||
- name: Download previous benchmark data
|
- name: Download previous benchmark data
|
||||||
|
@ -77,10 +77,16 @@ jobs:
|
||||||
- name: Store ${{ matrix.bench.title }} result
|
- name: Store ${{ matrix.bench.title }} result
|
||||||
uses: Roblox/rhysd-github-action-benchmark@v-luau
|
uses: Roblox/rhysd-github-action-benchmark@v-luau
|
||||||
with:
|
with:
|
||||||
|
name: ${{ matrix.bench.title }}
|
||||||
tool: "benchmarkluau"
|
tool: "benchmarkluau"
|
||||||
output-file-path: output.txt
|
output-file-path: ${{ matrix.bench.script }}-output.txt
|
||||||
external-data-json-path: ./cache/benchmark-data.json
|
external-data-json-path: ./dev/bench/data.json
|
||||||
|
alert-threshold: 115%
|
||||||
|
fail-threshold: 130%
|
||||||
fail-on-alert: true
|
fail-on-alert: true
|
||||||
|
comment-on-alert: true
|
||||||
|
comment-always: true
|
||||||
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
# Checkout gh-pages
|
# Checkout gh-pages
|
||||||
- name: Checkout gh-pages
|
- name: Checkout gh-pages
|
||||||
|
@ -91,16 +97,3 @@ jobs:
|
||||||
git fetch --no-tags --depth=1 origin gh-pages
|
git fetch --no-tags --depth=1 origin gh-pages
|
||||||
git checkout --track origin/gh-pages
|
git checkout --track origin/gh-pages
|
||||||
git pull
|
git pull
|
||||||
- name: Store ${{ matrix.bench.title }} result
|
|
||||||
uses: Roblox/rhysd-github-action-benchmark@v-luau
|
|
||||||
with:
|
|
||||||
name: ${{ matrix.bench.title }}
|
|
||||||
tool: "roblox"
|
|
||||||
output-file-path: ${{ matrix.bench.script }}-output.txt
|
|
||||||
external-data-json-path: ./dev/bench/data.json
|
|
||||||
alert-threshold: 115%
|
|
||||||
fail-threshold: 130%
|
|
||||||
fail-on-alert: true
|
|
||||||
comment-on-alert: true
|
|
||||||
comment-always: true
|
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue