Skip to content

Commit

Permalink
Buildkite: Add pipeline for nightly benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
rvl committed Apr 8, 2019
1 parent 2b76511 commit 237fb73
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .buildkite/benchmark.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash

set -euo pipefail

stack bench cardano-wallet:restore --interleaved-output --ba "+RTS -N2 -qg -A1m -I0 -T -M1G -h -RTS"

hp2pretty restore.hp

if [ -n "${BUILDKITE:-}" ]; then
buildkite-agent artifact upload restore.svg
printf '\033]1338;url='"artifact://restore.svg"';alt='"Heap profile"'\a\n'
fi
8 changes: 8 additions & 0 deletions .buildkite/nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
env:
NIX_PATH: "channel:nixos-19.03"
steps:
- label: 'Restore benchmarks'
command: "nix-shell -p nix git stack haskellPackages.hp2pretty buildkite-agent --run ./.buildkite/benchmark.sh"
timeout_in_minutes: 60
agents:
system: x86_64-linux

0 comments on commit 237fb73

Please sign in to comment.