MCPcopy
hub / github.com/tinylib/msgp / BenchmarkRead2048Bytes

Function BenchmarkRead2048Bytes

msgp/read_test.go:746–748  ·  view source on GitHub ↗

This particular case creates an object larger than the default read buffer size, so it's a decent indicator of worst-case performance.

(b *testing.B)

Source from the content-addressed store, hash-verified

744// read buffer size, so it's a decent
745// indicator of worst-case performance.
746func BenchmarkRead2048Bytes(b *testing.B) {
747 benchBytes(2048, b)
748}
749
750func TestReadString(t *testing.T) {
751 var buf bytes.Buffer

Callers

nothing calls this directly

Calls 1

benchBytesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…