Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for BenchmarkDateFunc (0.13 sec)

  1. src/time/time_test.go

    	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 {
    		t = Date(2020, 8, 22, 11, 27, 43, 123456789, UTC)
    	}
    	_ = t
    }
    
    func BenchmarkUnmarshalText(b *testing.B) {
    	var t Time
    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