Skip to content

Instantly share code, notes, and snippets.

@eleniums eleniums/test_bench.sh
Last active May 4, 2019

Embed
What would you like to do?
Script to run benchmarks for Go.
#!/bin/bash
set -e
if [ -z "$BENCH_TIME" ]
then
export BENCH_TIME=10s
fi
if [ -z "$BENCH" ]
then
export BENCH=.
fi
go test -v -run=^$ -bench=$BENCH -benchtime=$BENCH_TIME -memprofile=mem.prof -cpuprofile=cpu.prof ./test $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.