- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 94 for stopTimer (0.33 sec)
-
src/go/parser/performance_test.go
b.Fatalf("benchmark failed due to parse error: %s", err) } } } func BenchmarkResolve(b *testing.B) { b.SetBytes(int64(len(src))) for i := 0; i < b.N; i++ { b.StopTimer() fset := token.NewFileSet() file, err := ParseFile(fset, "", src, SkipObjectResolution) if err != nil { b.Fatalf("benchmark failed due to parse error: %s", err) } b.StartTimer()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 01 22:35:46 UTC 2022 - 1.2K bytes - Viewed (0) -
src/go/doc/testdata/testing.2.golden
func (b *B) SetBytes(n int64) // StartTimer starts timing a test. This function is called ... func (b *B) StartTimer() // StopTimer stops timing a test. This can be used to pause the ... func (b *B) StopTimer() // The results of a benchmark run. type BenchmarkResult struct { N int // The number of iterations. T time.Duration // The total time taken.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 4.1K bytes - Viewed (0) -
tensorflow/c/experimental/stream_executor/stream_executor_test_util.cc
se->record_event = RecordEvent; se->wait_for_event = WaitForEvent; se->create_timer = CreateTimer; se->destroy_timer = DestroyTimer; se->start_timer = StartTimer; se->stop_timer = StopTimer; se->memcpy_dtoh = MemcpyDToH; se->memcpy_htod = MemcpyHToD; se->sync_memcpy_dtoh = SyncMemcpyDToH; se->sync_memcpy_htod = SyncMemcpyHToD; se->block_host_for_event = BlockHostForEvent;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 21 20:09:00 UTC 2023 - 8.7K bytes - Viewed (0) -
cmd/benchmark-utils_test.go
} if objInfo.ETag != md5hex { b.Fatalf("Write no: %d: Md5Sum mismatch during object write into the bucket: Expected %s, got %s", i+1, objInfo.ETag, md5hex) } } // Benchmark ends here. Stop timer. b.StopTimer() } // Benchmark utility functions for ObjectLayer.PutObjectPart(). // Creates Object layer setup ( MakeBucket ) and then runs the PutObjectPart benchmark.
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Dec 23 15:46:00 UTC 2022 - 8.2K bytes - Viewed (0) -
src/runtime/callers_test.go
for i := 0; i < b.N; i++ { runtime.Callers(0, pcs) } b.StopTimer() return 0 } return 1 + callersCached(b, n-1) } func callersInlined(b *testing.B, n int) int { if n <= 0 { pcs := make([]uintptr, 32) b.ResetTimer() for i := 0; i < b.N; i++ { runtime.Callers(0, pcs) } b.StopTimer() return 0 } return 1 + callersInlined1(b, n-1) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 28 21:36:31 UTC 2023 - 12.1K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/resource/quantity_test.go
q.s = "" s = q.String() } b.StopTimer() if len(s) == 0 { b.Fatal(s) } } func BenchmarkQuantityMarshalJSON(b *testing.B) { values := benchmarkQuantities() b.ResetTimer() for i := 0; i < b.N; i++ { q := values[i%len(values)] q.s = "" if _, err := q.MarshalJSON(); err != nil { b.Fatal(err) } } b.StopTimer() }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 21:48:10 UTC 2024 - 49.4K bytes - Viewed (0) -
src/time/sleep.go
// compare linknamed symbol definitions happier. // //go:linkname newTimer func newTimer(when, period int64, f func(any, uintptr, int64), arg any, cp unsafe.Pointer) *Timer //go:linkname stopTimer func stopTimer(*Timer) bool //go:linkname resetTimer func resetTimer(t *Timer, when, period int64) bool // Note: The runtime knows the layout of struct Timer, since newTimer allocates it.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:21:30 UTC 2024 - 8.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/secretbox/secretbox_test.go
if err != nil { b.Fatal(err) } if expectStale != stale { b.Fatalf("unexpected data: %q, expect stale %t but got %t", from, expectStale, stale) } } b.StopTimer() } func benchmarkSecretboxWrite(b *testing.B, keyLength int, valueLength int) { p := value.NewPrefixTransformers(nil, value.PrefixTransformer{Prefix: []byte("first:"), Transformer: NewSecretboxTransformer(key1)},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Feb 17 16:31:31 UTC 2022 - 6.8K bytes - Viewed (0) -
src/runtime/malloc_test.go
for i := range m { m[i] = make(chan struct{}, 1) go read(m[i]) } b.StopTimer() b.ResetTimer() GC() for i := 0; i < b.N; i++ { for _, ch := range m { if ch != nil { ch <- struct{}{} } } time.Sleep(10 * time.Millisecond) b.StartTimer() GC() b.StopTimer() } for _, ch := range m { close(ch) } time.Sleep(10 * time.Millisecond)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 05 23:35:29 UTC 2023 - 10.6K bytes - Viewed (0) -
src/math/big/gcd_test.go
runGCDExt(b, aSize, bSize, false) }) b.Run("WithXY", func(b *testing.B) { runGCDExt(b, aSize, bSize, true) }) } func runGCDExt(b *testing.B, aSize, bSize uint, calcXY bool) { b.StopTimer() var r = rand.New(rand.NewSource(1234)) aa := randInt(r, aSize) bb := randInt(r, bSize) var x, y *Int if calcXY { x = new(Int) y = new(Int) } b.StartTimer() for i := 0; i < b.N; i++ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 14 19:11:43 UTC 2016 - 2.2K bytes - Viewed (0)