aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorJakob Unterwurzacher2017-02-24 09:38:50 +0100
committerJakob Unterwurzacher2017-02-24 09:38:50 +0100
commit43d6aa66770dd327448c42ad2831fedbf7acd333 (patch)
treef5bb9ef1972cb37f6086787955cb2309312f4a99 /internal
parentbe19b91a52252f14df7efd51903d827f89cc70c5 (diff)
speed: add benchmark.bash helper
Diffstat (limited to 'internal')
-rwxr-xr-xinternal/speed/benchmark.bash7
-rwxr-xr-xinternal/stupidgcm/benchmark.bash6
2 files changed, 8 insertions, 5 deletions
diff --git a/internal/speed/benchmark.bash b/internal/speed/benchmark.bash
new file mode 100755
index 0000000..d2678a7
--- /dev/null
+++ b/internal/speed/benchmark.bash
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+set -eu
+
+cd "$(dirname "$0")"
+
+go test -bench .
diff --git a/internal/stupidgcm/benchmark.bash b/internal/stupidgcm/benchmark.bash
index d2678a7..8681495 100755
--- a/internal/stupidgcm/benchmark.bash
+++ b/internal/stupidgcm/benchmark.bash
@@ -1,7 +1,3 @@
#!/bin/bash
-set -eu
-
-cd "$(dirname "$0")"
-
-go test -bench .
+exec ../speed/benchmark.bash