summary refs log tree commit diff stats
path: root/svc
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 /svc
parenta66bddc965bd0be6d2d501746f1da97736a87a50 (diff)
downloadgetwtxt-88dbd876a9635fa515ed29875816d05975272597.tar.gz
updated cacheUpdate bench
Diffstat (limited to 'svc')
-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()
ss/dwm/commit/Makefile?h=master&id=789717d109016279bd541efe5b72899fbcf68335'>789717d ^
650a1fb ^
dbf7e03 ^



1076f2b



42277b1 ^
5d3fd37 ^
a2d56f6 ^
99b126d ^

1076f2b
650a1fb ^
3d48f33 ^

1076f2b

4d55eee ^
db876f9 ^
dbf7e03 ^

4d55eee ^






dbf7e03 ^

4d55eee ^
dbf7e03 ^
4d55eee ^


dbf7e03 ^
ad4962c ^
4d55eee ^
dbf7e03 ^

4d55eee ^



dc5c070 ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60