Skip to content

add warm cache benchmark script #120

add warm cache benchmark script

add warm cache benchmark script #120

Workflow file for this run

name: Package Manager Benchmarks
on:
push:
workflow_dispatch:
jobs:
task:
name: 'Benchmark Running Tasks'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Node
uses: actions/setup-node@v2
with:
node-version: '22'
- name: Install & Setup Tools
run: |
bash ./scripts/setup.sh
- name: Run Task Execution Benchmarks
run: |
bash ./scripts/run.sh
- name: Upload Benchmark Results
uses: actions/upload-artifact@v4
with:
name: task-benchmark-results
path: ./results/run.json
next:
name: 'Benchmark Next Project'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Node
uses: actions/setup-node@v2
with:
node-version: '22'
- name: Install & Setup Tools
run: |
bash ./scripts/setup.sh
- name: Run Project Benchmarks
run: |
bash ./scripts/install.sh next
- name: Upload Benchmark Results
uses: actions/upload-artifact@v4
with:
name: next-benchmark-results
path: ./results/next/
astro:
name: 'Benchmark Astro Project'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Node
uses: actions/setup-node@v2
with:
node-version: '22'
- name: Install & Setup Tools
run: |
bash ./scripts/setup.sh
- name: Run Project Benchmarks
run: |
bash ./scripts/install.sh astro
- name: Upload Benchmark Results
uses: actions/upload-artifact@v4
with:
name: astro-benchmark-results
path: ./results/astro/
svelte:
name: 'Benchmark Svelte Project'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Node
uses: actions/setup-node@v2
with:
node-version: '22'
- name: Install & Setup Tools
run: |
bash ./scripts/setup.sh
- name: Run Project Benchmarks
run: |
bash ./scripts/install.sh svelte
- name: Upload Benchmark Results
uses: actions/upload-artifact@v4
with:
name: svelete-benchmark-results
path: ./results/svelte/
vue:
name: 'Benchmark Vue Project'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Node
uses: actions/setup-node@v2
with:
node-version: '22'
- name: Install & Setup Tools
run: |
bash ./scripts/setup.sh
- name: Run Project Benchmarks (Vue)
run: |
bash ./scripts/install.sh vue
- name: Upload Benchmark Results
uses: actions/upload-artifact@v4
with:
name: vue-benchmark-results
path: ./results/vue/
next-warm:
name: 'Benchmark Next Project (warm cache)'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Node
uses: actions/setup-node@v2
with:
node-version: '22'
- name: Install & Setup Tools
run: |
bash ./scripts/setup.sh
- name: Run Project Benchmarks
run: |
bash ./scripts/install-warm.sh next
- name: Upload Benchmark Results
uses: actions/upload-artifact@v4
with:
name: next-benchmark-results
path: ./results/next/
astro-warm:
name: 'Benchmark Astro Project (warm cache)'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Node
uses: actions/setup-node@v2
with:
node-version: '22'
- name: Install & Setup Tools
run: |
bash ./scripts/setup.sh
- name: Run Project Benchmarks
run: |
bash ./scripts/install-warm.sh astro
- name: Upload Benchmark Results
uses: actions/upload-artifact@v4
with:
name: astro-benchmark-results
path: ./results/astro/
svelte-warm:
name: 'Benchmark Svelte Project (warm cache)'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Node
uses: actions/setup-node@v2
with:
node-version: '22'
- name: Install & Setup Tools
run: |
bash ./scripts/setup.sh
- name: Run Project Benchmarks
run: |
bash ./scripts/install-warm.sh svelte
- name: Upload Benchmark Results
uses: actions/upload-artifact@v4
with:
name: svelete-benchmark-results
path: ./results/svelte/
vue-warm:
name: 'Benchmark Vue Project (warm cache)'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Node
uses: actions/setup-node@v2
with:
node-version: '22'
- name: Install & Setup Tools
run: |
bash ./scripts/setup.sh
- name: Run Project Benchmarks (Vue)
run: |
bash ./scripts/install-warm.sh vue
- name: Upload Benchmark Results
uses: actions/upload-artifact@v4
with:
name: vue-benchmark-results
path: ./results/vue/
# make a chart with the results
chart:
name: 'Chart the Benchmark Results'
runs-on: ubuntu-latest
needs: [task, next, astro, svelte, vue]
steps:
- uses: actions/download-artifact@v4
with:
path: results
merge-multiple: true
- name: List the results
run: ls -R results