- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 514 for startTimer (0.47 sec)
-
src/sort/sort_slices_benchmark_test.go
func BenchmarkSortInts(b *testing.B) { for i := 0; i < b.N; i++ { b.StopTimer() ints := makeRandomInts(N) b.StartTimer() Sort(IntSlice(ints)) } } func BenchmarkSlicesSortInts(b *testing.B) { for i := 0; i < b.N; i++ { b.StopTimer() ints := makeRandomInts(N) b.StartTimer() slices.Sort(ints) } } func BenchmarkSortIsSorted(b *testing.B) { for i := 0; i < b.N; i++ { b.StopTimer()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 08 22:59:40 UTC 2024 - 4K bytes - Viewed (0) -
platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/stats/DaemonRunningStats.java
import org.gradle.internal.time.Timer; @ServiceScope(Scope.Global.class) public class DaemonRunningStats { private final long startTime = System.currentTimeMillis(); private final Timer daemonTimer = Time.startTimer(); private final Timer currentBuildTimer = Time.startTimer(); private int buildCount; private long allBuildsTime; public int getBuildCount() { return buildCount; }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sun May 05 22:23:18 UTC 2024 - 1.7K bytes - Viewed (0) -
src/sort/sort_test.go
for i := 0; i < b.N; i++ { copy(data, unsorted) b.StartTimer() Stable(StringSlice(data)) b.StopTimer() } } func BenchmarkSortInt1K(b *testing.B) { b.StopTimer() for i := 0; i < b.N; i++ { data := make([]int, 1<<10) for i := 0; i < len(data); i++ { data[i] = i ^ 0x2cc } b.StartTimer() Ints(data) b.StopTimer() } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 07 19:41:04 UTC 2024 - 16.9K bytes - Viewed (0) -
src/regexp/all_test.go
x := strings.Repeat("x", 50) + "y" b.StopTimer() re := MustCompile("y") b.StartTimer() for i := 0; i < b.N; i++ { if !re.MatchString(x) { b.Fatalf("no match!") } } } func BenchmarkNotLiteral(b *testing.B) { x := strings.Repeat("x", 50) + "y" b.StopTimer() re := MustCompile(".y") b.StartTimer() for i := 0; i < b.N; i++ { if !re.MatchString(x) { b.Fatalf("no match!")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:36:03 UTC 2024 - 25.8K bytes - Viewed (0) -
src/encoding/json/bench_test.go
break } } panic("re-marshal code.json: different result") } } func BenchmarkCodeEncoder(b *testing.B) { b.ReportAllocs() if codeJSON == nil { b.StopTimer() codeInit() b.StartTimer() } b.RunParallel(func(pb *testing.PB) { enc := NewEncoder(io.Discard) for pb.Next() { if err := enc.Encode(&codeStruct); err != nil { b.Fatalf("Encode error: %v", err) } } })
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 15:00:17 UTC 2024 - 12.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/flowcontrol/metrics/timing_ratio_histogram_test.go
Name: "testhist", Help: "Me", Buckets: []float64{1, 2, 4, 8, 16, 32}, }, 1}) registry := compbasemetrics.NewKubeRegistry() registry.MustRegister(th) var x int b.StartTimer() for i := 0; i < b.N; i++ { delta := (i % 6) + 1 now = now.Add(time.Duration(delta) * time.Millisecond) clk.SetTime(now) th.Set(float64(x)) x = (x + i) % 60 } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jul 13 16:03:06 UTC 2022 - 8.7K bytes - Viewed (0) -
src/math/big/natconv_test.go
b.StopTimer() originalLeafSize := leafSize resetTable(cacheBase10.table[:]) leafSize = size b.StartTimer() for d := 1; d <= 10000; d *= 10 { b.StopTimer() var z nat z = z.expWW(Word(base), Word(d)) // build target number _ = z.utoa(base) // warm divisor cache b.StartTimer() for i := 0; i < b.N; i++ { _ = z.utoa(base) } } b.StopTimer()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 12:54:00 UTC 2019 - 16.8K bytes - Viewed (0) -
platforms/core-runtime/time/src/main/java/org/gradle/internal/time/Time.java
* For the gory details, see {@link MonotonicClock}. * * For timing activities, where correlation with the current time is not required, use {@link #startTimer()}. */ public static Clock clock() { return CLOCK; } /** * Replacement for System.currentTimeMillis(), based on {@link #clock()}. */
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 11 20:20:17 UTC 2024 - 2.2K bytes - Viewed (0) -
platforms/jvm/language-java/src/main/java/org/gradle/api/internal/tasks/compile/incremental/recomp/CurrentCompilationAccess.java
this.classSetAnalyzer = classSetAnalyzer; this.buildOperationExecutor = buildOperationExecutor; } public ClassSetAnalysisData analyzeOutputFolder(File outputFolder) { Timer clock = Time.startTimer(); ClassSetAnalysisData snapshot = classSetAnalyzer.analyzeOutputFolder(outputFolder); LOG.info("Class dependency analysis for incremental compilation took {}.", clock.getElapsed()); return snapshot;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Aug 28 11:40:18 UTC 2023 - 4.3K bytes - Viewed (0) -
pilot/pkg/config/memory/store_test.go
}, Namespace: "ns", }, Spec: &v1alpha3.ServiceEntry{ Hosts: []string{"www.foo.com"}, }, } for n := 0; n < b.N; n++ { b.StopTimer() s := initStore(b) b.StartTimer() // update one thousand times for i := 0; i < 1000; i++ { cfg.Name = strconv.Itoa(i) cfg.Spec.(*v1alpha3.ServiceEntry).Hosts[0] = cfg.Name if _, err := s.Update(cfg); err != nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Dec 26 01:14:27 UTC 2023 - 3.4K bytes - Viewed (0)