mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-20 15:04:22 +00:00
use fmt.Sprint for string to int conversion
This commit is contained in:
@@ -60,10 +60,10 @@ func TestContains(t *testing.T) {
|
||||
func BenchmarkCMapHas(b *testing.B) {
|
||||
m := NewCMap()
|
||||
for i := 0; i < 1000; i++ {
|
||||
m.Set(string(i), i)
|
||||
m.Set(fmt.Sprint(i), i)
|
||||
}
|
||||
b.ResetTimer()
|
||||
for i := 0; i < b.N; i++ {
|
||||
m.Has(string(i))
|
||||
m.Has(fmt.Sprint(i))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user