示例#1
0
func main() {
	// run at the provided rps
	b1 := bench.NewBench(2, time.Second*5, 10, quickFn)
	b1.Run()
	fmt.Printf("%s", b1)
}
示例#2
0
文件: http.go 项目: codemartial/bench
func main() {
	b := bench.NewBench(10, time.Second*10, 10, f)
	b.Run()
	fmt.Printf("%s", b)
}