Skip to content

Commit 41c9c89

Browse files
authored
Make the benchmark results more readable (#142)
1 parent 60c2d64 commit 41c9c89

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/benchmark.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ jobs:
4040
- name: Install Python dependencies
4141
run: |
4242
python -m pip install -U pip
43-
- name: Run tests
43+
python -m pip install asv virtualenv
44+
45+
- name: Run benchmarks
4446
run: |
4547
set -eu
4648
run_asv () {
@@ -53,7 +55,6 @@ jobs:
5355
asv run --strict --verbose --show-stderr -E existing --set-commit-hash $(git rev-parse HEAD)
5456
}
5557
56-
pip install asv virtualenv
5758
asv machine --yes
5859
git fetch origin main:main
5960
git update-ref refs/bm/pr HEAD
@@ -62,15 +63,17 @@ jobs:
6263
git update-ref refs/bm/merge-target $(git log -n 1 --pretty=format:"%H" main --)
6364
git checkout --force refs/bm/pr --
6465
# Install the library
65-
LIBBSON_INSTALL_DIR=$(pwd)/libbson python -m pip install -vvv -e ".[test]"
66+
LIBBSON_INSTALL_DIR=$(pwd)/libbson python -m pip install -e ".[test]"
6667
run_asv
6768
6869
6970
git checkout --force refs/bm/merge-target --
7071
# Install the library
71-
LIBBSON_INSTALL_DIR=$(pwd)/libbson python -m pip install -vvv -e ".[test]"
72+
LIBBSON_INSTALL_DIR=$(pwd)/libbson python -m pip install -e ".[test]"
7273
run_asv
7374
75+
- name: Compare benchmarks
76+
run: |
7477
asv compare refs/bm/merge-target refs/bm/pr --
7578
- name: Fail if any benchmarks have slowed down too much
7679
run: |

0 commit comments

Comments
 (0)