- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for RunParallel (0.05 sec)
-
src/archive/zip/writer_test.go
// Run once and then reset the timer. // This effectively discards the very large initial flate setup cost, // as well as the initialization of bigBuf. runOnce(&bytes.Buffer{}) b.ResetTimer() b.RunParallel(func(pb *testing.PB) { var buf bytes.Buffer for pb.Next() { runOnce(&buf) } }) } func writeTestsToFS(tests []WriteTest) fs.FS { fsys := fstest.MapFS{} for _, wt := range tests {
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Tue Jan 28 04:20:09 UTC 2025 - 14.4K bytes - Viewed (0) -
src/archive/zip/zip_test.go
testZip64(b, 1<<26) } } func BenchmarkZip64TestSizes(b *testing.B) { for _, size := range []int64{1 << 12, 1 << 20, 1 << 26} { b.Run(fmt.Sprint(size), func(b *testing.B) { b.RunParallel(func(pb *testing.PB) { for pb.Next() { testZip64(b, size) } }) }) } } func TestSuffixSaver(t *testing.T) { const keep = 10 ss := &suffixSaver{keep: keep}
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 19.6K bytes - Viewed (0) -
api/go1.3.txt
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Mon Jun 02 02:45:00 UTC 2014 - 117K bytes - Viewed (0) -
lib/fips140/v1.0.0.zip
can be found in the LICENSE file. package drbg import ( "crypto/internal/fips140" "testing" ) func BenchmarkDBRG(b *testing.B) { old := fips140.Enabled defer func() { fips140.Enabled = old }() fips140.Enabled = true const N = 64 b.SetBytes(N) b.RunParallel(func(pb *testing.PB) { buf := make([]byte, N) for pb.Next() { Read(buf) } }) } golang.org/fips140@v1.0.0/fips140/v1.0.0/ecdh/cast.go // Copyright 2024 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style //...
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Wed Jan 29 15:10:35 UTC 2025 - 635K bytes - Viewed (0)