Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for BenchmarkFieldByName3 (0.38 sec)

  1. src/reflect/benchmark_test.go

    		}
    	})
    }
    
    func BenchmarkFieldByName2(b *testing.B) {
    	t := TypeOf(S3{})
    	b.RunParallel(func(pb *testing.PB) {
    		for pb.Next() {
    			t.FieldByName("B")
    		}
    	})
    }
    
    func BenchmarkFieldByName3(b *testing.B) {
    	t := TypeOf(R0{})
    	b.RunParallel(func(pb *testing.PB) {
    		for pb.Next() {
    			t.FieldByName("X")
    		}
    	})
    }
    
    type S struct {
    	i1 int64
    	i2 int64
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Nov 19 17:09:03 UTC 2023
    - 8.8K bytes
    - Viewed (0)
Back to top