Skip to content

Commit

Permalink
ci: add bench workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
willcl-ark committed Apr 8, 2024
1 parent 5a5ab1d commit 8a65619
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
on:
push:
branches: master

jobs:
benchmark_base_branch:
name: Continuous Benchmarking with Bencher
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: bencherdev/bencher@main
- name: install dependencies
run: |
sudo apt-get update
sudo apt-get install clang-15 ccache build-essential libtool autotools-dev automake pkg-config bsdmainutils python3-zmq libevent-dev libboost-dev libsqlite3-dev libdb++-dev systemtap-sdt-dev libminiupnpc-dev libnatpmp-dev libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools qtwayland5 libqrencode-dev -y
- name: Build bitcoind
run: |
./autogen.sh && CC=clang-15 CXX=clang++-15 ./configure && make clean && make -j $(nproc) -C src bitcoind
- name: Track base branch benchmarks with Bencher
run: |
bencher run \
--project core-test \
--token '${{ secrets.BENCHER_API_TOKEN }}' \
--branch master \
--testbed ubuntu-latest \
--adapter shell_hyperfine \
--err \
"hyperfine --runs 1 --export-json results.json './src/bitcoind --stopatheight 50000'"

0 comments on commit 8a65619

Please sign in to comment.