- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for benchmarkParseInt (0.12 sec)
-
src/strconv/atoi_test.go
t.Error("errors.Is failed, wanted success") } } func BenchmarkParseInt(b *testing.B) { b.Run("Pos", func(b *testing.B) { benchmarkParseInt(b, 1) }) b.Run("Neg", func(b *testing.B) { benchmarkParseInt(b, -1) }) } type benchCase struct { name string num int64 } func benchmarkParseInt(b *testing.B, neg int) { cases := []benchCase{ {"7bit", 1<<7 - 1},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 21 05:09:21 UTC 2023 - 17.1K bytes - Viewed (0)