-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR drops two things: 1. The check that the benchmark hasn’t been modified. This hasn’t ever been useful and it keeps being annoying. 2. It stops the comparison against the old version and instead just benchmarks the current version. We really only care about the day to day changes. Comparing against an arbitrary year old version has lost all meaning at this point. changelog_begin changelog_end
- Loading branch information
1 parent
8558c73
commit 17a737a
Showing
7 changed files
with
29 additions
and
227 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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Copyright (c) 2021 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
#!/usr/bin/env bash | ||
|
||
set -euox pipefail | ||
|
||
measure() { | ||
local out=$(mktemp -d)/out.json | ||
bazel run daml-lf/scenario-interpreter:scenario-perf -- -rf json -rff $out >&2 | ||
cat $out | jq '.[0].primaryMetric.score' | ||
} | ||
|
||
main() { | ||
local current=$(git rev-parse HEAD) | ||
|
||
local current_perf=$(measure) | ||
if [ "" = "$current_perf" ]; then exit 1; fi | ||
|
||
echo '{"current-perf": '$current_perf', "current-sha": "'$current'"}' | ||
} | ||
|
||
main |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.