-
Notifications
You must be signed in to change notification settings - Fork 549
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16511 from MinaProtocol/dkijania/build_performanc…
…e_tooling_in_ci_dev [Dev] Run benchmarks in CI
- Loading branch information
Showing
22 changed files
with
289 additions
and
175 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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/bash | ||
|
||
set -eox pipefail | ||
|
||
# Don't prompt for answers during apt-get install | ||
|
||
YELLOW_THRESHOLD="0.1" | ||
RED_THRESHOLD="0.3" | ||
EXTRA_ARGS="" | ||
|
||
source buildkite/scripts/bench/install.sh | ||
|
||
MAINLINE_BRANCHES="-m develop -m compatile -m master -m dkijania/build_performance_tooling_in_ci" | ||
while [[ "$#" -gt 0 ]]; do case $1 in | ||
heap-usage) BENCHMARK="heap-usage"; ;; | ||
mina-base) BENCHMARK="mina-base"; ;; | ||
ledger-export) | ||
BENCHMARK="ledger-export" | ||
EXTRA_ARGS="--genesis-ledger-path ./genesis_ledgers/devnet.json" | ||
;; | ||
snark) | ||
BENCHMARK="snark"; | ||
K=1 | ||
MAX_NUM_UPDATES=4 | ||
MIN_NUM_UPDATES=2 | ||
EXTRA_ARGS="--k ${K} --max-num-updates ${MAX_NUM_UPDATES} --min-num-updates ${MIN_NUM_UPDATES}" | ||
;; | ||
zkapp) BENCHMARK="zkapp"; ;; | ||
--yellow-threshold) YELLOW_THRESHOLD="$2"; shift;; | ||
--red-threshold) RED_THRESHOLD="$2"; shift;; | ||
*) echo "Unknown parameter passed: $1"; exit 1;; | ||
esac; shift; done | ||
|
||
python3 ./scripts/benchmarks test --benchmark ${BENCHMARK} --branch ${BUILDKITE_BRANCH} --tmpfile ${BENCHMARK}.csv --yellow-threshold $YELLOW_THRESHOLD --red-threshold $RED_THRESHOLD $MAINLINE_BRANCHES $EXTRA_ARGS |
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
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 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,21 @@ | ||
let BenchBase = ../../Command/Bench/Base.dhall | ||
|
||
let Pipeline = ../../Pipeline/Dsl.dhall | ||
|
||
let PipelineMode = ../../Pipeline/Mode.dhall | ||
|
||
let name = "HeapUsageStable" | ||
|
||
let bench = "heap-usage" | ||
|
||
in Pipeline.build | ||
( BenchBase.pipeline | ||
BenchBase.Spec::{ | ||
, mode = PipelineMode.Type.Stable | ||
, path = "Bench" | ||
, name = name | ||
, label = "Heap Usage" | ||
, key = bench | ||
, bench = bench | ||
} | ||
) |
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,20 @@ | ||
let BenchBase = ../../Command/Bench/Base.dhall | ||
|
||
let Pipeline = ../../Pipeline/Dsl.dhall | ||
|
||
let name = "HeapUsageUnstable" | ||
|
||
let bench = "heap-usage" | ||
|
||
in Pipeline.build | ||
( BenchBase.pipeline | ||
BenchBase.Spec::{ | ||
, path = "Bench" | ||
, name = name | ||
, label = "Heap Usage" | ||
, key = bench | ||
, bench = bench | ||
, yellowThreshold = 0.1 | ||
, redThreshold = 0.3 | ||
} | ||
) |
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,21 @@ | ||
let BenchBase = ../../Command/Bench/Base.dhall | ||
|
||
let Pipeline = ../../Pipeline/Dsl.dhall | ||
|
||
let PipelineMode = ../../Pipeline/Mode.dhall | ||
|
||
let name = "LedgerExportStable" | ||
|
||
let bench = "ledger-export" | ||
|
||
in Pipeline.build | ||
( BenchBase.pipeline | ||
BenchBase.Spec::{ | ||
, mode = PipelineMode.Type.Stable | ||
, path = "Bench" | ||
, name = name | ||
, label = "Ledger Export" | ||
, key = bench | ||
, bench = bench | ||
} | ||
) |
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 @@ | ||
let BenchBase = ../../Command/Bench/Base.dhall | ||
|
||
let Pipeline = ../../Pipeline/Dsl.dhall | ||
|
||
let Size = ../../Command/Size.dhall | ||
|
||
let name = "LedgerExportUnstable" | ||
|
||
let bench = "ledger-export" | ||
|
||
in Pipeline.build | ||
( BenchBase.pipeline | ||
BenchBase.Spec::{ | ||
, path = "Bench" | ||
, name = name | ||
, label = "Ledger Export" | ||
, size = Size.Small | ||
, bench = bench | ||
, key = bench | ||
, yellowThreshold = 0.1 | ||
, redThreshold = 0.3 | ||
} | ||
) |
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,21 @@ | ||
let BenchBase = ../../Command/Bench/Base.dhall | ||
|
||
let Pipeline = ../../Pipeline/Dsl.dhall | ||
|
||
let PipelineMode = ../../Pipeline/Mode.dhall | ||
|
||
let name = "MinaBaseStable" | ||
|
||
let bench = "mina-base" | ||
|
||
in Pipeline.build | ||
( BenchBase.pipeline | ||
BenchBase.Spec::{ | ||
, mode = PipelineMode.Type.Stable | ||
, path = "Bench" | ||
, name = name | ||
, label = "Mina Base" | ||
, key = bench | ||
, bench = bench | ||
} | ||
) |
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 @@ | ||
let BenchBase = ../../Command/Bench/Base.dhall | ||
|
||
let Pipeline = ../../Pipeline/Dsl.dhall | ||
|
||
let Size = ../../Command/Size.dhall | ||
|
||
let name = "MinaBaseUnstable" | ||
|
||
let bench = "mina-base" | ||
|
||
in Pipeline.build | ||
( BenchBase.pipeline | ||
BenchBase.Spec::{ | ||
, path = "Bench" | ||
, name = name | ||
, label = "Mina Base" | ||
, size = Size.Small | ||
, bench = bench | ||
, key = bench | ||
, yellowThreshold = 0.1 | ||
, redThreshold = 0.3 | ||
} | ||
) |
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,21 @@ | ||
let BenchBase = ../../Command/Bench/Base.dhall | ||
|
||
let Pipeline = ../../Pipeline/Dsl.dhall | ||
|
||
let PipelineMode = ../../Pipeline/Mode.dhall | ||
|
||
let name = "SnarkProfilerStable" | ||
|
||
let bench = "snark" | ||
|
||
in Pipeline.build | ||
( BenchBase.pipeline | ||
BenchBase.Spec::{ | ||
, mode = PipelineMode.Type.Stable | ||
, path = "Bench" | ||
, name = name | ||
, label = "Snark Profiler" | ||
, key = bench | ||
, bench = bench | ||
} | ||
) |
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 @@ | ||
let BenchBase = ../../Command/Bench/Base.dhall | ||
|
||
let Pipeline = ../../Pipeline/Dsl.dhall | ||
|
||
let Size = ../../Command/Size.dhall | ||
|
||
let name = "SnarkProfilerUnstable" | ||
|
||
let bench = "snark" | ||
|
||
in Pipeline.build | ||
( BenchBase.pipeline | ||
BenchBase.Spec::{ | ||
, path = "Bench" | ||
, name = name | ||
, label = "Snark Profiler" | ||
, size = Size.Small | ||
, bench = bench | ||
, key = bench | ||
, yellowThreshold = 0.1 | ||
, redThreshold = 0.3 | ||
} | ||
) |
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,21 @@ | ||
let BenchBase = ../../Command/Bench/Base.dhall | ||
|
||
let Pipeline = ../../Pipeline/Dsl.dhall | ||
|
||
let PipelineMode = ../../Pipeline/Mode.dhall | ||
|
||
let name = "ZkappLimitsStable" | ||
|
||
let bench = "zkapp" | ||
|
||
in Pipeline.build | ||
( BenchBase.pipeline | ||
BenchBase.Spec::{ | ||
, mode = PipelineMode.Type.Stable | ||
, path = "Bench" | ||
, name = name | ||
, label = "Zkapp Limits" | ||
, key = bench | ||
, bench = bench | ||
} | ||
) |
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 @@ | ||
let BenchBase = ../../Command/Bench/Base.dhall | ||
|
||
let Pipeline = ../../Pipeline/Dsl.dhall | ||
|
||
let Size = ../../Command/Size.dhall | ||
|
||
let name = "ZkappLimitsUnstable" | ||
|
||
let bench = "zkapp" | ||
|
||
in Pipeline.build | ||
( BenchBase.pipeline | ||
BenchBase.Spec::{ | ||
, path = "Bench" | ||
, name = name | ||
, label = "Zkapp Limits" | ||
, size = Size.Small | ||
, key = bench | ||
, bench = bench | ||
, yellowThreshold = 0.1 | ||
, redThreshold = 0.3 | ||
} | ||
) |
Oops, something went wrong.