Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ReportAllocs (0.24 sec)

  1. 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()
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Fri Nov 14 19:01:17 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  2. 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{
    	{"", ""},
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Tue Dec 23 23:54:14 UTC 2025
    - 62.9K bytes
    - Viewed (0)
  3. lib/fips140/v1.1.0-rc1.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) {...
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Thu Dec 11 16:27:41 UTC 2025
    - 663K bytes
    - Viewed (0)
Back to top