mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
p2p/simulation: Correct timer reset
This commit is contained in:
parent
953273480c
commit
f32748a965
1 changed files with 1 additions and 2 deletions
|
|
@ -389,7 +389,6 @@ func BenchmarkMinimalService(b *testing.B) {
|
|||
func benchmarkMinimalServiceTmp(b *testing.B) {
|
||||
|
||||
// stop timer to discard setup time pollution
|
||||
b.StopTimer()
|
||||
args := strings.Split(b.Name(), "/")
|
||||
nodeCount, err := strconv.ParseInt(args[2], 10, 16)
|
||||
if err != nil {
|
||||
|
|
@ -429,7 +428,7 @@ func benchmarkMinimalServiceTmp(b *testing.B) {
|
|||
}
|
||||
|
||||
// ready, set, go
|
||||
b.StartTimer()
|
||||
b.ResetTimer()
|
||||
|
||||
// connect nodes in a ring
|
||||
for i, id := range ids {
|
||||
|
|
|
|||
Loading…
Reference in a new issue