Skip to content

Commit edc9a11

Browse files
authored
Pin Manual Benchmarks To CPU 7 (#7249)
1 parent df5449b commit edc9a11

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/manual-benchmark.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,9 @@ jobs:
123123
nix develop .#${{ steps.extract-benchmark.outputs.ghc }} \
124124
--no-warn-dirty \
125125
--accept-flake-config \
126-
--command bash ./scripts/ci-plutus-benchmark.sh
126+
--command taskset -c 7 bash ./scripts/ci-plutus-benchmark.sh
127+
# We use taskset to pin the benchmark to a single CPU core to improve repeatability
128+
127129
env:
128130
BENCHMARK_NAME: ${{ steps.extract-benchmark.outputs.benchmark }}
129131
PR_NUMBER: ${{ github.event.issue.number }}

nix/shell.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ let
6565

6666
linux-pkgs = lib.optionals pkgs.hostPlatform.isLinux [
6767
pkgs.papi
68+
pkgs.util-linux
6869
];
6970

7071
common-pkgs = [
71-
pkgs.ghcid
7272
agda-tools.agda
7373
agda-tools.agda-with-stdlib
7474
agda-tools.agda-mode
@@ -86,6 +86,7 @@ let
8686
tools.hlint
8787
tools.cabal-fmt
8888

89+
pkgs.ghcid
8990
pkgs.texliveFull
9091
pkgs.jekyll
9192
pkgs.plantuml

0 commit comments

Comments
 (0)