From 82d6055e1038ab6e6a9b1b3637d053b6b6926277 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Fri, 17 Jan 2020 01:55:22 +0100 Subject: [PATCH] again --- .github/workflows/build.yml | 1 + scripts/benchmark.sh | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ce0cbe0f..029bab22 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -29,6 +29,7 @@ jobs: - name: Benchmark run: | + echo 1 | sudo tee /proc/sys/kernel/perf_event_paranoid git clone https://github.com/wren-lang/wren cd wren make diff --git a/scripts/benchmark.sh b/scripts/benchmark.sh index fe65b363..3d0d087d 100644 --- a/scripts/benchmark.sh +++ b/scripts/benchmark.sh @@ -7,10 +7,6 @@ plot_script="scripts/bench.plot" : "${repeats:=10}" run() { - echo "$1 $3 $2" >&2 - echo "perf stat -r$repeats $1 $test_dir/$3.$2" - echo 1 | sudo tee /proc/sys/kernel/perf_event_paranoid - perf stat "$1" "$test_dir/$3.$2" perf stat -r"$repeats" "$1" "$test_dir/$3.$2" 2>&1 | grep "time elapsed" | sed 's/ *\([0-9]*\),\([0-9]*\) .* seconds time elapsed *( +- *\([0-9]*\),\([0-9]*\)% )/\1.\2 \3.\4/' } -- 2.43.0