- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for ReportAllocs (0.07 seconds)
-
src/bytes/buffer_test.go
b.Run(fmt.Sprintf("N%d", n), func(b *testing.B) { b.ReportAllocs() for i := 0; i < b.N; i++ { var bb Buffer for bb.Len() < n { bb.Write(block) } } }) } } func BenchmarkBufferAppendNoCopy(b *testing.B) { var bb Buffer bb.Grow(16 << 20) b.SetBytes(int64(bb.Available())) b.ReportAllocs() for i := 0; i < b.N; i++ { bb.Reset()
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Fri Nov 14 19:01:17 GMT 2025 - 19.4K bytes - Click Count (0) -
src/bytes/bytes_test.go
desc := fmt.Sprintf("%q %q %q %d", tt.in, tt.old, tt.new, tt.n) var ( in = []byte(tt.in) old = []byte(tt.old) new = []byte(tt.new) ) b.Run(desc, func(b *testing.B) { b.ReportAllocs() for b.Loop() { Replace(in, old, new, tt.n) } }) } } type TitleTest struct { in, out string } var TitleTests = []TitleTest{ {"", ""},
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Wed Mar 11 03:07:05 GMT 2026 - 62.9K bytes - Click Count (0) -
lib/fips140/v1.26.0.zip
func BenchmarkMul(b *testing.B) { b.Run("P224", func(b *testing.B) { v := new(fiat.P224Element).One() b.ReportAllocs() b.ResetTimer() for i := 0; i < b.N; i++ { v.Mul(v, v) } }) b.Run("P384", func(b *testing.B) { v := new(fiat.P384Element).One() b.ReportAllocs() b.ResetTimer() for i := 0; i < b.N; i++ { v.Mul(v, v) } }) b.Run("P521", func(b *testing.B) { v := new(fiat.P521Element).One() b.ReportAllocs() b.ResetTimer() for i := 0; i < b.N; i++ { v.Mul(v, v) } }) } func BenchmarkSquare(b *testing.B) {...
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Thu Jan 08 17:58:32 GMT 2026 - 660.3K bytes - Click Count (0)