Skip to content

Commit

Permalink
CI: Wrap benchmark name to reduce horizontal size of the report table (
Browse files Browse the repository at this point in the history
…#494)

* add benchmark name wrapping

* use staging ci-linux image
  • Loading branch information
sergejparity committed Oct 3, 2022
1 parent 6780731 commit 1fbc2d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ default:
- api_failure

.docker-env: &docker-env
image: "paritytech/ci-linux:production"
image: "paritytech/ci-linux:staging"
interruptible: true
tags:
- linux-docker-benches
Expand Down
4 changes: 2 additions & 2 deletions scripts/ci/benchmarks-report.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ pushd ./target/ci/criterion

# Format benchmarks details into a table
RESULT=$(for d in */; do
BENCH_ID=$(jq .full_id ${d}master/benchmark.json | tr -d '"')
BENCH_ID=$(jq .full_id ${d}master/benchmark.json | tr -d '"' | sed -e 's/\//\/<\/tt><br><tt>/' )
MASTER_TIME=$(jq .slope.point_estimate ${d}master/estimates.json)
PR_TIME=$(jq .slope.point_estimate ${d}new/estimates.json)
Expand All @@ -61,7 +61,7 @@ RESULT=$(for d in */; do
WT_OVERHEAD=$(echo "($WASM_PR_TIME-$PR_TIME)/$PR_TIME*100" | bc -l | xargs printf "%.0f")
echo -n "<tr><td nowrap><tt>$BENCH_ID<\/td>"\
echo -n "<tr><td><tt>$BENCH_ID<\/td>"\
"<td nowrap> $(format_time $MASTER_TIME)<\/td>" \
"<td nowrap> $(format_time $PR_TIME)<\/td>" \
"<td nowrap> $PERF_CHANGE $(echo $DIFF*100 | bc -l | xargs printf "%.2f%%")<\/td>" \
Expand Down

0 comments on commit 1fbc2d3

Please sign in to comment.