var benchmarkWorkerFlag … func TestMain(m *testing.M) { … } func BenchmarkWorkerFuzzOverhead(b *testing.B) { … } // BenchmarkWorkerPing acts as the coordinator and measures the time it takes // a worker to respond to N pings. This is a rough measure of our RPC latency. func BenchmarkWorkerPing(b *testing.B) { … } // BenchmarkWorkerFuzz acts as the coordinator and measures the time it takes // a worker to mutate a given input and call a trivial fuzz function N times. func BenchmarkWorkerFuzz(b *testing.B) { … } // newWorkerForTest creates and starts a worker process for testing or // benchmarking. The worker process calls RunFuzzWorker, which responds to // RPC messages until it's stopped. The process is stopped and cleaned up // automatically when the test is done. func newWorkerForTest(tb testing.TB) *worker { … } func runBenchmarkWorker() { … } func BenchmarkWorkerMinimize(b *testing.B) { … }