- Sort Score
- Result 10 results
- Languages All
Results 11 - 12 of 12 for resetTimer (0.76 sec)
-
pilot/pkg/serviceregistry/serviceentry/controller_test.go
temp := model.Service{ Hostname: host.Name(fmt.Sprintf("foo%d.com", i)), Resolution: model.ClientSideLB, DefaultAddress: constants.UnspecifiedIP, } inServices[i] = &temp } t.ResetTimer() for i := 0; i < t.N; i++ { autoAllocateIPs(inServices) } } // Validate that ipaddress allocation is deterministic based on hash. func Test_autoAllocateIP_deterministic(t *testing.T) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 29 15:31:09 UTC 2024 - 92.9K bytes - Viewed (0) -
src/testing/testing.go
// // If a benchmark needs some expensive setup before running, the timer // may be reset: // // func BenchmarkBigLen(b *testing.B) { // big := NewBig() // b.ResetTimer() // for range b.N { // big.Len() // } // } // // If a benchmark needs to test performance in a parallel setting, it may use
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 76.1K bytes - Viewed (0)