Skip to content

Commit e0904b1

Browse files
committed
add large and very large benchmark
1 parent 5f86a03 commit e0904b1

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/bench.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,20 @@ jobs:
7979
8080
- name: Run large benchmarks
8181
if: github.event.issue.pull_request && contains(github.event.comment.body, '!large')
82+
run:
83+
echo "## Large payload run (1MB)" >> benchmark.md
84+
hyperfine --show-output --warmup 1 --export-markdown bench-mysql-l.md -n 'mysql-main' './bench-main -resultsize 1000000 -runs 2 -backend mysql -timeout 240s' -n 'mysql-pr' './bench-pr -resultsize 1000000 -runs 2 -backend mysql -timeout 240s'
85+
hyperfine --show-output --warmup 1 --export-markdown bench-sqlite-l.md -n 'sqlite-main' './bench-main -resultsize 1000000 -runs 2 -backend sqlite -timeout 240s' -n 'sqlite-pr' './bench-pr -resultsize 1000000 -runs 2 -backend sqlite -timeout 240s'
86+
hyperfine --show-output --warmup 1 --export-markdown bench-redis-l.md -n 'redis-main' './bench-main -resultsize 1000000 -runs 2 -backend redis -timeout 240s' -n 'redis-pr' './bench-pr -resultsize 1000000 -runs 2 -backend redis -timeout 240s'
87+
cat bench-mysql-l.md >> benchmark.md
88+
echo $'\n' >> benchmark.md
89+
cat bench-sqlite-l.md >> benchmark.md
90+
echo $'\n' >> benchmark.md
91+
cat bench-redis-l.md >> benchmark.md
92+
93+
94+
- name: Run very large benchmarks
95+
if: github.event.issue.pull_request && contains(github.event.comment.body, '!verylarge')
8296
run:
8397
echo "## Large payload run (5MB)" >> benchmark.md
8498
hyperfine --show-output --warmup 1 --export-markdown bench-mysql-l.md -n 'mysql-main' './bench-main -resultsize 5000000 -runs 2 -backend mysql -timeout 240s' -n 'mysql-pr' './bench-pr -resultsize 5000000 -runs 2 -backend mysql -timeout 240s'

0 commit comments

Comments
 (0)