aboutsummaryrefslogtreecommitdiff
path: root/bench
diff options
context:
space:
mode:
authorMatt Joiner <anacrolix@gmail.com>2020-10-01 13:27:01 +1000
committerMatt Joiner <anacrolix@gmail.com>2020-10-01 13:27:01 +1000
commit196642dc25c4c8ad68e24ee75905744522da83b4 (patch)
treed4eb1318d91080ccd00ecf0da815aff4be705142 /bench
parentNew Tx must have completed=false (diff)
downloadstm-196642dc25c4c8ad68e24ee75905744522da83b4.tar.gz
stm-196642dc25c4c8ad68e24ee75905744522da83b4.tar.xz
Add benchmark utils
Diffstat (limited to 'bench')
-rwxr-xr-xbench8
1 files changed, 8 insertions, 0 deletions
diff --git a/bench b/bench
new file mode 100755
index 0000000..d3f2a1f
--- /dev/null
+++ b/bench
@@ -0,0 +1,8 @@
+benchout="benches/$(./describe)"
+echo
+echo writing "$benchout"
+echo
+go test -bench . -benchtime 3s -benchmem | tee "$benchout"
+echo
+echo wrote "$benchout"
+echo