- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for BenchmarkFieldByName1 (0.22 sec)
-
src/reflect/benchmark_test.go
// every call. b.RunParallel(func(pb *testing.PB) { for pb.Next() { PointerTo(t) } }) } type B1 struct { X int Y int Z int } func BenchmarkFieldByName1(b *testing.B) { t := TypeOf(B1{}) b.RunParallel(func(pb *testing.PB) { for pb.Next() { t.FieldByName("Z") } }) } func BenchmarkFieldByName2(b *testing.B) { t := TypeOf(S3{})
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Nov 19 17:09:03 UTC 2023 - 8.8K bytes - Viewed (0)