Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for BenchmarkAppendUint16 (0.25 sec)

  1. src/encoding/binary/binary_test.go

    	}
    	b.StopTimer()
    }
    
    func BenchmarkPutUint16(b *testing.B) {
    	b.SetBytes(2)
    	for i := 0; i < b.N; i++ {
    		BigEndian.PutUint16(putbuf[:2], uint16(i))
    	}
    }
    
    func BenchmarkAppendUint16(b *testing.B) {
    	b.SetBytes(2)
    	for i := 0; i < b.N; i++ {
    		putbuf = BigEndian.AppendUint16(putbuf[:0], uint16(i))
    	}
    }
    
    func BenchmarkPutUint32(b *testing.B) {
    	b.SetBytes(4)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:16:18 UTC 2024
    - 25.4K bytes
    - Viewed (0)
Back to top