From 9cef1afed06ef975209116e3dee5f6187ef16073 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Wed, 23 Oct 2019 16:07:08 +1100 Subject: Add PingPong test and benchmark --- bench_test.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bench_test.go') diff --git a/bench_test.go b/bench_test.go index f87477e..3dbdf73 100644 --- a/bench_test.go +++ b/bench_test.go @@ -125,3 +125,8 @@ func BenchmarkReadVarChannel(b *testing.B) { wg.Wait() } } + +func BenchmarkPingPong(b *testing.B) { + b.ReportAllocs() + testPingPong(b, b.N, func(string) {}) +} -- cgit v1.2.3