summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2019-06-13 20:15:30 -0400
committerBen Morrison <ben@gbmor.dev>2019-06-13 20:15:30 -0400
commit88dbd876a9635fa515ed29875816d05975272597 (patch)
tree27c959af8edab396a8bc787151c6968759006257
parenta66bddc965bd0be6d2d501746f1da97736a87a50 (diff)
downloadgetwtxt-88dbd876a9635fa515ed29875816d05975272597.tar.gz
updated cacheUpdate bench
-rw-r--r--svc/cache_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/svc/cache_test.go b/svc/cache_test.go
index 04eabb8..f167913 100644
--- a/svc/cache_test.go
+++ b/svc/cache_test.go
@@ -65,7 +65,7 @@ func Benchmark_cacheUpdate(b *testing.B) {
 		// make sure it's pulling new statuses
 		// half the time so we get a good idea
 		// of its performance in both cases.
-		if i > 2 && i%2 == 0 {
+		if i > (b.N/2) && i%2 == 0 {
 			b.StopTimer()
 			killStatuses()
 			b.StartTimer()