diff options
author | Ben Morrison <ben@gbmor.dev> | 2019-06-13 20:15:30 -0400 |
---|---|---|
committer | Ben Morrison <ben@gbmor.dev> | 2019-06-13 20:15:30 -0400 |
commit | 88dbd876a9635fa515ed29875816d05975272597 (patch) | |
tree | 27c959af8edab396a8bc787151c6968759006257 /svc | |
parent | a66bddc965bd0be6d2d501746f1da97736a87a50 (diff) | |
download | getwtxt-88dbd876a9635fa515ed29875816d05975272597.tar.gz |
updated cacheUpdate bench
Diffstat (limited to 'svc')
-rw-r--r-- | svc/cache_test.go | 2 |
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() |