Skip to content

Commit dc8d362

Browse files
Merge branch 'krzkaczor-feature/ci-benchmarks'
2 parents 8e7fe10 + ee89e12 commit dc8d362

9 files changed

Lines changed: 590 additions & 40 deletions

File tree

.circleci/config.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,22 @@ jobs:
121121
- run:
122122
name: Integration tests
123123
command: npm run integration-test
124+
125+
codechecks_benchmarks:
126+
working_directory: ~/nest
127+
docker:
128+
- image: circleci/node:12
129+
steps:
130+
- checkout
131+
- *restore-cache
132+
- *install-deps
133+
- *build-packages
134+
- run:
135+
name: Install native wrk
136+
command: .circleci/install-wrk.sh
137+
- run:
138+
name: Run codechecks with benchmarks
139+
command: yarn codechecks:benchmarks
124140

125141
samples:
126142
working_directory: ~/nest
@@ -157,4 +173,6 @@ workflows:
157173
- samples:
158174
requires:
159175
- build
160-
176+
- codechecks_benchmarks:
177+
requires:
178+
- build

.circleci/install-wrk.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env bash
2+
set -e
3+
cd "$(dirname "$0")"
4+
5+
# based on https://medium.com/@felipedutratine/intelligent-benchmark-with-wrk-163986c1587f
6+
7+
cd /tmp/
8+
sudo apt-get install build-essential libssl-dev git -y
9+
git clone https://github.com/wg/wrk.git wrk
10+
cd wrk
11+
sudo make
12+
# move the executable to somewhere in your PATH, ex:
13+
sudo cp wrk /usr/local/bin

benchmarks/run.sh

Lines changed: 0 additions & 14 deletions
This file was deleted.

benchmarks/run_all.sh

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)