]> Cypherpunks repositories - gostls13.git/commit
[dev.fuzz] internal/fuzz: add more benchmarks for workers
authorJay Conrod <jayconrod@google.com>
Fri, 9 Jul 2021 22:24:15 +0000 (15:24 -0700)
committerJay Conrod <jayconrod@google.com>
Mon, 19 Jul 2021 21:11:25 +0000 (21:11 +0000)
commit3e06338c5ddb6cfd639015ba24655f9c9df87ef7
tree6a5c3e14fbcf8a708e7bb9264289895a9e4d3c5e
parentd14b7011a57fd7638dd4b67f1c2d031edf49f36e
[dev.fuzz] internal/fuzz: add more benchmarks for workers

* Benchmark{Marshal,Unmarshal}CorpusFile - measures time it takes to
  serialize and deserialize byte slices of various lengths.
* BenchmarkWorkerPing - spins up a worker and measures time it takes
  to ping it N times as a rough measure of RPC latency.
* BenchmarkWorkerFuzz - spins up a worker and measures time it takes
  to mutate an input and call a trivial fuzz function N times.

Also a few small fixes to make this easier.

Change-Id: Id7f2dc6c6c05005cf286f30e6cc92a54bf44fbf7
Reviewed-on: https://go-review.googlesource.com/c/go/+/333670
Trust: Jay Conrod <jayconrod@google.com>
Trust: Katie Hockman <katie@golang.org>
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Katie Hockman <katie@golang.org>
src/internal/fuzz/encoding_test.go
src/internal/fuzz/fuzz.go
src/internal/fuzz/worker.go
src/internal/fuzz/worker_test.go