func main() { // run at the provided rps b1 := bench.NewBench(2, time.Second*5, 10, quickFn) b1.Run() fmt.Printf("%s", b1) }
func main() { b := bench.NewBench(10, time.Second*10, 10, f) b.Run() fmt.Printf("%s", b) }