From: Jérémie Astor Date: Sun, 19 Jan 2020 19:17:05 +0000 (+0100) Subject: bench on demand X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=a6784c00bc60f77c53b72d5fd6c6c0ccc3db8cd4;p=gwion.git bench on demand --- diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e4744ca5..2ead3480 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,6 +19,12 @@ jobs: path: mdr key: ${{ runner.os }}-mdr + - uses: actions/cache@v1 + id: results + with: + path: benchmark/results + key: ${{ runner.os }}-results + - name: Mdr if: steps.mdr-bin.outputs.cache-hit != 'true' run: | @@ -96,6 +102,7 @@ jobs: - name: Benchmark run: | + git log -1 --pretty="%B" | grep "\[benchmark\]" || exit 0 echo 1 | sudo tee /proc/sys/kernel/perf_event_paranoid sudo apt-get update sudo apt-get install gnuplot lua5.3 diff --git a/benchmark/results/binary-trees.dat b/benchmark/results/binary-trees.dat deleted file mode 100644 index 7bc415bc..00000000 --- a/benchmark/results/binary-trees.dat +++ /dev/null @@ -1,3 +0,0 @@ -gwion 0.28883 0.71 -wren 0.212555 0.05 -lua 0.33127 1.31 diff --git a/benchmark/results/binary-trees.png b/benchmark/results/binary-trees.png deleted file mode 100644 index b3a65754..00000000 Binary files a/benchmark/results/binary-trees.png and /dev/null differ diff --git a/benchmark/results/fib-recurs.dat b/benchmark/results/fib-recurs.dat deleted file mode 100644 index 2821ba5c..00000000 --- a/benchmark/results/fib-recurs.dat +++ /dev/null @@ -1,3 +0,0 @@ -gwion 5.61139 0.08 -wren 13.8135 0.19 -lua 7.45629 0.06 diff --git a/benchmark/results/fib-recurs.png b/benchmark/results/fib-recurs.png deleted file mode 100644 index 43179c7f..00000000 Binary files a/benchmark/results/fib-recurs.png and /dev/null differ diff --git a/benchmark/results/fib.dat b/benchmark/results/fib.dat deleted file mode 100644 index 526bb6f2..00000000 --- a/benchmark/results/fib.dat +++ /dev/null @@ -1,3 +0,0 @@ -gwion 0.087394 0.98 -wren 0.2161696 0.03 -lua 0.2164971 0.03 diff --git a/benchmark/results/fib.png b/benchmark/results/fib.png deleted file mode 100644 index 68c0ec83..00000000 Binary files a/benchmark/results/fib.png and /dev/null differ diff --git a/benchmark/results/for.dat b/benchmark/results/for.dat deleted file mode 100644 index 6bbcec2a..00000000 --- a/benchmark/results/for.dat +++ /dev/null @@ -1,3 +0,0 @@ -gwion 0.04015 5.88 -wren 0.08465 2.07 -lua 0.052868 0.20 diff --git a/benchmark/results/for.png b/benchmark/results/for.png deleted file mode 100644 index f097191b..00000000 Binary files a/benchmark/results/for.png and /dev/null differ diff --git a/benchmark/results/method-call.dat b/benchmark/results/method-call.dat deleted file mode 100644 index 203d96e8..00000000 --- a/benchmark/results/method-call.dat +++ /dev/null @@ -1,3 +0,0 @@ -gwion 0.096845 1.01 -wren 0.110182 0.14 -lua 0.271676 0.22 diff --git a/benchmark/results/method-call.png b/benchmark/results/method-call.png deleted file mode 100644 index b91d6770..00000000 Binary files a/benchmark/results/method-call.png and /dev/null differ diff --git a/benchmark/results/string-equals.dat b/benchmark/results/string-equals.dat deleted file mode 100644 index 019dadd5..00000000 --- a/benchmark/results/string-equals.dat +++ /dev/null @@ -1,2 +0,0 @@ -gwion 0.17701 2.96 -wren 0.184586 0.11 diff --git a/benchmark/results/string-equals.png b/benchmark/results/string-equals.png deleted file mode 100644 index f5f5724f..00000000 Binary files a/benchmark/results/string-equals.png and /dev/null differ diff --git a/scripts/benchmark.sh b/scripts/benchmark.sh index a7e10f88..3021aefc 100644 --- a/scripts/benchmark.sh +++ b/scripts/benchmark.sh @@ -33,6 +33,7 @@ plot() { gnuplot -e "bench='$1'" "$plot_script" } +[ -d benchmark/results ] || mkdir benchmark/results for bench in $(get_list) do get_test "$bench"