- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 514 for startTimer (0.25 sec)
-
src/go/parser/performance_test.go
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() handle := fset.File(file.Package) resolveFile(file, handle, nil) }
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/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) -
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)