- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 240 for startTimer (0.17 sec)
-
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) -
src/cmd/go/testdata/script/list_test_simple.txt
-- go.mod -- module m go 1.16 -- bench_test.go -- package testlist import ( "fmt" "testing" ) func BenchmarkSimplefunc(b *testing.B) { b.StopTimer() b.StartTimer() for i := 0; i < b.N; i++ { _ = fmt.Sprint("Test for bench") } } -- example_test.go -- package testlist import ( "fmt" ) func ExampleSimple() { fmt.Println("Test with Output.")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 17 13:25:29 UTC 2020 - 856 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/api/internal/tasks/execution/ResolveTaskExecutionModeExecuter.java
} @Override public TaskExecuterResult execute(final TaskInternal task, TaskStateInternal state, final TaskExecutionContext context) { Timer clock = Time.startTimer(); TaskExecutionMode taskExecutionMode = executionModeResolver.getExecutionMode(task, context.getTaskProperties()); context.setTaskExecutionMode(taskExecutionMode);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Dec 15 08:59:25 UTC 2020 - 2.4K bytes - Viewed (0) -
src/math/big/gcd_test.go
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++ { new(Int).GCD(x, y, aa, bb) } } func BenchmarkGCD10x10(b *testing.B) { runGCD(b, 10, 10) } func BenchmarkGCD10x100(b *testing.B) { runGCD(b, 10, 100) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 14 19:11:43 UTC 2016 - 2.2K 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) -
src/compress/flate/reader_test.go
if len(buf0) > n-i { buf0 = buf0[:n-i] } io.Copy(w, bytes.NewReader(buf0)) } w.Close() buf1 := compressed.Bytes() buf0, compressed, w = nil, nil, nil runtime.GC() b.StartTimer() for i := 0; i < b.N; i++ { io.Copy(io.Discard, NewReader(bytes.NewReader(buf1))) } }) } var levelTests = []struct { name string level int }{ {"Huffman", HuffmanOnly},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 09 19:12:23 UTC 2020 - 2.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)