- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for benchmarkRead (0.3 sec)
-
src/encoding/csv/reader_test.go
"x","y","z","" "x","y","","" "x","","","" "","","","" ` func BenchmarkRead(b *testing.B) { benchmarkRead(b, nil, benchmarkCSVData) } func BenchmarkReadWithFieldsPerRecord(b *testing.B) { benchmarkRead(b, func(r *Reader) { r.FieldsPerRecord = 4 }, benchmarkCSVData) } func BenchmarkReadWithoutFieldsPerRecord(b *testing.B) { benchmarkRead(b, func(r *Reader) { r.FieldsPerRecord = -1 }, benchmarkCSVData) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 14 04:25:13 UTC 2022 - 19.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/envelope/envelope_test.go
benchmarkRead(b, envelopeTransformer, 1024) } func BenchmarkAESCBCRead(b *testing.B) { block, err := aes.NewCipher(bytes.Repeat([]byte("a"), 32)) if err != nil { b.Fatal(err) } aesCBCTransformer := aestransformer.NewCBCTransformer(block) benchmarkRead(b, aesCBCTransformer, 1024) } func BenchmarkEnvelopeGCMRead(b *testing.B) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 14 14:23:50 UTC 2023 - 10.1K bytes - Viewed (0) -
pkg/api/testing/serialization_test.go
t.Fatalf("%s: did not match after frame decoding: %s", info.MediaType, cmp.Diff(secret, outEvent.Object.Object)) } } } const benchmarkSeed = 100 func benchmarkItems(b *testing.B) []v1.Pod { apiObjectFuzzer := fuzzer.FuzzerFor(FuzzerFuncs, rand.NewSource(benchmarkSeed), legacyscheme.Codecs) items := make([]v1.Pod, 10) for i := range items { var pod api.Pod apiObjectFuzzer.Fuzz(&pod)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Sep 25 11:04:08 UTC 2023 - 19.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/responsewriters/writers_test.go
"k8s.io/apimachinery/pkg/util/uuid" "k8s.io/apiserver/pkg/features" utilfeature "k8s.io/apiserver/pkg/util/feature" featuregatetesting "k8s.io/component-base/featuregate/testing" ) const benchmarkSeed = 100 func TestSerializeObjectParallel(t *testing.T) { largePayload := bytes.Repeat([]byte("0123456789abcdef"), defaultGzipThresholdBytes/16+1) type test struct { name string mediaType string
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 15.7K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/FuturesGetChecked.java
* * Ideally we'd have a real eviction policy, but until we see a problem in practice, I hope * that this will suffice. I have not even benchmarked with different size limits. */ if (validClasses.size() > 1000) { validClasses.clear(); } validClasses.add(new WeakReference<Class<? extends Exception>>(exceptionClass));
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 22 17:40:56 UTC 2024 - 11.9K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/FuturesGetChecked.java
* * Ideally we'd have a real eviction policy, but until we see a problem in practice, I hope * that this will suffice. I have not even benchmarked with different size limits. */ if (validClasses.size() > 1000) { validClasses.clear(); } validClasses.add(new WeakReference<Class<? extends Exception>>(exceptionClass));
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Dec 14 20:35:03 UTC 2023 - 10.3K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Ascii.java
* between {@code 'a'} and {@code 'z'} inclusive. All others (including non-ASCII characters) * return {@code false}. */ public static boolean isLowerCase(char c) { // Note: This was benchmarked against the alternate expression "(char)(c - 'a') < 26" (Nov '13) // and found to perform at least as well, or better. return (c >= 'a') && (c <= 'z'); } /**
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Jul 19 15:43:07 UTC 2021 - 21.6K bytes - Viewed (0) -
guava/src/com/google/common/base/Ascii.java
* between {@code 'a'} and {@code 'z'} inclusive. All others (including non-ASCII characters) * return {@code false}. */ public static boolean isLowerCase(char c) { // Note: This was benchmarked against the alternate expression "(char)(c - 'a') < 26" (Nov '13) // and found to perform at least as well, or better. return (c >= 'a') && (c <= 'z'); } /**
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Jul 19 15:43:07 UTC 2021 - 21.6K bytes - Viewed (0) -
src/math/rand/rand_test.go
r := New(NewSource(1)) for n := b.N; n > 0; n-- { r.Shuffle(52, func(i, j int) { if i < 0 || i >= 52 || j < 0 || j >= 52 { b.Fatalf("bad swap(%d, %d)", i, j) } }) } } func BenchmarkRead3(b *testing.B) { r := New(NewSource(1)) buf := make([]byte, 3) b.ResetTimer() for n := b.N; n > 0; n-- { r.Read(buf) } } func BenchmarkRead64(b *testing.B) { r := New(NewSource(1))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 18:42:28 UTC 2024 - 16.9K bytes - Viewed (0) -
src/unicode/utf8/utf8_test.go
} } func BenchmarkDecodeJapaneseRune(b *testing.B) { nihon := []byte("本") for i := 0; i < b.N; i++ { DecodeRune(nihon) } } // boolSink is used to reference the return value of benchmarked // functions to avoid dead code elimination. var boolSink bool func BenchmarkFullRune(b *testing.B) { benchmarks := []struct { name string data []byte }{ {"ASCII", []byte("a")},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 07 06:17:15 UTC 2022 - 16.2K bytes - Viewed (0)