- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for benchmarkRead (0.13 sec)
-
src/time/time_test.go
for i := 0; i < b.N; i++ { _ = t.Second() } } func BenchmarkDate(b *testing.B) { t := Now() for i := 0; i < b.N; i++ { _, _, _ = t.Date() } } func BenchmarkYear(b *testing.B) { t := Now() for i := 0; i < b.N; i++ { _ = t.Year() } } func BenchmarkYearDay(b *testing.B) { t := Now() for i := 0; i < b.N; i++ { _ = t.YearDay() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:13:47 UTC 2024 - 56.5K bytes - Viewed (0) -
cmd/object-api-listobjects_test.go
bucket := "ls-benchmark-bucket" // Create a bucket. err := obj.MakeBucket(context.Background(), bucket, MakeBucketOptions{}) if err != nil { b.Fatal(err) } // Insert objects to be listed and benchmarked later. for i := 0; i < 20000; i++ { key := "obj" + strconv.Itoa(i) _, err = obj.PutObject(context.Background(), bucket, key, mustGetPutObjReader(b, bytes.NewBufferString(key), int64(len(key)), "", ""), ObjectOptions{})
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed May 01 11:07:40 UTC 2024 - 73.1K bytes - Viewed (0) -
src/math/all_test.go
// Global exported variables are used to store the // return values of functions measured in the benchmarks. // Storing the results in these variables prevents the compiler // from completely optimizing the benchmarked functions away. var ( GlobalI int GlobalB bool GlobalF float64 ) func BenchmarkAcos(b *testing.B) { x := 0.0 for i := 0; i < b.N; i++ { x = Acos(.5) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jul 07 17:39:26 UTC 2023 - 86.8K bytes - Viewed (0)