- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for BenchmarkBigLen (0.32 sec)
-
src/go/doc/testdata/testing.go
// means that the loop ran 10000000 times at a speed of 282 ns per loop. // // If a benchmark needs some expensive setup before running, the timer // may be stopped: // func BenchmarkBigLen(b *testing.B) { // b.StopTimer() // big := NewBig() // b.StartTimer() // for i := 0; i < b.N; i++ { // big.Len() // } // } package testing
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Oct 02 02:28:27 UTC 2022 - 11.8K bytes - Viewed (0) -
src/testing/testing.go
// // means that the loop ran 68453040 times at a speed of 17.8 ns per loop. // // 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)