-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Sahil Yeole <[email protected]>
- Loading branch information
1 parent
3aaf778
commit f2c11e9
Showing
2 changed files
with
11 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,9 @@ jobs: | |
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || github.sha }} | ||
- name: Set IS_PUSH environment variable | ||
if: github.ref == 'refs/heads/main' | ||
run: echo "IS_PUSH=true" >> $GITHUB_ENV | ||
|
||
- name: Build devcontainer | ||
uses: devcontainers/[email protected] | ||
|
@@ -35,7 +38,10 @@ jobs: | |
uses: grafana/setup-k6-action@v1 | ||
|
||
- name: Run benchmarks | ||
env: | ||
IS_PUSH: ${{ env.IS_PUSH }} | ||
run: | | ||
echo "IS_PUSH is set to $IS_PUSH" | ||
bash ./setup.sh | ||
bash ./run_benchmarks.sh | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
test_name=$1 | ||
benchmark=$2 | ||
|
||
# k6 run k6/bench.js --quiet --out cloud --env TEST_NAME=$test_name --env BENCHMARK=$benchmark | ||
k6 run k6/bench.js --quiet --env TEST_NAME=$test_name --env BENCHMARK=$benchmark | ||
if [ "$IS_PUSH" = "true" ]; then | ||
k6 run k6/bench.js --quiet --out cloud --env TEST_NAME=$test_name --env BENCHMARK=$benchmark | ||
else | ||
k6 run k6/bench.js --quiet --env TEST_NAME=$test_name --env BENCHMARK=$benchmark | ||
fi |
f2c11e9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Benchmark 1 results
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
Benchmark 2 results
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan
-nan