Completed TODO.
diff --git a/TODO b/TODO
index 8af1502..df90ae2 100644
--- a/TODO
+++ b/TODO
@@ -2,8 +2,6 @@
- Rewrite all code test first (including diamond pattern)
-- Benchmark code (go test -bench=.) (with GOMAXPROCS=2 if env GOMAXPROCS=1)
-
- Squeeze little bits of performance here and there by trying a few different things
e.g. pointers vs structs, padding, etc.
diff --git a/benchmark-channels/blocking_channel_test.go b/benchmark-channels/blocking_channel_test.go
index 949fab0..f2783ca 100644
--- a/benchmark-channels/blocking_channel_test.go
+++ b/benchmark-channels/blocking_channel_test.go
@@ -6,6 +6,7 @@
)
func BenchmarkBlockingOneGoroutine(b *testing.B) {
+ runtime.GOMAXPROCS(1)
benchmarkBlocking(b, 1)
}
diff --git a/benchmark-channels/non_blocking_channel_test.go b/benchmark-channels/non_blocking_channel_test.go
index 14b3e99..cdf3e66 100644
--- a/benchmark-channels/non_blocking_channel_test.go
+++ b/benchmark-channels/non_blocking_channel_test.go
@@ -6,6 +6,7 @@
)
func BenchmarkNonBlockingOneGoroutine(b *testing.B) {
+ runtime.GOMAXPROCS(1)
benchmarkNonBlocking(b, 1)
}