- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 483 for startTimer (0.39 sec)
-
src/go/doc/testdata/benchmark.go
N int benchmark InternalBenchmark bytes int64 timerOn bool result BenchmarkResult } // StartTimer starts timing a test. This function is called automatically // before a benchmark starts, but it can also used to resume timing after // a call to StopTimer. func (b *B) StartTimer() { if !b.timerOn { b.start = time.Now() b.timerOn = true } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Oct 02 02:28:27 UTC 2022 - 7.4K bytes - Viewed (0) -
src/runtime/netpoll_os_test.go
package runtime_test import ( "runtime" "sync" "testing" ) var wg sync.WaitGroup func init() { runtime.NetpollGenericInit() } func BenchmarkNetpollBreak(b *testing.B) { b.StartTimer() for i := 0; i < b.N; i++ { for j := 0; j < 10; j++ { wg.Add(1) go func() { runtime.NetpollBreak() wg.Done() }() } } wg.Wait() b.StopTimer()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 17 23:34:11 UTC 2023 - 520 bytes - Viewed (0) -
src/go/doc/testdata/testing.0.golden
func (b *B) ResetTimer() // SetBytes records the number of bytes processed in a single ... 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 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 4.1K bytes - Viewed (0) -
src/go/doc/testdata/testing.2.golden
func (b *B) ResetTimer() // SetBytes records the number of bytes processed in a single ... 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 {
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->get_event_status = GetEventStatus; 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;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 21 20:09:00 UTC 2023 - 8.7K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/configuration/project/BuildScriptProcessor.java
if (LOGGER.isInfoEnabled()) { LOGGER.info("Evaluating {} using {}.", project, scriptSource.getDisplayName()); } final Timer clock = Time.startTimer(); try { final ScriptPlugin configurer = configurerFactory.create(scriptSource, project.getBuildscript(), project.getClassLoaderScope(), project.getBaseClassLoaderScope(), true);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Dec 19 20:09:56 UTC 2022 - 2.1K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/initialization/ScriptEvaluatingSettingsProcessor.java
GradleInternal gradle, SettingsLocation settingsLocation, ClassLoaderScope baseClassLoaderScope, StartParameter startParameter ) { Timer settingsProcessingClock = Time.startTimer(); TextResourceScriptSource settingsScript = new TextResourceScriptSource(textFileResourceLoader.loadFile("settings file", settingsLocation.getSettingsFile()));
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Jan 25 19:42:27 UTC 2023 - 3.4K bytes - Viewed (0) -
pkg/config/mesh/watcher_test.go
b.StopTimer() path := newTempFile(b) defer removeSilent(path) m := mesh.DefaultMeshConfig() writeMessage(b, path, m) w := newWatcher(b, path, false) b.StartTimer() handler := func(mc *meshconfig.MeshConfig) { // Do nothing } for i := 0; i < b.N; i++ { handler(w.Mesh()) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 3K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/pruning/algorithm_test.go
if err != nil { b.Fatal(err) } instances := make([]map[string]interface{}, 0, b.N) for i := 0; i < b.N; i++ { instances = append(instances, runtime.DeepCopyJSON(obj)) } b.StartTimer() for i := 0; i < b.N; i++ { Prune(instances[i], schema, true) } } func BenchmarkDeepCopy(b *testing.B) { b.StopTimer() b.ReportAllocs() var obj map[string]interface{}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 16 20:13:14 UTC 2024 - 20.3K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/passbm_test.go
b.ReportAllocs() c := testConfig(b) fun := c.Fun("entry", bg(size)...) CheckFunc(fun.f) b.ResetTimer() for i := 0; i < b.N; i++ { fn(fun.f) b.StopTimer() CheckFunc(fun.f) b.StartTimer() } } // benchFnBlock runs passFunc across a function with b.N blocks. func benchFnBlock(b *testing.B, fn passFunc, bg blockGen) { b.ReportAllocs() c := testConfig(b) fun := c.Fun("entry", bg(b.N)...)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 3.1K bytes - Viewed (0)