diff options
author | Jakob Unterwurzacher | 2017-02-24 09:38:50 +0100 |
---|---|---|
committer | Jakob Unterwurzacher | 2017-02-24 09:38:50 +0100 |
commit | 43d6aa66770dd327448c42ad2831fedbf7acd333 (patch) | |
tree | f5bb9ef1972cb37f6086787955cb2309312f4a99 | |
parent | be19b91a52252f14df7efd51903d827f89cc70c5 (diff) |
speed: add benchmark.bash helper
-rwxr-xr-x | internal/speed/benchmark.bash | 7 | ||||
-rwxr-xr-x | internal/stupidgcm/benchmark.bash | 6 |
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 |