dispatch/vendor/github.com/blevesearch/bleve/index/upsidedown/benchmark_all.sh
Ken-Håvard Lieng 628dc66685 Go modules!
2018-08-31 03:08:17 +02:00

9 lines
241 B
Bash

#!/bin/sh
BENCHMARKS=`grep "func Benchmark" *_test.go | sed 's/.*func //' | sed s/\(.*{//`
for BENCHMARK in $BENCHMARKS
do
go test -v -run=xxx -bench=^$BENCHMARK$ -benchtime=10s -tags 'forestdb leveldb' | grep -v ok | grep -v PASS
done