diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2022-02-22 22:03:08 -0500 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2022-02-27 23:44:19 -0500 |
commit | 4c6eab99a7fe676385afc91165f4c132984f2c97 (patch) | |
tree | 365d03f7ba552c5e8f523b2f1d44e0e76cb35560 /ci | |
parent | 93037bab1c6758c7939d16ea59b0e434e5ddea86 (diff) | |
download | libgit2-4c6eab99a7fe676385afc91165f4c132984f2c97.tar.gz |
ci: run benchmark tests nightly
Diffstat (limited to 'ci')
-rwxr-xr-x | ci/setup-osx-benchmark.sh | 6 | ||||
-rwxr-xr-x | ci/setup-ubuntu-benchmark.sh | 20 | ||||
-rwxr-xr-x | ci/setup-win32-benchmark.sh | 9 |
3 files changed, 35 insertions, 0 deletions
diff --git a/ci/setup-osx-benchmark.sh b/ci/setup-osx-benchmark.sh new file mode 100755 index 000000000..80d87682b --- /dev/null +++ b/ci/setup-osx-benchmark.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +set -ex + +brew update +brew install hyperfine diff --git a/ci/setup-ubuntu-benchmark.sh b/ci/setup-ubuntu-benchmark.sh new file mode 100755 index 000000000..561a18fd9 --- /dev/null +++ b/ci/setup-ubuntu-benchmark.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +set -ex + +sudo apt-get update +sudo apt-get install -y --no-install-recommends \ + cargo \ + cmake \ + gcc \ + git \ + krb5-user \ + libkrb5-dev \ + libssl-dev \ + libz-dev \ + make \ + ninja-build \ + pkgconf + +wget https://github.com/sharkdp/hyperfine/releases/download/v1.12.0/hyperfine_1.12.0_amd64.deb +sudo dpkg -i hyperfine_1.12.0_amd64.deb diff --git a/ci/setup-win32-benchmark.sh b/ci/setup-win32-benchmark.sh new file mode 100755 index 000000000..0eac2f666 --- /dev/null +++ b/ci/setup-win32-benchmark.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +set -ex + +choco install hyperfine zip + +CHOCO_PATH=$(mktemp -d) +curl -L https://github.com/ethomson/PurgeStandbyList/releases/download/v1.0/purgestandbylist.1.0.0.nupkg -o "${CHOCO_PATH}/purgestandbylist.1.0.0.nupkg" +choco install purgestandbylist -s $(cygpath -w "${CHOCO_PATH}") |