Skip to content

Commit 3c6bb52

Browse files
committed
Try to make fgfa work with Github CI #5
1 parent a895bbd commit 3c6bb52

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

.github/workflows/bencher.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
--err \
2828
--adapter json \
2929
--github-actions '${{ secrets.GITHUB_TOKEN }}' \
30-
python bench/filesize_benchmark.py
30+
python bench/filesize_benchmark_web.py mini_bencher del
3131
3232
# Performance (latency) benchmark
3333
- name: Track latency benchmarks with Bencher
@@ -40,4 +40,4 @@ jobs:
4040
--err \
4141
--adapter json \
4242
--github-actions '${{ secrets.GITHUB_TOKEN }}' \
43-
python bench/latency_benchmark.py
43+
python bench/latency_benchmark_web.py mini_bencher -1 del

bench/filesize_benchmark.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
import subprocess
55
import tomllib
66

7-
subprocess.run(["cargo", "build", "--release"], check = True)
8-
97
def benchmark(test_file):
108
subprocess.run(["fgfa", "-I", test_file, "-o", "filesize_benchmark.txt"],
119
check = True)

bench/filesize_benchmark_web.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
import gzip
88
import shutil
99

10+
subprocess.run(["cargo", "build", "--release"], check = True)
11+
1012
with open("bench/graphs.toml", "rb") as f:
1113
toml_graphs = tomllib.load(f)
1214

bench/latency_benchmark.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import json
55
import subprocess
66

7-
subprocess.run(["cargo", "build", "--release"], check = True)
7+
88

99
def benchmark(test_file, num_iter):
1010
total_time = 0.0

bench/latency_benchmark_web.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
import gzip
99
import shutil
1010

11+
subprocess.run(["cargo", "build", "--release"], check = True)
12+
1113
with open("bench/graphs.toml", "rb") as f:
1214
toml_graphs = tomllib.load(f)
1315

0 commit comments

Comments
 (0)