uquic/benchmark/benchmark_suite_test.go
2020-10-26 09:33:35 +07:00

27 lines
425 B
Go

package benchmark
import (
"flag"
"math/rand"
"testing"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
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()
})