- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for BenchmarkCall (0.09 sec)
-
src/reflect/benchmark_test.go
b.Run(strconv.Itoa(numCases), func(b *testing.B) { b.ReportAllocs() for i := 0; i < b.N; i++ { _, _, _ = Select(cases[:numCases]) } }) } } func BenchmarkCall(b *testing.B) { fv := ValueOf(func(a, b string) {}) b.ReportAllocs() b.RunParallel(func(pb *testing.PB) { args := []Value{ValueOf("a"), ValueOf("b")} for pb.Next() { fv.Call(args) } })
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Nov 19 17:09:03 UTC 2023 - 8.8K bytes - Viewed (0)