@@ -32,7 +32,7 @@ fn bench_wiki(c: &mut criterion::Criterion) {
3232 } ,
3333 vec![
3434 SearchBenchConf {
35- group_name: "proximity" ,
35+ group_name: "proximity criterion " ,
3636 queries: vec![
3737 "herald sings " ,
3838 "april paris " ,
@@ -43,7 +43,7 @@ fn bench_wiki(c: &mut criterion::Criterion) {
4343 ..SearchBenchConf :: BASE
4444 } ,
4545 SearchBenchConf {
46- group_name: "proximity set-based" ,
46+ group_name: "proximity criterion set-based" ,
4747 queries: vec![
4848 "herald sings " ,
4949 "april paris " ,
@@ -55,7 +55,7 @@ fn bench_wiki(c: &mut criterion::Criterion) {
5555 ..SearchBenchConf :: BASE
5656 } ,
5757 SearchBenchConf {
58- group_name: "proximity iterative" ,
58+ group_name: "proximity criterion iterative" ,
5959 queries: vec![
6060 "herald sings " ,
6161 "april paris " ,
@@ -75,7 +75,7 @@ fn bench_wiki(c: &mut criterion::Criterion) {
7575 } ,
7676 vec![
7777 SearchBenchConf {
78- group_name: "typo" ,
78+ group_name: "typo criterion " ,
7979 queries: vec![
8080 "migrosoft " ,
8181 "linax " ,
@@ -98,7 +98,7 @@ fn bench_wiki(c: &mut criterion::Criterion) {
9898 } ,
9999 vec![
100100 SearchBenchConf {
101- group_name: "words" ,
101+ group_name: "words criterion " ,
102102 queries: vec![
103103 "the black saint and the sinner lady and the good doggo " , // four words to pop, 27 results
104104 "Kameya Tokujirō mingus monk " , // two words to pop, 55
@@ -132,6 +132,7 @@ fn bench_wiki(c: &mut criterion::Criterion) {
132132 "japan " ,
133133 "france " ,
134134 "film " ,
135+ "the black saint and the sinner lady and the" ,
135136 ] ,
136137 ..SearchBenchConf :: BASE
137138 } ,
@@ -146,6 +147,7 @@ fn bench_wiki(c: &mut criterion::Criterion) {
146147 "japan" ,
147148 "france" ,
148149 "film" ,
150+ "the black saint and the sinner lady and the" ,
149151 ] ,
150152 criterion_implementation_strategy: CriterionImplementationStrategy :: OnlySetBased ,
151153 ..SearchBenchConf :: BASE
@@ -161,6 +163,7 @@ fn bench_wiki(c: &mut criterion::Criterion) {
161163 "\" japan\" " ,
162164 "\" france\" " ,
163165 "\" film\" " ,
166+ "\" the black saint and the sinner lady\" and the" ,
164167 ] ,
165168 ..SearchBenchConf :: BASE
166169 } ,
@@ -202,44 +205,73 @@ fn bench_wiki(c: &mut criterion::Criterion) {
202205 criterion_implementation_strategy: CriterionImplementationStrategy :: OnlyIterative ,
203206 ..SearchBenchConf :: BASE
204207 } ,
205- // SearchBenchConf {
206- // group_name: "words + prefix search",
207- // queries: vec![
208- // "t", // 453k results
209- // "c", // 405k
210- // "g", // 318k
211- // "j", // 227k
212- // "q", // 71k
213- // "x", // 17k
214- // ],
215- // ..SearchBenchConf::BASE
216- // },
217- // SearchBenchConf {
218- // group_name: "words + prefix search set-based",
219- // queries: vec![
220- // "t", // 453k results
221- // "c", // 405k
222- // "g", // 318k
223- // "j", // 227k
224- // "q", // 71k
225- // "x", // 17k
226- // ],
227- // criterion_implementation_strategy: CriterionImplementationStrategy::OnlySetBased,
228- // ..SearchBenchConf::BASE
229- // },
230- // SearchBenchConf {
231- // group_name: "words + prefix search iterative",
232- // queries: vec![
233- // "t", // 453k results
234- // "c", // 405k
235- // "g", // 318k
236- // "j", // 227k
237- // "q", // 71k
238- // "x", // 17k
239- // ],
240- // criterion_implementation_strategy: CriterionImplementationStrategy::OnlyIterative,
241- // ..SearchBenchConf::BASE
242- // },
208+ SearchBenchConf {
209+ group_name: "words + prefix search" ,
210+ queries: vec![
211+ "the love of a new f" ,
212+ "aesthetic sense of w" ,
213+ "aesthetic sense of wo" ,
214+ "once upon a time in ho" ,
215+ "once upon a time in hol" ,
216+ "once upon a time in hollywood a" ,
217+ "belgium ardennes festival l" ,
218+ ] ,
219+ ..SearchBenchConf :: BASE
220+ } ,
221+ SearchBenchConf {
222+ group_name: "words + prefix search set-based" ,
223+ queries: vec![
224+ "the love of a new f" ,
225+ "aesthetic sense of w" ,
226+ "aesthetic sense of wo" ,
227+ "once upon a time in ho" ,
228+ "once upon a time in hol" ,
229+ "once upon a time in hollywood a" ,
230+ "belgium ardennes festival l" ,
231+ ] ,
232+ criterion_implementation_strategy: CriterionImplementationStrategy :: OnlySetBased ,
233+ ..SearchBenchConf :: BASE
234+ } ,
235+ SearchBenchConf {
236+ group_name: "words + prefix search iterative" ,
237+ queries: vec![
238+ "the love of a new f" ,
239+ "aesthetic sense of w" ,
240+ "aesthetic sense of wo" ,
241+ "once upon a time in ho" ,
242+ "once upon a time in hol" ,
243+ "once upon a time in hollywood a" ,
244+ "belgium ardennes festival l" ,
245+ ] ,
246+ criterion_implementation_strategy: CriterionImplementationStrategy :: OnlyIterative ,
247+ ..SearchBenchConf :: BASE
248+ } ,
249+ SearchBenchConf {
250+ group_name: "10x 'a' or 'b'" ,
251+ queries: vec![
252+ "a a a a a a a a a a" ,
253+ "b b b b b b b b b b" ,
254+ ] ,
255+ ..SearchBenchConf :: BASE
256+ } ,
257+ SearchBenchConf {
258+ group_name: "10x 'a' or 'b' - set-based" ,
259+ queries: vec![
260+ "a a a a a a a a a a" ,
261+ "b b b b b b b b b b" ,
262+ ] ,
263+ criterion_implementation_strategy: CriterionImplementationStrategy :: OnlySetBased ,
264+ ..SearchBenchConf :: BASE
265+ } ,
266+ SearchBenchConf {
267+ group_name: "10x 'a' or 'b' - iterative" ,
268+ queries: vec![
269+ "a a a a a a a a a a" ,
270+ "b b b b b b b b b b" ,
271+ ] ,
272+ criterion_implementation_strategy: CriterionImplementationStrategy :: OnlyIterative ,
273+ ..SearchBenchConf :: BASE
274+ } ,
243275 ]
244276 )
245277 ] ;
0 commit comments