]> Cypherpunks repositories - gostls13.git/commit
internal/fuzz: log average execs/sec since last log
authorKatie Hockman <katie@golang.org>
Tue, 5 Oct 2021 20:25:06 +0000 (16:25 -0400)
committerKatie Hockman <katie@golang.org>
Wed, 6 Oct 2021 16:11:20 +0000 (16:11 +0000)
commitaecf4b12e100dbf1ced36f981fbf00ae64d32af8
tree7a1bd2e6e5aedeba366e590a141a741ed8c5acd0
parent4d8db00641cc9ff4f44de7df9b8c4f4a4f9416ee
internal/fuzz: log average execs/sec since last log

This change also fixes a bug with calculating the
total interesting count. When fuzzing with an empty
corpus, the fuzzing engine adds an starting corpus
value in that run in order to start fuzzing. That
meant that the interesting total count was off by one:
it would start at 1, even though the cache was empty.
Added some tests for this as well.

Fixes #48787

Change-Id: I47acf96f0a0797214ebb24a95366d8460bf303bc
Reviewed-on: https://go-review.googlesource.com/c/go/+/354150
Trust: Katie Hockman <katie@golang.org>
Run-TryBot: Katie Hockman <katie@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
Reviewed-by: Roland Shoemaker <roland@golang.org>
src/cmd/go/testdata/script/test_fuzz.txt
src/internal/fuzz/fuzz.go