From 19430204ede6f8243ab146c1e6fc1d0ae60f9a91 Mon Sep 17 00:00:00 2001
From: Anmol Sethi <hi@nhooyr.io>
Date: Wed, 24 Apr 2019 20:25:57 -0400
Subject: [PATCH] Improve benchmark code

---
 bench_test.go         | 12 ++++++------
 ci/test/entrypoint.sh |  2 ++
 2 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/bench_test.go b/bench_test.go
index e631c61..a97341c 100644
--- a/bench_test.go
+++ b/bench_test.go
@@ -85,14 +85,14 @@ func benchConn(b *testing.B, stream bool) {
 			})
 		}
 
-		// runN(32)
-		// runN(128)
-		// runN(512)
-		// runN(1024)
+		runN(32)
+		runN(128)
+		runN(512)
+		runN(1024)
 		runN(4096)
 		runN(16384)
-		// runN(65536)
-		// runN(131072)
+		runN(65536)
+		runN(131072)
 
 		c.Close(websocket.StatusNormalClosure, "")
 	})
diff --git a/ci/test/entrypoint.sh b/ci/test/entrypoint.sh
index d076fe0..2a39593 100755
--- a/ci/test/entrypoint.sh
+++ b/ci/test/entrypoint.sh
@@ -5,9 +5,11 @@ source ci/lib.sh || exit 1
 mkdir -p profs
 
 set +x
+echo
 echo "this step includes benchmarks for race detection and coverage purposes
 but the numbers will be misleading. please see the bench step for more
 accurate numbers"
+echo
 set -x
 
 go test -race -coverprofile=profs/coverage --vet=off -bench=. ./...
-- 
GitLab