install native wrk on CI

This commit is contained in:
Krzysztof Kaczor
2019-09-04 22:53:46 -07:00
parent 27b9629bb0
commit 5d0da3e38d
2 changed files with 16 additions and 0 deletions

View File

@@ -131,6 +131,9 @@ jobs:
- *restore-cache
- *install-deps
- *build-packages
- run:
name: Install native wrk
command: .circleci/install-wrk.sh
- run:
name: Run codechecks with benchmarks
command: yarn codechecks:benchmarks

13
.circleci/install-wrk.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/usr/bin/env bash
set -e
cd "$(dirname "$0")"
# based on https://medium.com/@felipedutratine/intelligent-benchmark-with-wrk-163986c1587f
cd /tmp/
sudo apt-get install build-essential libssl-dev git -y
git clone https://github.com/wg/wrk.git wrk
cd wrk
sudo make
# move the executable to somewhere in your PATH, ex:
sudo cp wrk /usr/local/bin