]> Nishi Git Mirror - gwion.git/commitdiff
Update modules
authorfennecdjay <astor.jeremie@wanadoo.fr>
Sun, 17 Mar 2019 19:22:29 +0000 (20:22 +0100)
committerfennecdjay <astor.jeremie@wanadoo.fr>
Sun, 17 Mar 2019 19:22:29 +0000 (20:22 +0100)
ast
help/benchmark.sh
plug

diff --git a/ast b/ast
index 1b3f39e577d03ebeccaae77e27619dd3c96bf0bd..4220ad652772b5784820e8d7c36bb672dbc341f9 160000 (submodule)
--- a/ast
+++ b/ast
@@ -1 +1 @@
-Subproject commit 1b3f39e577d03ebeccaae77e27619dd3c96bf0bd
+Subproject commit 4220ad652772b5784820e8d7c36bb672dbc341f9
index f747f0e85ba20f5d7792a03e59e614fa4b18212f..80bc77999e35d99e5e580051208d053b8fbc0f8f 100644 (file)
@@ -1,19 +1,20 @@
 #!/bin/sh
 #run benchmarks and make plots
-n=0
+: "${repeats:=10}"
+
 fib_test() {
-  echo $n "$1" "$(perf stat -r10 "$1" "fib_recurs.$2" 2>&1 | grep "time elapsed" | cut -d s -f 1 | sed 's/+-//' | sed 's/,/./g')"
-  n=$((n+1))
+#  echo "\"$1\"" "$(perf stat -r"$repeats" "$1" "fib_recurs.$2" 2>&1 | grep "time elapsed" | cut -d s -f 1 | sed 's/+-//' | sed 's/,/./g')"
+  printf "$(perf stat -r"$repeats" "$1" "fib_recurs.$2" 2>&1 | grep "time elapsed" | cut -d s -f 1 | sed 's/+-//' | sed 's/,/./g')"
 }
 
 cd ~/fib_recurs/ || exit 1
-
+printf "\"fib recurs\" "
 fib_test gwion gw
 fib_test lua   lua
 fib_test wren  wren
-fib_test chuck ck
-fib_test ruby  rb
-fib_test perl  pl
-fib_test python2 py
-fib_test python3 py
-fib_test runhaskell hs
+#fib_test chuck ck
+#fib_test ruby  rb
+#fib_test perl  pl
+#fib_test python2 py
+#fib_test python3 py
+#fib_test runhaskell hs
diff --git a/plug b/plug
index e4f8209a70928ac461ceb5f287bf5f5672a458a5..ff65f1742150b27ba79a996c506bc439587c3dfb 160000 (submodule)
--- a/plug
+++ b/plug
@@ -1 +1 @@
-Subproject commit e4f8209a70928ac461ceb5f287bf5f5672a458a5
+Subproject commit ff65f1742150b27ba79a996c506bc439587c3dfb