gitea/vendor/github.com/blevesearch/bleve/index/upsidedown/benchmark_all.sh

9 lines
241 B
Bash
Raw Normal View History

2017-01-25 02:43:02 +00:00
#!/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