-
Notifications
You must be signed in to change notification settings - Fork 1
61 lines (52 loc) · 1.68 KB
/
run_memory.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Run Memory Benchmarks
on:
workflow_dispatch:
inputs:
test_path:
description: 'Path to test file'
default: 'tests/'
clients:
description: 'Comma-separated list of client names (e.g., nethermind,geth,reth,besu,erigon)'
default: 'nethermind,reth,besu,erigon,geth'
required: true
runs:
description: 'Number of runs for the application'
default: 8
output_dir:
description: 'Output directory for results'
default: 'results/memory'
sizes:
description: 'Comma-separated list of sizes (e.g., 1,10,100,500,1000,1500)'
default: '1,10,100,500,1000,1500'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Install dependencies
run: |
pip install -r requirements.txt
sudo apt-get update && sudo apt-get install -y jq
- name: Run benchmarks
run: |
chmod +x runMemory.sh
./runMemory.sh \
-t "${{ github.event.inputs.test_path }}" \
-c "${{ github.event.inputs.clients }}" \
-r "${{ github.event.inputs.runs }}" \
-o "${{ github.event.inputs.output_dir }}" \
-s "${{ github.event.inputs.sizes }}"
- name: Zip the reports
run: |
cd results/memory/reports
zip -r ../../../reports.zip .
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: reports
path: reports.zip