Files
quic-go/benchmark/benchmark_suite_test.go
Marten Seemann 305d6e0fbe make the benchmark suite compatible with Go 1.13
Unfortunately, there doesn't seem to be a way to keep the samples flag.
2019-09-05 10:08:51 +07:00

31 lines
431 B
Go

package benchmark
import (
"flag"
"math/rand"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"testing"
)
func TestBenchmark(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "Benchmark Suite")
}
var (
size int // file size in MB, will be read from flags
)
func init() {
flag.IntVar(&size, "size", 50, "data length (in MB)")
}
var _ = BeforeSuite(func() {
rand.Seed(GinkgoRandomSeed())
flag.Parse()
})