From 8a260e93f46c4d8f83e23a5769566f1680e89709 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Mon, 20 Jan 2020 00:11:47 +0100 Subject: [PATCH] escape --- .github/workflows/build.yml | 2 +- benchmark/fib-recurs.pl | 9 --------- scripts/benchmark.sh | 4 ++-- 3 files changed, 3 insertions(+), 12 deletions(-) delete mode 100644 benchmark/fib-recurs.pl diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e5366948..d41ea307 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -115,7 +115,7 @@ jobs: sudo apt-get update sudo apt-get install gnuplot lua5.3 chuck ln -s $(which lua5.3) lua - echo "chuck --silent $@" > ../chuck + echo "chuck --silent \$@" > ../chuck chmod +x ../chuck export PATH=./wren:$PATH export PATH=.:$PATH diff --git a/benchmark/fib-recurs.pl b/benchmark/fib-recurs.pl deleted file mode 100644 index 55092d23..00000000 --- a/benchmark/fib-recurs.pl +++ /dev/null @@ -1,9 +0,0 @@ -sub fibonacci_recurs { - my ($number) = @_; - if ($number < 2) { # base case - return $number; - } - return fibonacci_recurs($number-1) + fibonacci_recurs($number-2); -} - -print fibonacci_recurs(40) , "\n"; diff --git a/scripts/benchmark.sh b/scripts/benchmark.sh index 3021aefc..17b0a24b 100644 --- a/scripts/benchmark.sh +++ b/scripts/benchmark.sh @@ -1,7 +1,7 @@ #!/bin/bash -language=("gwion" "wren" "lua" "python" "chuck" "ruby" "perl") -extension=("gw" "wren" "lua" "py" "ck" "rb" "pl") +language=("gwion" "wren" "lua" "python" "chuck" "ruby") +extension=("gw" "wren" "lua" "py" "ck" "rb") test_dir="benchmark" plot_script="scripts/bench.plot" : "${repeats:=10}" -- 2.43.0