Skip to content

Commit

Permalink
Add CI step to collect the benchmarks history
Browse files Browse the repository at this point in the history
  • Loading branch information
paolino committed Jul 23, 2024
1 parent 4132815 commit 6775824
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
26 changes: 25 additions & 1 deletion .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ steps:
artifact_paths: [ "./bench-results.csv" ]
concurrency: 4
concurrency_group: 'concurrent-benchmarks'
key: api-benchmark

- label: Latency Benchmark (linux)
command: |
Expand All @@ -310,6 +311,7 @@ steps:
artifact_paths: [ "./bench-results.csv" ]
concurrency: 4
concurrency_group: 'concurrent-benchmarks'
key: latency-benchmark

- label: DB Benchmark (linux)
command: |
Expand All @@ -323,6 +325,7 @@ steps:
artifact_paths: [ "./bench-results.csv" ]
concurrency: 4
concurrency_group: 'concurrent-benchmarks'
key: db-benchmark

- label: Read-blocks Benchmark (linux)
command: |
Expand All @@ -336,7 +339,7 @@ steps:
artifact_paths: [ "./bench-results.csv" ]
concurrency: 4
concurrency_group: 'concurrent-benchmarks'

key: read-blocks-benchmark

- label: Memory Benchmark (linux)
command: |
Expand All @@ -351,6 +354,27 @@ steps:
artifact_paths: [ "./bench-results.csv" ]
concurrency: 4
concurrency_group: 'concurrent-benchmarks'
key: memory-benchmark

- label: Benchmarks history
# if: build.env("RELEASE_CANDIDATE") != null
# depends_on:
# - api-benchmark
# - latency-benchmark
# - db-benchmark
# - read-blocks-benchmark
# - memory-benchmark
# - trigger-benchmarks
artifact_paths:
- ./benchmark-history/**
command: |
mkdir -p benchmark-history
nix run .#cardano-wallet-benchmarks \
--since 2024-06-24 \
--charts-dir benchmark-history
env:
BUILDKITE_API_TOKEN: ${{ secrets.BUILDKITE_TOKEN_READ_BUILDS_ARTIFACTS }}


- input: "Restoration Benchmark Parameters"
if: build.env("RELEASE_CANDIDATE") == null
Expand Down
12 changes: 12 additions & 0 deletions scripts/buildkite/main/benchmark-history.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#! /usr/bin/env -S nix shell .#benchmark-history nixpkgs#gnutar -c bash
# shellcheck shell=bash

set -euox pipefail

mkdir -p ./benchmark-history

benchmark-history \
--since 2024-06-24 \
--charts-dir benchmark-history

tar -czf benchmark-history.tar.gz benchmark-history

0 comments on commit 6775824

Please sign in to comment.