Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for BenchmarkGoString (0.28 sec)

  1. src/cmd/cgo/internal/test/cgo_test.go

    func TestUnsignedInt(t *testing.T)           { testUnsignedInt(t) }
    func TestZeroArgCallback(t *testing.T)       { testZeroArgCallback(t) }
    
    func BenchmarkCgoCall(b *testing.B)      { benchCgoCall(b) }
    func BenchmarkGoString(b *testing.B)     { benchGoString(b) }
    func BenchmarkCGoCallback(b *testing.B)  { benchCallback(b) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 17 21:53:11 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  2. src/time/time_test.go

    	for i := 0; i < b.N; i++ {
    		_ = t.Day()
    	}
    }
    
    func BenchmarkISOWeek(b *testing.B) {
    	t := Now()
    	for i := 0; i < b.N; i++ {
    		_, _ = t.ISOWeek()
    	}
    }
    
    func BenchmarkGoString(b *testing.B) {
    	t := Now()
    	for i := 0; i < b.N; i++ {
    		_ = t.GoString()
    	}
    }
    
    func BenchmarkDateFunc(b *testing.B) {
    	var t Time
    	for range b.N {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:13:47 UTC 2024
    - 56.5K bytes
    - Viewed (0)
Back to top