MCPcopy
hub / github.com/valyala/fasthttp / BenchmarkWriteHexInt

Function BenchmarkWriteHexInt

bytesconv_timing_test.go:68–83  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

66}
67
68func BenchmarkWriteHexInt(b *testing.B) {
69 b.RunParallel(func(pb *testing.PB) {
70 var w bytebufferpool.ByteBuffer
71 bw := bufio.NewWriter(&w)
72 i := 0
73 for pb.Next() {
74 writeHexInt(bw, i) //nolint:errcheck
75 i++
76 if i > 0x7fffffff {
77 i = 0
78 }
79 w.Reset()
80 bw.Reset(&w)
81 }
82 })
83}
84
85func BenchmarkParseUint(b *testing.B) {
86 b.RunParallel(func(pb *testing.PB) {

Callers

nothing calls this directly

Calls 2

ResetMethod · 0.95
writeHexIntFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…