mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-26 09:54:19 +00:00
Tweak channel for performance test
This commit is contained in:
@@ -11,11 +11,11 @@ func BenchmarkSomething(b *testing.B) {
|
||||
numChecks := 100000
|
||||
keys := make([]string, numItems)
|
||||
for i := 0; i < numItems; i++ {
|
||||
keys[i] = RandStr(32)
|
||||
keys[i] = RandStr(100)
|
||||
}
|
||||
txs := make([]string, numChecks)
|
||||
for i := 0; i < numChecks; i++ {
|
||||
txs[i] = RandStr(32)
|
||||
txs[i] = RandStr(100)
|
||||
}
|
||||
b.StartTimer()
|
||||
|
||||
@@ -30,10 +30,5 @@ func BenchmarkSomething(b *testing.B) {
|
||||
counter++
|
||||
}
|
||||
}
|
||||
for _, tx := range txs {
|
||||
if _, ok := foo[tx]; ok {
|
||||
counter++
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user