mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Merge branch 'feat/add-cachegrind' into feat/add-static-file-luau-analyze
This commit is contained in:
commit
8602aee616
2 changed files with 83 additions and 41 deletions
64
.github/workflows/benchmark-cachegrind.yml
vendored
64
.github/workflows/benchmark-cachegrind.yml
vendored
|
@ -9,6 +9,16 @@ on:
|
||||||
- "*.md"
|
- "*.md"
|
||||||
- "prototyping/**"
|
- "prototyping/**"
|
||||||
|
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
paths-ignore:
|
||||||
|
- "docs/**"
|
||||||
|
- "papers/**"
|
||||||
|
- "rfcs/**"
|
||||||
|
- "*.md"
|
||||||
|
- "prototyping/**"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
benchmarks-run:
|
benchmarks-run:
|
||||||
name: Run ${{ matrix.bench.title }}
|
name: Run ${{ matrix.bench.title }}
|
||||||
|
@ -26,28 +36,26 @@ jobs:
|
||||||
cachegrindTitle: "Performance",
|
cachegrindTitle: "Performance",
|
||||||
cachegrindIterCount: 20,
|
cachegrindIterCount: 20,
|
||||||
}
|
}
|
||||||
|
benchResultsRepo:
|
||||||
|
- { name: "luau-lang/benchmark-data", branch: "main" }
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: "./.github/workflows/setup-luau"
|
- name: Checkout Luau
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Build Luau
|
||||||
|
run: make config=release luau luau-analyze
|
||||||
|
|
||||||
|
- uses: actions/setup-python@v3
|
||||||
with:
|
with:
|
||||||
runsOn: ${{ matrix.os }}
|
python-version: "3.9"
|
||||||
# - uses: actions/checkout@v3
|
architecture: "x64"
|
||||||
# with:
|
|
||||||
# token: "${{ secrets.BENCH_GITHUB_TOKEN }}"
|
|
||||||
|
|
||||||
# - name: Build Luau
|
- name: Install python dependencies
|
||||||
# run: make config=release luau luau-analyze
|
run: |
|
||||||
|
python -m pip install requests
|
||||||
# - uses: actions/setup-python@v3
|
python -m pip install --user numpy scipy matplotlib ipython jupyter pandas sympy nose
|
||||||
# with:
|
|
||||||
# python-version: "3.9"
|
|
||||||
# architecture: "x64"
|
|
||||||
|
|
||||||
# - name: Install python dependencies
|
|
||||||
# run: |
|
|
||||||
# python -m pip install requests
|
|
||||||
# python -m pip install --user numpy scipy matplotlib ipython jupyter pandas sympy nose
|
|
||||||
|
|
||||||
- name: Install valgrind
|
- name: Install valgrind
|
||||||
run: |
|
run: |
|
||||||
|
@ -59,12 +67,12 @@ jobs:
|
||||||
- name: Run ${{ matrix.bench.title }} (Warm Cachegrind)
|
- name: Run ${{ matrix.bench.title }} (Warm Cachegrind)
|
||||||
run: sudo bash ./scripts/run-with-cachegrind.sh python ./bench/bench.py "${{ matrix.bench.cachegrindTitle }}" ${{ matrix.bench.cachegrindIterCount }} | tee -a ${{ matrix.bench.script }}-output.txt
|
run: sudo bash ./scripts/run-with-cachegrind.sh python ./bench/bench.py "${{ matrix.bench.cachegrindTitle }}" ${{ matrix.bench.cachegrindIterCount }} | tee -a ${{ matrix.bench.script }}-output.txt
|
||||||
|
|
||||||
- name: Switch to & checkout benchmark results (gh-pages) repo
|
- name: Checkout Benchmark Results repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
repository: AllanJeremy/luau-benchmark-results
|
repository: ${{ matrix.benchResultsRepo.name }}
|
||||||
ref: "main"
|
ref: ${{ matrix.benchResultsRepo.branch }}
|
||||||
token: "${{ secrets.BENCH_GITHUB_TOKEN }}"
|
token: ${{ secrets.BENCH_GITHUB_TOKEN }}
|
||||||
path: "./gh-pages"
|
path: "./gh-pages"
|
||||||
|
|
||||||
- name: Store ${{ matrix.bench.title }} result
|
- name: Store ${{ matrix.bench.title }} result
|
||||||
|
@ -79,4 +87,16 @@ jobs:
|
||||||
fail-on-alert: true
|
fail-on-alert: true
|
||||||
comment-on-alert: true
|
comment-on-alert: true
|
||||||
comment-always: true
|
comment-always: true
|
||||||
github-token: ${{ secrets.BENCH_GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Push benchmark results
|
||||||
|
if: github.event_name == 'push'
|
||||||
|
run: |
|
||||||
|
echo "Pushing benchmark results..."
|
||||||
|
cd gh-pages
|
||||||
|
git config user.name github-actions
|
||||||
|
git config user.email github@users.noreply.github.com
|
||||||
|
git add ./dev/bench/data.json
|
||||||
|
git commit -m "Add benchmarks results for ${{ github.sha }}"
|
||||||
|
git push
|
||||||
|
cd ..
|
||||||
|
|
60
.github/workflows/benchmark.yml
vendored
60
.github/workflows/benchmark.yml
vendored
|
@ -8,6 +8,15 @@ on:
|
||||||
- "rfcs/**"
|
- "rfcs/**"
|
||||||
- "*.md"
|
- "*.md"
|
||||||
- "prototyping/**"
|
- "prototyping/**"
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
paths-ignore:
|
||||||
|
- "docs/**"
|
||||||
|
- "papers/**"
|
||||||
|
- "rfcs/**"
|
||||||
|
- "*.md"
|
||||||
|
- "prototyping/**"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
benchmarks-run:
|
benchmarks-run:
|
||||||
|
@ -26,36 +35,37 @@ jobs:
|
||||||
cachegrindTitle: "Performance",
|
cachegrindTitle: "Performance",
|
||||||
cachegrindIterCount: 20,
|
cachegrindIterCount: 20,
|
||||||
}
|
}
|
||||||
|
benchResultsRepo:
|
||||||
|
- { name: "luau-lang/benchmark-data", branch: "main" }
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: "./.github/workflows/setup-luau"
|
- name: Checkout Luau repository
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Build Luau
|
||||||
|
run: make config=release luau luau-analyze
|
||||||
|
|
||||||
|
- uses: actions/setup-python@v3
|
||||||
with:
|
with:
|
||||||
runsOn: ${{ matrix.os }}
|
python-version: "3.9"
|
||||||
# - uses: actions/checkout@v3
|
architecture: "x64"
|
||||||
|
|
||||||
# - name: Build Luau
|
- name: Install python dependencies
|
||||||
# run: make config=release luau luau-analyze
|
run: |
|
||||||
|
python -m pip install requests
|
||||||
# - uses: actions/setup-python@v3
|
python -m pip install --user numpy scipy matplotlib ipython jupyter pandas sympy nose
|
||||||
# with:
|
|
||||||
# python-version: "3.9"
|
|
||||||
# architecture: "x64"
|
|
||||||
|
|
||||||
# - name: Install python dependencies
|
|
||||||
# run: |
|
|
||||||
# python -m pip install requests
|
|
||||||
# python -m pip install --user numpy scipy matplotlib ipython jupyter pandas sympy nose
|
|
||||||
|
|
||||||
- name: Run benchmark
|
- name: Run benchmark
|
||||||
run: |
|
run: |
|
||||||
python bench/bench.py | tee ${{ matrix.bench.script }}-output.txt
|
python bench/bench.py | tee ${{ matrix.bench.script }}-output.txt
|
||||||
|
|
||||||
- name: Switch to & checkout benchmark results (gh-pages) repo
|
- name: Checkout Benchmark Results repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
repository: AllanJeremy/luau-benchmark-results
|
repository: ${{ matrix.benchResultsRepo.name }}
|
||||||
ref: "main"
|
ref: ${{ matrix.benchResultsRepo.branch }}
|
||||||
|
token: ${{ secrets.BENCH_GITHUB_TOKEN }}
|
||||||
path: "./gh-pages"
|
path: "./gh-pages"
|
||||||
|
|
||||||
- name: Store ${{ matrix.bench.title }} result
|
- name: Store ${{ matrix.bench.title }} result
|
||||||
|
@ -70,4 +80,16 @@ jobs:
|
||||||
fail-on-alert: true
|
fail-on-alert: true
|
||||||
comment-on-alert: true
|
comment-on-alert: true
|
||||||
comment-always: true
|
comment-always: true
|
||||||
github-token: ${{ secrets.BENCH_GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Push benchmark results
|
||||||
|
if: github.event_name == 'push'
|
||||||
|
run: |
|
||||||
|
echo "Pushing benchmark results..."
|
||||||
|
cd gh-pages
|
||||||
|
git config user.name github-actions
|
||||||
|
git config user.email github@users.noreply.github.com
|
||||||
|
git add ./dev/bench/data.json
|
||||||
|
git commit -m "Add benchmarks results for ${{ github.sha }}"
|
||||||
|
git push
|
||||||
|
cd ..
|
||||||
|
|
Loading…
Add table
Reference in a new issue