aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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