forked from julienschmidt/go-http-routing-benchmark
-
Notifications
You must be signed in to change notification settings - Fork 13
/
gplus_test.go
693 lines (667 loc) · 22.8 KB
/
gplus_test.go
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
// Copyright 2013 Julien Schmidt. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file.
package main
import (
"net/http"
"testing"
)
// Google+
// https://developers.google.com/+/api/latest/
// (in reality this is just a subset of a much larger API)
var gplusAPI = []route{
// People
{"GET", "/people/:userId"},
{"GET", "/people"},
{"GET", "/activities/:activityId/people/:collection"},
{"GET", "/people/:userId/people/:collection"},
{"GET", "/people/:userId/openIdConnect"},
// Activities
{"GET", "/people/:userId/activities/:collection"},
{"GET", "/activities/:activityId"},
{"GET", "/activities"},
// Comments
{"GET", "/activities/:activityId/comments"},
{"GET", "/comments/:commentId"},
// Moments
{"POST", "/people/:userId/moments/:collection"},
{"GET", "/people/:userId/moments/:collection"},
{"DELETE", "/moments/:id"},
}
var (
gplusAce http.Handler
gplusAero http.Handler
gplusBear http.Handler
gplusBeego http.Handler
gplusBone http.Handler
gplusChi http.Handler
gplusCloudyKitRouter http.Handler
gplusDenco http.Handler
gplusEcho http.Handler
gplusGin http.Handler
gplusGocraftWeb http.Handler
gplusGoji http.Handler
gplusGojiv2 http.Handler
gplusGoJsonRest http.Handler
gplusGoRestful http.Handler
gplusGorillaMux http.Handler
gplusGowwwRouter http.Handler
gplusHttpRouter http.Handler
gplusHttpTreeMux http.Handler
gplusKocha http.Handler
gplusLARS http.Handler
gplusMacaron http.Handler
gplusMartini http.Handler
gplusPat http.Handler
gplusPossum http.Handler
gplusR2router http.Handler
gplusRevel http.Handler
gplusRivet http.Handler
gplusTango http.Handler
gplusTigerTonic http.Handler
gplusTraffic http.Handler
gplusVulcan http.Handler
// gplusZeus http.Handler
)
func init() {
println("#GPlusAPI Routes:", len(gplusAPI))
calcMem("Ace", func() {
gplusAce = loadAce(gplusAPI)
})
calcMem("Aero", func() {
gplusAero = loadAero(gplusAPI)
})
calcMem("Bear", func() {
gplusBear = loadBear(gplusAPI)
})
calcMem("Beego", func() {
gplusBeego = loadBeego(gplusAPI)
})
calcMem("Bone", func() {
gplusBone = loadBone(gplusAPI)
})
calcMem("Chi", func() {
gplusChi = loadChi(gplusAPI)
})
// calcMem("CloudyKitRouter", func() {
// gplusCloudyKitRouter = loadCloudyKitRouter(gplusAPI)
// })
calcMem("Denco", func() {
gplusDenco = loadDenco(gplusAPI)
})
calcMem("Echo", func() {
gplusEcho = loadEcho(gplusAPI)
})
calcMem("Gin", func() {
gplusGin = loadGin(gplusAPI)
})
calcMem("GocraftWeb", func() {
gplusGocraftWeb = loadGocraftWeb(gplusAPI)
})
calcMem("Goji", func() {
gplusGoji = loadGoji(gplusAPI)
})
calcMem("Gojiv2", func() {
gplusGojiv2 = loadGojiv2(gplusAPI)
})
calcMem("GoJsonRest", func() {
gplusGoJsonRest = loadGoJsonRest(gplusAPI)
})
calcMem("GoRestful", func() {
gplusGoRestful = loadGoRestful(gplusAPI)
})
calcMem("GorillaMux", func() {
gplusGorillaMux = loadGorillaMux(gplusAPI)
})
calcMem("GowwwRouter", func() {
gplusGowwwRouter = loadGowwwRouter(gplusAPI)
})
calcMem("HttpRouter", func() {
gplusHttpRouter = loadHttpRouter(gplusAPI)
})
calcMem("HttpTreeMux", func() {
gplusHttpTreeMux = loadHttpTreeMux(gplusAPI)
})
calcMem("Kocha", func() {
gplusKocha = loadKocha(gplusAPI)
})
calcMem("LARS", func() {
gplusLARS = loadLARS(gplusAPI)
})
calcMem("Macaron", func() {
gplusMacaron = loadMacaron(gplusAPI)
})
calcMem("Martini", func() {
gplusMartini = loadMartini(gplusAPI)
})
calcMem("Pat", func() {
gplusPat = loadPat(gplusAPI)
})
calcMem("Possum", func() {
gplusPossum = loadPossum(gplusAPI)
})
calcMem("R2router", func() {
gplusR2router = loadR2router(gplusAPI)
})
// calcMem("Revel", func() {
// gplusRevel = loadRevel(gplusAPI)
// })
calcMem("Rivet", func() {
gplusRivet = loadRivet(gplusAPI)
})
calcMem("Tango", func() {
gplusTango = loadTango(gplusAPI)
})
calcMem("TigerTonic", func() {
gplusTigerTonic = loadTigerTonic(gplusAPI)
})
calcMem("Traffic", func() {
gplusTraffic = loadTraffic(gplusAPI)
})
calcMem("Vulcan", func() {
gplusVulcan = loadVulcan(gplusAPI)
})
// calcMem("Zeus", func() {
// gplusZeus = loadZeus(gplusAPI)
// })
println()
}
// Static
func BenchmarkAce_GPlusStatic(b *testing.B) {
req, _ := http.NewRequest("GET", "/people", nil)
benchRequest(b, gplusAce, req)
}
func BenchmarkAero_GPlusStatic(b *testing.B) {
req, _ := http.NewRequest("GET", "/people", nil)
benchRequest(b, gplusAero, req)
}
func BenchmarkBear_GPlusStatic(b *testing.B) {
req, _ := http.NewRequest("GET", "/people", nil)
benchRequest(b, gplusBear, req)
}
func BenchmarkBeego_GPlusStatic(b *testing.B) {
req, _ := http.NewRequest("GET", "/people", nil)
benchRequest(b, gplusBeego, req)
}
func BenchmarkBone_GPlusStatic(b *testing.B) {
req, _ := http.NewRequest("GET", "/people", nil)
benchRequest(b, gplusBone, req)
}
func BenchmarkChi_GPlusStatic(b *testing.B) {
req, _ := http.NewRequest("GET", "/people", nil)
benchRequest(b, gplusChi, req)
}
// func BenchmarkCloudyKitRouter_GPlusStatic(b *testing.B) {
// req, _ := http.NewRequest("GET", "/people", nil)
// benchRequest(b, gplusCloudyKitRouter, req)
// }
func BenchmarkDenco_GPlusStatic(b *testing.B) {
req, _ := http.NewRequest("GET", "/people", nil)
benchRequest(b, gplusDenco, req)
}
func BenchmarkEcho_GPlusStatic(b *testing.B) {
req, _ := http.NewRequest("GET", "/people", nil)
benchRequest(b, gplusEcho, req)
}
func BenchmarkGin_GPlusStatic(b *testing.B) {
req, _ := http.NewRequest("GET", "/people", nil)
benchRequest(b, gplusGin, req)
}
func BenchmarkGocraftWeb_GPlusStatic(b *testing.B) {
req, _ := http.NewRequest("GET", "/people", nil)
benchRequest(b, gplusGocraftWeb, req)
}
func BenchmarkGoji_GPlusStatic(b *testing.B) {
req, _ := http.NewRequest("GET", "/people", nil)
benchRequest(b, gplusGoji, req)
}
func BenchmarkGojiv2_GPlusStatic(b *testing.B) {
req, _ := http.NewRequest("GET", "/people", nil)
benchRequest(b, gplusGojiv2, req)
}
func BenchmarkGoJsonRest_GPlusStatic(b *testing.B) {
req, _ := http.NewRequest("GET", "/people", nil)
benchRequest(b, gplusGoJsonRest, req)
}
func BenchmarkGoRestful_GPlusStatic(b *testing.B) {
req, _ := http.NewRequest("GET", "/people", nil)
benchRequest(b, gplusGoRestful, req)
}
func BenchmarkGorillaMux_GPlusStatic(b *testing.B) {
req, _ := http.NewRequest("GET", "/people", nil)
benchRequest(b, gplusGorillaMux, req)
}
func BenchmarkGowwwRouter_GPlusStatic(b *testing.B) {
req, _ := http.NewRequest("GET", "/people", nil)
benchRequest(b, gplusGowwwRouter, req)
}
func BenchmarkHttpRouter_GPlusStatic(b *testing.B) {
req, _ := http.NewRequest("GET", "/people", nil)
benchRequest(b, gplusHttpRouter, req)
}
func BenchmarkHttpTreeMux_GPlusStatic(b *testing.B) {
req, _ := http.NewRequest("GET", "/people", nil)
benchRequest(b, gplusHttpTreeMux, req)
}
func BenchmarkKocha_GPlusStatic(b *testing.B) {
req, _ := http.NewRequest("GET", "/people", nil)
benchRequest(b, gplusKocha, req)
}
func BenchmarkLARS_GPlusStatic(b *testing.B) {
req, _ := http.NewRequest("GET", "/people", nil)
benchRequest(b, gplusLARS, req)
}
func BenchmarkMacaron_GPlusStatic(b *testing.B) {
req, _ := http.NewRequest("GET", "/people", nil)
benchRequest(b, gplusMacaron, req)
}
func BenchmarkMartini_GPlusStatic(b *testing.B) {
req, _ := http.NewRequest("GET", "/people", nil)
benchRequest(b, gplusMartini, req)
}
func BenchmarkPat_GPlusStatic(b *testing.B) {
req, _ := http.NewRequest("GET", "/people", nil)
benchRequest(b, gplusPat, req)
}
func BenchmarkPossum_GPlusStatic(b *testing.B) {
req, _ := http.NewRequest("GET", "/people", nil)
benchRequest(b, gplusPossum, req)
}
func BenchmarkR2router_GPlusStatic(b *testing.B) {
req, _ := http.NewRequest("GET", "/people", nil)
benchRequest(b, gplusR2router, req)
}
// func BenchmarkRevel_GPlusStatic(b *testing.B) {
// req, _ := http.NewRequest("GET", "/people", nil)
// benchRequest(b, gplusRevel, req)
// }
func BenchmarkRivet_GPlusStatic(b *testing.B) {
req, _ := http.NewRequest("GET", "/people", nil)
benchRequest(b, gplusRivet, req)
}
func BenchmarkTango_GPlusStatic(b *testing.B) {
req, _ := http.NewRequest("GET", "/people", nil)
benchRequest(b, gplusTango, req)
}
func BenchmarkTigerTonic_GPlusStatic(b *testing.B) {
req, _ := http.NewRequest("GET", "/people", nil)
benchRequest(b, gplusTigerTonic, req)
}
func BenchmarkTraffic_GPlusStatic(b *testing.B) {
req, _ := http.NewRequest("GET", "/people", nil)
benchRequest(b, gplusTraffic, req)
}
func BenchmarkVulcan_GPlusStatic(b *testing.B) {
req, _ := http.NewRequest("GET", "/people", nil)
benchRequest(b, gplusVulcan, req)
}
// func BenchmarkZeus_GPlusStatic(b *testing.B) {
// req, _ := http.NewRequest("GET", "/people", nil)
// benchRequest(b, gplusZeus, req)
// }
// One Param
func BenchmarkAce_GPlusParam(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327", nil)
benchRequest(b, gplusAce, req)
}
func BenchmarkAero_GPlusParam(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327", nil)
benchRequest(b, gplusAero, req)
}
func BenchmarkBear_GPlusParam(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327", nil)
benchRequest(b, gplusBear, req)
}
func BenchmarkBeego_GPlusParam(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327", nil)
benchRequest(b, gplusBeego, req)
}
func BenchmarkBone_GPlusParam(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327", nil)
benchRequest(b, gplusBone, req)
}
func BenchmarkChi_GPlusParam(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327", nil)
benchRequest(b, gplusChi, req)
}
// func BenchmarkCloudyKitRouter_GPlusParam(b *testing.B) {
// req, _ := http.NewRequest("GET", "/people/118051310819094153327", nil)
// benchRequest(b, gplusCloudyKitRouter, req)
// }
func BenchmarkDenco_GPlusParam(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327", nil)
benchRequest(b, gplusDenco, req)
}
func BenchmarkEcho_GPlusParam(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327", nil)
benchRequest(b, gplusEcho, req)
}
func BenchmarkGin_GPlusParam(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327", nil)
benchRequest(b, gplusGin, req)
}
func BenchmarkGocraftWeb_GPlusParam(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327", nil)
benchRequest(b, gplusGocraftWeb, req)
}
func BenchmarkGoji_GPlusParam(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327", nil)
benchRequest(b, gplusGoji, req)
}
func BenchmarkGojiv2_GPlusParam(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327", nil)
benchRequest(b, gplusGojiv2, req)
}
func BenchmarkGoJsonRest_GPlusParam(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327", nil)
benchRequest(b, gplusGoJsonRest, req)
}
func BenchmarkGoRestful_GPlusParam(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327", nil)
benchRequest(b, gplusGoRestful, req)
}
func BenchmarkGorillaMux_GPlusParam(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327", nil)
benchRequest(b, gplusGorillaMux, req)
}
func BenchmarkGowwwRouter_GPlusParam(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327", nil)
benchRequest(b, gplusGowwwRouter, req)
}
func BenchmarkHttpRouter_GPlusParam(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327", nil)
benchRequest(b, gplusHttpRouter, req)
}
func BenchmarkHttpTreeMux_GPlusParam(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327", nil)
benchRequest(b, gplusHttpTreeMux, req)
}
func BenchmarkKocha_GPlusParam(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327", nil)
benchRequest(b, gplusKocha, req)
}
func BenchmarkLARS_GPlusParam(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327", nil)
benchRequest(b, gplusLARS, req)
}
func BenchmarkMacaron_GPlusParam(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327", nil)
benchRequest(b, gplusMacaron, req)
}
func BenchmarkMartini_GPlusParam(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327", nil)
benchRequest(b, gplusMartini, req)
}
func BenchmarkPat_GPlusParam(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327", nil)
benchRequest(b, gplusPat, req)
}
func BenchmarkPossum_GPlusParam(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327", nil)
benchRequest(b, gplusPossum, req)
}
func BenchmarkR2router_GPlusParam(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327", nil)
benchRequest(b, gplusR2router, req)
}
// func BenchmarkRevel_GPlusParam(b *testing.B) {
// req, _ := http.NewRequest("GET", "/people/118051310819094153327", nil)
// benchRequest(b, gplusRevel, req)
// }
func BenchmarkRivet_GPlusParam(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327", nil)
benchRequest(b, gplusRivet, req)
}
func BenchmarkTango_GPlusParam(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327", nil)
benchRequest(b, gplusTango, req)
}
func BenchmarkTigerTonic_GPlusParam(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327", nil)
benchRequest(b, gplusTigerTonic, req)
}
func BenchmarkTraffic_GPlusParam(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327", nil)
benchRequest(b, gplusTraffic, req)
}
func BenchmarkVulcan_GPlusParam(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327", nil)
benchRequest(b, gplusVulcan, req)
}
// func BenchmarkZeus_GPlusParam(b *testing.B) {
// req, _ := http.NewRequest("GET", "/people/118051310819094153327", nil)
// benchRequest(b, gplusZeus, req)
// }
// Two Params
func BenchmarkAce_GPlus2Params(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327/activities/123456789", nil)
benchRequest(b, gplusAce, req)
}
func BenchmarkAero_GPlus2Params(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327/activities/123456789", nil)
benchRequest(b, gplusAero, req)
}
func BenchmarkBear_GPlus2Params(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327/activities/123456789", nil)
benchRequest(b, gplusBear, req)
}
func BenchmarkBeego_GPlus2Params(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327/activities/123456789", nil)
benchRequest(b, gplusBeego, req)
}
func BenchmarkBone_GPlus2Params(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327/activities/123456789", nil)
benchRequest(b, gplusBone, req)
}
func BenchmarkChi_GPlus2Params(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327/activities/123456789", nil)
benchRequest(b, gplusChi, req)
}
// func BenchmarkCloudyKitRouter_GPlus2Params(b *testing.B) {
// req, _ := http.NewRequest("GET", "/people/118051310819094153327/activities/123456789", nil)
// benchRequest(b, gplusCloudyKitRouter, req)
// }
func BenchmarkDenco_GPlus2Params(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327/activities/123456789", nil)
benchRequest(b, gplusDenco, req)
}
func BenchmarkEcho_GPlus2Params(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327/activities/123456789", nil)
benchRequest(b, gplusEcho, req)
}
func BenchmarkGin_GPlus2Params(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327/activities/123456789", nil)
benchRequest(b, gplusGin, req)
}
func BenchmarkGocraftWeb_GPlus2Params(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327/activities/123456789", nil)
benchRequest(b, gplusGocraftWeb, req)
}
func BenchmarkGoji_GPlus2Params(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327/activities/123456789", nil)
benchRequest(b, gplusGoji, req)
}
func BenchmarkGojiv2_GPlus2Params(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327/activities/123456789", nil)
benchRequest(b, gplusGojiv2, req)
}
func BenchmarkGoJsonRest_GPlus2Params(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327/activities/123456789", nil)
benchRequest(b, gplusGoJsonRest, req)
}
func BenchmarkGoRestful_GPlus2Params(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327/activities/123456789", nil)
benchRequest(b, gplusGoRestful, req)
}
func BenchmarkGorillaMux_GPlus2Params(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327/activities/123456789", nil)
benchRequest(b, gplusGorillaMux, req)
}
func BenchmarkGowwwRouter_GPlus2Params(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327/activities/123456789", nil)
benchRequest(b, gplusGowwwRouter, req)
}
func BenchmarkHttpRouter_GPlus2Params(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327/activities/123456789", nil)
benchRequest(b, gplusHttpRouter, req)
}
func BenchmarkHttpTreeMux_GPlus2Params(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327/activities/123456789", nil)
benchRequest(b, gplusHttpTreeMux, req)
}
func BenchmarkKocha_GPlus2Params(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327/activities/123456789", nil)
benchRequest(b, gplusKocha, req)
}
func BenchmarkLARS_GPlus2Params(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327/activities/123456789", nil)
benchRequest(b, gplusLARS, req)
}
func BenchmarkMacaron_GPlus2Params(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327/activities/123456789", nil)
benchRequest(b, gplusMacaron, req)
}
func BenchmarkMartini_GPlus2Params(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327/activities/123456789", nil)
benchRequest(b, gplusMartini, req)
}
func BenchmarkPat_GPlus2Params(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327/activities/123456789", nil)
benchRequest(b, gplusPat, req)
}
func BenchmarkPossum_GPlus2Params(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327/activities/123456789", nil)
benchRequest(b, gplusPossum, req)
}
func BenchmarkR2router_GPlus2Params(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327/activities/123456789", nil)
benchRequest(b, gplusR2router, req)
}
// func BenchmarkRevel_GPlus2Params(b *testing.B) {
// req, _ := http.NewRequest("GET", "/people/118051310819094153327/activities/123456789", nil)
// benchRequest(b, gplusRevel, req)
// }
func BenchmarkRivet_GPlus2Params(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327/activities/123456789", nil)
benchRequest(b, gplusRivet, req)
}
func BenchmarkTango_GPlus2Params(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327/activities/123456789", nil)
benchRequest(b, gplusTango, req)
}
func BenchmarkTigerTonic_GPlus2Params(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327/activities/123456789", nil)
benchRequest(b, gplusTigerTonic, req)
}
func BenchmarkTraffic_GPlus2Params(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327/activities/123456789", nil)
benchRequest(b, gplusTraffic, req)
}
func BenchmarkVulcan_GPlus2Params(b *testing.B) {
req, _ := http.NewRequest("GET", "/people/118051310819094153327/activities/123456789", nil)
benchRequest(b, gplusVulcan, req)
}
// func BenchmarkZeus_GPlus2Params(b *testing.B) {
// req, _ := http.NewRequest("GET", "/people/118051310819094153327/activities/123456789", nil)
// benchRequest(b, gplusZeus, req)
// }
// All Routes
func BenchmarkAce_GPlusAll(b *testing.B) {
benchRoutes(b, gplusAce, gplusAPI)
}
func BenchmarkAero_GPlusAll(b *testing.B) {
benchRoutes(b, gplusAero, gplusAPI)
}
func BenchmarkBear_GPlusAll(b *testing.B) {
benchRoutes(b, gplusBear, gplusAPI)
}
func BenchmarkBeego_GPlusAll(b *testing.B) {
benchRoutes(b, gplusBeego, gplusAPI)
}
func BenchmarkBone_GPlusAll(b *testing.B) {
benchRoutes(b, gplusBone, gplusAPI)
}
func BenchmarkChi_GPlusAll(b *testing.B) {
benchRoutes(b, gplusChi, gplusAPI)
}
// func BenchmarkCloudyKitRouter_GPlusAll(b *testing.B) {
// benchRoutes(b, gplusCloudyKitRouter, gplusAPI)
// }
func BenchmarkDenco_GPlusAll(b *testing.B) {
benchRoutes(b, gplusDenco, gplusAPI)
}
func BenchmarkEcho_GPlusAll(b *testing.B) {
benchRoutes(b, gplusEcho, gplusAPI)
}
func BenchmarkGin_GPlusAll(b *testing.B) {
benchRoutes(b, gplusGin, gplusAPI)
}
func BenchmarkGocraftWeb_GPlusAll(b *testing.B) {
benchRoutes(b, gplusGocraftWeb, gplusAPI)
}
func BenchmarkGoji_GPlusAll(b *testing.B) {
benchRoutes(b, gplusGoji, gplusAPI)
}
func BenchmarkGojiv2_GPlusAll(b *testing.B) {
benchRoutes(b, gplusGojiv2, gplusAPI)
}
func BenchmarkGoJsonRest_GPlusAll(b *testing.B) {
benchRoutes(b, gplusGoJsonRest, gplusAPI)
}
func BenchmarkGoRestful_GPlusAll(b *testing.B) {
benchRoutes(b, gplusGoRestful, gplusAPI)
}
func BenchmarkGorillaMux_GPlusAll(b *testing.B) {
benchRoutes(b, gplusGorillaMux, gplusAPI)
}
func BenchmarkGowwwRouter_GPlusAll(b *testing.B) {
benchRoutes(b, gplusGowwwRouter, gplusAPI)
}
func BenchmarkHttpRouter_GPlusAll(b *testing.B) {
benchRoutes(b, gplusHttpRouter, gplusAPI)
}
func BenchmarkHttpTreeMux_GPlusAll(b *testing.B) {
benchRoutes(b, gplusHttpTreeMux, gplusAPI)
}
func BenchmarkKocha_GPlusAll(b *testing.B) {
benchRoutes(b, gplusKocha, gplusAPI)
}
func BenchmarkLARS_GPlusAll(b *testing.B) {
benchRoutes(b, gplusLARS, gplusAPI)
}
func BenchmarkMacaron_GPlusAll(b *testing.B) {
benchRoutes(b, gplusMacaron, gplusAPI)
}
func BenchmarkMartini_GPlusAll(b *testing.B) {
benchRoutes(b, gplusMartini, gplusAPI)
}
func BenchmarkPat_GPlusAll(b *testing.B) {
benchRoutes(b, gplusPat, gplusAPI)
}
func BenchmarkPossum_GPlusAll(b *testing.B) {
benchRoutes(b, gplusPossum, gplusAPI)
}
func BenchmarkR2router_GPlusAll(b *testing.B) {
benchRoutes(b, gplusR2router, gplusAPI)
}
// func BenchmarkRevel_GPlusAll(b *testing.B) {
// benchRoutes(b, gplusRevel, gplusAPI)
// }
func BenchmarkRivet_GPlusAll(b *testing.B) {
benchRoutes(b, gplusRivet, gplusAPI)
}
func BenchmarkTango_GPlusAll(b *testing.B) {
benchRoutes(b, gplusTango, gplusAPI)
}
func BenchmarkTigerTonic_GPlusAll(b *testing.B) {
benchRoutes(b, gplusTigerTonic, gplusAPI)
}
func BenchmarkTraffic_GPlusAll(b *testing.B) {
benchRoutes(b, gplusTraffic, gplusAPI)
}
func BenchmarkVulcan_GPlusAll(b *testing.B) {
benchRoutes(b, gplusVulcan, gplusAPI)
}
// func BenchmarkZeus_GPlusAll(b *testing.B) {
// benchRoutes(b, gplusZeus, gplusAPI)
// }