@@ -4,94 +4,122 @@ go test -v -bench Benchmark_Or_ -benchmem -run ^$ github.com/weaviate/sroar
4
4
elements: 7
5
5
6
6
Benchmark_Or_Old
7
- Benchmark_Or_Old-10 124358 8744 ns/op 2240 B/op 8 allocs/op
7
+ Benchmark_Or_Old-10 137358 8619 ns/op 2240 B/op 8 allocs/op
8
8
Benchmark_Or_OldFn
9
- Benchmark_Or_OldFn-10 64314 19737 ns/op 35520 B/op 178 allocs/op
9
+ Benchmark_Or_OldFn-10 63716 18401 ns/op 35520 B/op 178 allocs/op
10
10
Benchmark_Or_Alt
11
- Benchmark_Or_Alt-10 193574 5896 ns/op 2240 B/op 8 allocs/op
11
+ Benchmark_Or_Alt-10 193772 5872 ns/op 2240 B/op 8 allocs/op
12
12
Benchmark_Or_AltFn
13
- Benchmark_Or_AltFn-10 75320 16180 ns/op 49984 B/op 208 allocs/op
13
+ Benchmark_Or_AltFn-10 71002 16506 ns/op 49984 B/op 208 allocs/op
14
+ Benchmark_Or_Buf
15
+ Benchmark_Or_Buf-10 666516 1710 ns/op 2240 B/op 8 allocs/op
16
+ Benchmark_Or_BufFn
17
+ Benchmark_Or_BufFn-10 98116 11774 ns/op 49984 B/op 208 allocs/op
14
18
15
19
16
20
17
21
18
22
elements: 67
19
23
20
24
Benchmark_Or_Old
21
- Benchmark_Or_Old-10 73114 16408 ns/op 7936 B/op 12 allocs/op
25
+ Benchmark_Or_Old-10 71934 15913 ns/op 7936 B/op 12 allocs/op
22
26
Benchmark_Or_OldFn
23
- Benchmark_Or_OldFn-10 45784 25726 ns/op 60032 B/op 210 allocs/op
27
+ Benchmark_Or_OldFn-10 45294 26045 ns/op 60032 B/op 210 allocs/op
24
28
Benchmark_Or_Alt
25
- Benchmark_Or_Alt-10 80880 14287 ns/op 4864 B/op 10 allocs/op
29
+ Benchmark_Or_Alt-10 81104 14267 ns/op 4864 B/op 10 allocs/op
26
30
Benchmark_Or_AltFn
27
- Benchmark_Or_AltFn-10 44790 26830 ns/op 66112 B/op 209 allocs/op
31
+ Benchmark_Or_AltFn-10 44512 26713 ns/op 66112 B/op 209 allocs/op
32
+ Benchmark_Or_Buf
33
+ Benchmark_Or_Buf-10 152304 7368 ns/op 4864 B/op 10 allocs/op
34
+ Benchmark_Or_BufFn
35
+ Benchmark_Or_BufFn-10 59793 19780 ns/op 66112 B/op 209 allocs/op
28
36
29
37
30
38
31
39
32
40
elements: 567
33
41
34
42
Benchmark_Or_Old
35
- Benchmark_Or_Old-10 16183 72031 ns/op 36928 B/op 12 allocs/op
43
+ Benchmark_Or_Old-10 16530 70862 ns/op 36928 B/op 12 allocs/op
36
44
Benchmark_Or_OldFn
37
- Benchmark_Or_OldFn-10 9369 109007 ns/op 388032 B/op 248 allocs/op
45
+ Benchmark_Or_OldFn-10 11068 109576 ns/op 388032 B/op 248 allocs/op
38
46
Benchmark_Or_Alt
39
- Benchmark_Or_Alt-10 16832 70811 ns/op 36928 B/op 12 allocs/op
47
+ Benchmark_Or_Alt-10 16742 71016 ns/op 36928 B/op 12 allocs/op
40
48
Benchmark_Or_AltFn
41
- Benchmark_Or_AltFn-10 9037 117504 ns/op 566656 B/op 248 allocs/op
49
+ Benchmark_Or_AltFn-10 8902 117368 ns/op 566656 B/op 248 allocs/op
50
+ Benchmark_Or_Buf
51
+ Benchmark_Or_Buf-10 18942 63016 ns/op 36928 B/op 12 allocs/op
52
+ Benchmark_Or_BufFn
53
+ Benchmark_Or_BufFn-10 9580 109518 ns/op 566656 B/op 248 allocs/op
42
54
43
55
44
56
45
57
46
58
elements: 4567
47
59
48
60
Benchmark_Or_Old
49
- Benchmark_Or_Old-10 8365 125783 ns/op 136512 B/op 10 allocs/op
61
+ Benchmark_Or_Old-10 10142 123281 ns/op 136512 B/op 10 allocs/op
50
62
Benchmark_Or_OldFn
51
- Benchmark_Or_OldFn-10 2625 435354 ns/op 2429763 B/op 248 allocs/op
63
+ Benchmark_Or_OldFn-10 2654 435234 ns/op 2429761 B/op 248 allocs/op
52
64
Benchmark_Or_Alt
53
- Benchmark_Or_Alt-10 9212 121773 ns/op 136512 B/op 10 allocs/op
65
+ Benchmark_Or_Alt-10 9439 121141 ns/op 136512 B/op 10 allocs/op
54
66
Benchmark_Or_AltFn
55
- Benchmark_Or_AltFn-10 3561 312373 ns/op 2740417 B/op 248 allocs/op
67
+ Benchmark_Or_AltFn-10 3621 316071 ns/op 2740417 B/op 248 allocs/op
68
+ Benchmark_Or_Buf
69
+ Benchmark_Or_Buf-10 9802 114179 ns/op 136512 B/op 10 allocs/op
70
+ Benchmark_Or_BufFn
71
+ Benchmark_Or_BufFn-10 3571 321915 ns/op 2740417 B/op 248 allocs/op
56
72
57
73
58
74
59
75
60
76
elements: 34567
61
77
62
78
Benchmark_Or_Old
63
- Benchmark_Or_Old-10 4281 278046 ns/op 109376 B/op 8 allocs/op
79
+ Benchmark_Or_Old-10 4275 279616 ns/op 109376 B/op 8 allocs/op
64
80
Benchmark_Or_OldFn
65
- Benchmark_Or_OldFn-10 2444 470096 ns/op 2876097 B/op 248 allocs/op
81
+ Benchmark_Or_OldFn-10 2479 475768 ns/op 2876098 B/op 248 allocs/op
66
82
Benchmark_Or_Alt
67
- Benchmark_Or_Alt-10 4057 277929 ns/op 109376 B/op 8 allocs/op
83
+ Benchmark_Or_Alt-10 4068 284528 ns/op 109376 B/op 8 allocs/op
68
84
Benchmark_Or_AltFn
69
- Benchmark_Or_AltFn-10 2379 498199 ns/op 2876097 B/op 248 allocs/op
85
+ Benchmark_Or_AltFn-10 2395 477734 ns/op 2876098 B/op 248 allocs/op
86
+ Benchmark_Or_Buf
87
+ Benchmark_Or_Buf-10 4262 272442 ns/op 109376 B/op 8 allocs/op
88
+ Benchmark_Or_BufFn
89
+ Benchmark_Or_BufFn-10 2414 470769 ns/op 2876100 B/op 248 allocs/op
70
90
71
91
72
92
73
93
74
94
elements: 234567
75
95
76
96
Benchmark_Or_Old
77
- Benchmark_Or_Old-10 3514 331398 ns/op 109377 B/op 8 allocs/op
97
+ Benchmark_Or_Old-10 3523 345830 ns/op 109377 B/op 8 allocs/op
78
98
Benchmark_Or_OldFn
79
- Benchmark_Or_OldFn-10 2322 511811 ns/op 2876098 B/op 248 allocs/op
99
+ Benchmark_Or_OldFn-10 2230 545129 ns/op 2876100 B/op 248 allocs/op
80
100
Benchmark_Or_Alt
81
- Benchmark_Or_Alt-10 10000 114039 ns/op 109376 B/op 8 allocs/op
101
+ Benchmark_Or_Alt-10 10000 114571 ns/op 109376 B/op 8 allocs/op
82
102
Benchmark_Or_AltFn
83
- Benchmark_Or_AltFn-10 3792 333178 ns/op 2876096 B/op 248 allocs/op
84
-
103
+ Benchmark_Or_AltFn-10 3700 337825 ns/op 2876097 B/op 248 allocs/op
104
+ Benchmark_Or_Buf
105
+ Benchmark_Or_Buf-10 10000 106827 ns/op 109376 B/op 8 allocs/op
106
+ Benchmark_Or_BufFn
107
+ Benchmark_Or_BufFn-10 3768 320828 ns/op 2876096 B/op 248 allocs/op
85
108
86
109
87
110
88
111
elements: 1234567
89
112
113
+ cpu: Apple M1 Pro
90
114
Benchmark_Or_Old
91
- Benchmark_Or_Old-10 14146 83943 ns/op 109376 B/op 8 allocs/op
115
+ Benchmark_Or_Old-10 14138 84844 ns/op 109376 B/op 8 allocs/op
92
116
Benchmark_Or_OldFn
93
- Benchmark_Or_OldFn-10 3848 319742 ns/op 2876096 B/op 248 allocs/op
117
+ Benchmark_Or_OldFn-10 4010 320525 ns/op 2876096 B/op 248 allocs/op
94
118
Benchmark_Or_Alt
95
- Benchmark_Or_Alt-10 31942 37684 ns/op 109376 B/op 8 allocs/op
119
+ Benchmark_Or_Alt-10 31675 37298 ns/op 109376 B/op 8 allocs/op
96
120
Benchmark_Or_AltFn
97
- Benchmark_Or_AltFn-10 4438 271606 ns/op 2876096 B/op 248 allocs/op
121
+ Benchmark_Or_AltFn-10 4713 263059 ns/op 2876096 B/op 248 allocs/op
122
+ Benchmark_Or_Buf
123
+ Benchmark_Or_Buf-10 39303 30316 ns/op 109376 B/op 8 allocs/op
124
+ Benchmark_Or_BufFn
125
+ Benchmark_Or_BufFn-10 4801 262440 ns/op 2876096 B/op 248 allocs/op
0 commit comments