You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for i := 0; i < b.N; i++ {
r.Seek(0, 0)
scanner := &Scanner{
br: byteReader{
data: buf[:0],
r: r,
},
}
scanner.Next() // add scanner.Next() here to escape panic
n := scanner.parseNumber(scanner.br.window(0)[0]) // panic was here
`
The text was updated successfully, but these errors were encountered:
tech10
added a commit
to tech10/json
that referenced
this issue
Apr 29, 2021
func BenchmarkParseNumber(b *testing.B) {
Hi Dave
I think a small change should be done for this func()
To see an issue quickly just run this line
go test -bench=.Parse.
`
// --------------------------------------------------------------------------------------------------------------
`
`
The text was updated successfully, but these errors were encountered: