Пример #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
func main() {
	b := bench.NewBench(10, time.Second*10, 10, f)
	b.Run()
	fmt.Printf("%s", b)
}