forked from julienschmidt/go-http-routing-benchmark
-
Notifications
You must be signed in to change notification settings - Fork 0
/
parse_test.go
610 lines (588 loc) · 18.4 KB
/
parse_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
// 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"
)
// Parse
// https://parse.com/docs/rest#summary
var parseAPI = []route{
// Objects
{"POST", "/1/classes/:className"},
{"GET", "/1/classes/:className/:objectId"},
{"PUT", "/1/classes/:className/:objectId"},
{"GET", "/1/classes/:className"},
{"DELETE", "/1/classes/:className/:objectId"},
// Users
{"POST", "/1/users"},
{"GET", "/1/login"},
{"GET", "/1/users/:objectId"},
{"PUT", "/1/users/:objectId"},
{"GET", "/1/users"},
{"DELETE", "/1/users/:objectId"},
{"POST", "/1/requestPasswordReset"},
// Roles
{"POST", "/1/roles"},
{"GET", "/1/roles/:objectId"},
{"PUT", "/1/roles/:objectId"},
{"GET", "/1/roles"},
{"DELETE", "/1/roles/:objectId"},
// Files
{"POST", "/1/files/:fileName"},
// Analytics
{"POST", "/1/events/:eventName"},
// Push Notifications
{"POST", "/1/push"},
// Installations
{"POST", "/1/installations"},
{"GET", "/1/installations/:objectId"},
{"PUT", "/1/installations/:objectId"},
{"GET", "/1/installations"},
{"DELETE", "/1/installations/:objectId"},
// Cloud Functions
{"POST", "/1/functions"},
}
var (
parseAce http.Handler
parseBear http.Handler
parseBeego http.Handler
parseHador http.Handler
parseBone http.Handler
parseDenco http.Handler
parseEcho http.Handler
parseGin http.Handler
parseGocraftWeb http.Handler
parseGoji http.Handler
parseGoJsonRest http.Handler
parseGoRestful http.Handler
parseGorillaMux http.Handler
parseHttpRouter http.Handler
parseHttpTreeMux http.Handler
parseKocha http.Handler
parseMacaron http.Handler
parseMartini http.Handler
parsePat http.Handler
parsePossum http.Handler
parseR2router http.Handler
parseRevel http.Handler
parseRivet http.Handler
parseTango http.Handler
parseTigerTonic http.Handler
parseTraffic http.Handler
parseVulcan http.Handler
// parseZeus http.Handler
)
func init() {
println("#ParseAPI Routes:", len(parseAPI))
calcMem("Ace", func() {
parseAce = loadAce(parseAPI)
})
calcMem("Bear", func() {
parseBear = loadBear(parseAPI)
})
calcMem("Beego", func() {
parseBeego = loadBeego(parseAPI)
})
calcMem("Hador", func() {
parseHador = loadHador(parseAPI)
})
calcMem("Bone", func() {
parseBone = loadBone(parseAPI)
})
calcMem("Denco", func() {
parseDenco = loadDenco(parseAPI)
})
calcMem("Echo", func() {
parseEcho = loadEcho(parseAPI)
})
calcMem("Gin", func() {
parseGin = loadGin(parseAPI)
})
calcMem("GocraftWeb", func() {
parseGocraftWeb = loadGocraftWeb(parseAPI)
})
calcMem("Goji", func() {
parseGoji = loadGoji(parseAPI)
})
calcMem("GoJsonRest", func() {
parseGoJsonRest = loadGoJsonRest(parseAPI)
})
calcMem("GoRestful", func() {
parseGoRestful = loadGoRestful(parseAPI)
})
calcMem("GorillaMux", func() {
parseGorillaMux = loadGorillaMux(parseAPI)
})
calcMem("HttpRouter", func() {
parseHttpRouter = loadHttpRouter(parseAPI)
})
calcMem("HttpTreeMux", func() {
parseHttpTreeMux = loadHttpTreeMux(parseAPI)
})
calcMem("Kocha", func() {
parseKocha = loadKocha(parseAPI)
})
calcMem("Macaron", func() {
parseMacaron = loadMacaron(parseAPI)
})
calcMem("Martini", func() {
parseMartini = loadMartini(parseAPI)
})
calcMem("Pat", func() {
parsePat = loadPat(parseAPI)
})
calcMem("Possum", func() {
parsePossum = loadPossum(parseAPI)
})
calcMem("R2router", func() {
parseR2router = loadR2router(parseAPI)
})
calcMem("Revel", func() {
parseRevel = loadRevel(parseAPI)
})
calcMem("Rivet", func() {
parseRivet = loadRivet(parseAPI)
})
calcMem("Tango", func() {
parseTango = loadTango(parseAPI)
})
calcMem("TigerTonic", func() {
parseTigerTonic = loadTigerTonic(parseAPI)
})
calcMem("Traffic", func() {
parseTraffic = loadTraffic(parseAPI)
})
calcMem("Vulcan", func() {
parseVulcan = loadVulcan(parseAPI)
})
// calcMem("Zeus", func() {
// parseZeus = loadZeus(parseAPI)
// })
println()
}
// Static
func BenchmarkAce_ParseStatic(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/users", nil)
benchRequest(b, parseAce, req)
}
func BenchmarkBear_ParseStatic(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/users", nil)
benchRequest(b, parseBear, req)
}
func BenchmarkBeego_ParseStatic(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/users", nil)
benchRequest(b, parseBeego, req)
}
func BenchmarkHador_ParseStatic(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/users", nil)
benchRequest(b, parseHador, req)
}
func BenchmarkBone_ParseStatic(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/users", nil)
benchRequest(b, parseBone, req)
}
func BenchmarkDenco_ParseStatic(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/users", nil)
benchRequest(b, parseDenco, req)
}
func BenchmarkEcho_ParseStatic(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/users", nil)
benchRequest(b, parseEcho, req)
}
func BenchmarkGin_ParseStatic(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/users", nil)
benchRequest(b, parseGin, req)
}
func BenchmarkGocraftWeb_ParseStatic(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/users", nil)
benchRequest(b, parseGocraftWeb, req)
}
func BenchmarkGoji_ParseStatic(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/users", nil)
benchRequest(b, parseGoji, req)
}
func BenchmarkGoJsonRest_ParseStatic(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/users", nil)
benchRequest(b, parseGoJsonRest, req)
}
func BenchmarkGoRestful_ParseStatic(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/users", nil)
benchRequest(b, parseGoRestful, req)
}
func BenchmarkGorillaMux_ParseStatic(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/users", nil)
benchRequest(b, parseGorillaMux, req)
}
func BenchmarkHttpRouter_ParseStatic(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/users", nil)
benchRequest(b, parseHttpRouter, req)
}
func BenchmarkHttpTreeMux_ParseStatic(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/users", nil)
benchRequest(b, parseHttpTreeMux, req)
}
func BenchmarkKocha_ParseStatic(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/users", nil)
benchRequest(b, parseKocha, req)
}
func BenchmarkMacaron_ParseStatic(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/users", nil)
benchRequest(b, parseMacaron, req)
}
func BenchmarkMartini_ParseStatic(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/users", nil)
benchRequest(b, parseMartini, req)
}
func BenchmarkPat_ParseStatic(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/users", nil)
benchRequest(b, parsePat, req)
}
func BenchmarkPossum_ParseStatic(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/users", nil)
benchRequest(b, parsePossum, req)
}
func BenchmarkR2router_ParseStatic(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/users", nil)
benchRequest(b, parseR2router, req)
}
func BenchmarkRevel_ParseStatic(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/users", nil)
benchRequest(b, parseRevel, req)
}
func BenchmarkRivet_ParseStatic(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/users", nil)
benchRequest(b, parseRivet, req)
}
func BenchmarkTango_ParseStatic(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/users", nil)
benchRequest(b, parseTango, req)
}
func BenchmarkTigerTonic_ParseStatic(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/users", nil)
benchRequest(b, parseTigerTonic, req)
}
func BenchmarkTraffic_ParseStatic(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/users", nil)
benchRequest(b, parseTraffic, req)
}
func BenchmarkVulcan_ParseStatic(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/users", nil)
benchRequest(b, parseVulcan, req)
}
// func BenchmarkZeus_ParseStatic(b *testing.B) {
// req, _ := http.NewRequest("GET", "/1/users", nil)
// benchRequest(b, parseZeus, req)
// }
// One Param
func BenchmarkAce_ParseParam(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/classes/go", nil)
benchRequest(b, parseAce, req)
}
func BenchmarkBear_ParseParam(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/classes/go", nil)
benchRequest(b, parseBear, req)
}
func BenchmarkBeego_ParseParam(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/classes/go", nil)
benchRequest(b, parseBeego, req)
}
func BenchmarkHador_ParseParam(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/classes/go", nil)
benchRequest(b, parseHador, req)
}
func BenchmarkBone_ParseParam(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/classes/go", nil)
benchRequest(b, parseBone, req)
}
func BenchmarkDenco_ParseParam(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/classes/go", nil)
benchRequest(b, parseDenco, req)
}
func BenchmarkEcho_ParseParam(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/classes/go", nil)
benchRequest(b, parseEcho, req)
}
func BenchmarkGin_ParseParam(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/classes/go", nil)
benchRequest(b, parseGin, req)
}
func BenchmarkGocraftWeb_ParseParam(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/classes/go", nil)
benchRequest(b, parseGocraftWeb, req)
}
func BenchmarkGoji_ParseParam(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/classes/go", nil)
benchRequest(b, parseGoji, req)
}
func BenchmarkGoJsonRest_ParseParam(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/classes/go", nil)
benchRequest(b, parseGoJsonRest, req)
}
func BenchmarkGoRestful_ParseParam(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/classes/go", nil)
benchRequest(b, parseGoRestful, req)
}
func BenchmarkGorillaMux_ParseParam(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/classes/go", nil)
benchRequest(b, parseGorillaMux, req)
}
func BenchmarkHttpRouter_ParseParam(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/classes/go", nil)
benchRequest(b, parseHttpRouter, req)
}
func BenchmarkHttpTreeMux_ParseParam(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/classes/go", nil)
benchRequest(b, parseHttpTreeMux, req)
}
func BenchmarkKocha_ParseParam(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/classes/go", nil)
benchRequest(b, parseKocha, req)
}
func BenchmarkMacaron_ParseParam(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/classes/go", nil)
benchRequest(b, parseMacaron, req)
}
func BenchmarkMartini_ParseParam(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/classes/go", nil)
benchRequest(b, parseMartini, req)
}
func BenchmarkPat_ParseParam(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/classes/go", nil)
benchRequest(b, parsePat, req)
}
func BenchmarkPossum_ParseParam(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/classes/go", nil)
benchRequest(b, parsePossum, req)
}
func BenchmarkR2router_ParseParam(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/classes/go", nil)
benchRequest(b, parseR2router, req)
}
func BenchmarkRevel_ParseParam(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/classes/go", nil)
benchRequest(b, parseRevel, req)
}
func BenchmarkRivet_ParseParam(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/classes/go", nil)
benchRequest(b, parseRivet, req)
}
func BenchmarkTango_ParseParam(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/classes/go", nil)
benchRequest(b, parseTango, req)
}
func BenchmarkTigerTonic_ParseParam(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/classes/go", nil)
benchRequest(b, parseTigerTonic, req)
}
func BenchmarkTraffic_ParseParam(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/classes/go", nil)
benchRequest(b, parseTraffic, req)
}
func BenchmarkVulcan_ParseParam(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/classes/go", nil)
benchRequest(b, parseVulcan, req)
}
// func BenchmarkZeus_ParseParam(b *testing.B) {
// req, _ := http.NewRequest("GET", "/1/classes/go", nil)
// benchRequest(b, parseZeus, req)
// }
// Two Params
func BenchmarkAce_Parse2Params(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/classes/go/123456789", nil)
benchRequest(b, parseAce, req)
}
func BenchmarkBear_Parse2Params(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/classes/go/123456789", nil)
benchRequest(b, parseBear, req)
}
func BenchmarkBeego_Parse2Params(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/classes/go/123456789", nil)
benchRequest(b, parseBeego, req)
}
func BenchmarkHador_Parse2Params(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/classes/go/123456789", nil)
benchRequest(b, parseHador, req)
}
func BenchmarkBone_Parse2Params(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/classes/go/123456789", nil)
benchRequest(b, parseBone, req)
}
func BenchmarkDenco_Parse2Params(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/classes/go/123456789", nil)
benchRequest(b, parseDenco, req)
}
func BenchmarkEcho_Parse2Params(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/classes/go/123456789", nil)
benchRequest(b, parseEcho, req)
}
func BenchmarkGin_Parse2Params(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/classes/go/123456789", nil)
benchRequest(b, parseGin, req)
}
func BenchmarkGocraftWeb_Parse2Params(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/classes/go/123456789", nil)
benchRequest(b, parseGocraftWeb, req)
}
func BenchmarkGoji_Parse2Params(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/classes/go/123456789", nil)
benchRequest(b, parseGoji, req)
}
func BenchmarkGoJsonRest_Parse2Params(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/classes/go/123456789", nil)
benchRequest(b, parseGoJsonRest, req)
}
func BenchmarkGoRestful_Parse2Params(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/classes/go/123456789", nil)
benchRequest(b, parseGoRestful, req)
}
func BenchmarkGorillaMux_Parse2Params(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/classes/go/123456789", nil)
benchRequest(b, parseGorillaMux, req)
}
func BenchmarkHttpRouter_Parse2Params(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/classes/go/123456789", nil)
benchRequest(b, parseHttpRouter, req)
}
func BenchmarkHttpTreeMux_Parse2Params(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/classes/go/123456789", nil)
benchRequest(b, parseHttpTreeMux, req)
}
func BenchmarkKocha_Parse2Params(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/classes/go/123456789", nil)
benchRequest(b, parseKocha, req)
}
func BenchmarkMacaron_Parse2Params(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/classes/go/123456789", nil)
benchRequest(b, parseMacaron, req)
}
func BenchmarkMartini_Parse2Params(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/classes/go/123456789", nil)
benchRequest(b, parseMartini, req)
}
func BenchmarkPat_Parse2Params(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/classes/go/123456789", nil)
benchRequest(b, parsePat, req)
}
func BenchmarkPossum_Parse2Params(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/classes/go/123456789", nil)
benchRequest(b, parsePossum, req)
}
func BenchmarkR2router_Parse2Params(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/classes/go/123456789", nil)
benchRequest(b, parseR2router, req)
}
func BenchmarkRevel_Parse2Params(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/classes/go/123456789", nil)
benchRequest(b, parseRevel, req)
}
func BenchmarkRivet_Parse2Params(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/classes/go/123456789", nil)
benchRequest(b, parseRivet, req)
}
func BenchmarkTango_Parse2Params(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/classes/go/123456789", nil)
benchRequest(b, parseTango, req)
}
func BenchmarkTigerTonic_Parse2Params(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/classes/go/123456789", nil)
benchRequest(b, parseTigerTonic, req)
}
func BenchmarkTraffic_Parse2Params(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/classes/go/123456789", nil)
benchRequest(b, parseTraffic, req)
}
func BenchmarkVulcan_Parse2Params(b *testing.B) {
req, _ := http.NewRequest("GET", "/1/classes/go/123456789", nil)
benchRequest(b, parseVulcan, req)
}
// func BenchmarkZeus_Parse2Params(b *testing.B) {
// req, _ := http.NewRequest("GET", "/1/classes/go/123456789", nil)
// benchRequest(b, parseZeus, req)
// }
// All Routes
func BenchmarkAce_ParseAll(b *testing.B) {
benchRoutes(b, parseAce, parseAPI)
}
func BenchmarkBear_ParseAll(b *testing.B) {
benchRoutes(b, parseBear, parseAPI)
}
func BenchmarkBeego_ParseAll(b *testing.B) {
benchRoutes(b, parseBeego, parseAPI)
}
func BenchmarkHador_ParseAll(b *testing.B) {
benchRoutes(b, parseHador, parseAPI)
}
func BenchmarkBone_ParseAll(b *testing.B) {
benchRoutes(b, parseBone, parseAPI)
}
func BenchmarkDenco_ParseAll(b *testing.B) {
benchRoutes(b, parseDenco, parseAPI)
}
func BenchmarkEcho_ParseAll(b *testing.B) {
benchRoutes(b, parseEcho, parseAPI)
}
func BenchmarkGin_ParseAll(b *testing.B) {
benchRoutes(b, parseGin, parseAPI)
}
func BenchmarkGocraftWeb_ParseAll(b *testing.B) {
benchRoutes(b, parseGocraftWeb, parseAPI)
}
func BenchmarkGoji_ParseAll(b *testing.B) {
benchRoutes(b, parseGoji, parseAPI)
}
func BenchmarkGoJsonRest_ParseAll(b *testing.B) {
benchRoutes(b, parseGoJsonRest, parseAPI)
}
func BenchmarkGoRestful_ParseAll(b *testing.B) {
benchRoutes(b, parseGoRestful, parseAPI)
}
func BenchmarkGorillaMux_ParseAll(b *testing.B) {
benchRoutes(b, parseGorillaMux, parseAPI)
}
func BenchmarkHttpRouter_ParseAll(b *testing.B) {
benchRoutes(b, parseHttpRouter, parseAPI)
}
func BenchmarkHttpTreeMux_ParseAll(b *testing.B) {
benchRoutes(b, parseHttpTreeMux, parseAPI)
}
func BenchmarkKocha_ParseAll(b *testing.B) {
benchRoutes(b, parseKocha, parseAPI)
}
func BenchmarkMacaron_ParseAll(b *testing.B) {
benchRoutes(b, parseMacaron, parseAPI)
}
func BenchmarkMartini_ParseAll(b *testing.B) {
benchRoutes(b, parseMartini, parseAPI)
}
func BenchmarkPat_ParseAll(b *testing.B) {
benchRoutes(b, parsePat, parseAPI)
}
func BenchmarkPossum_ParseAll(b *testing.B) {
benchRoutes(b, parsePossum, parseAPI)
}
func BenchmarkR2router_ParseAll(b *testing.B) {
benchRoutes(b, parseR2router, parseAPI)
}
func BenchmarkRevel_ParseAll(b *testing.B) {
benchRoutes(b, parseRevel, parseAPI)
}
func BenchmarkRivet_ParseAll(b *testing.B) {
benchRoutes(b, parseRivet, parseAPI)
}
func BenchmarkTango_ParseAll(b *testing.B) {
benchRoutes(b, parseTango, parseAPI)
}
func BenchmarkTigerTonic_ParseAll(b *testing.B) {
benchRoutes(b, parseTigerTonic, parseAPI)
}
func BenchmarkTraffic_ParseAll(b *testing.B) {
benchRoutes(b, parseTraffic, parseAPI)
}
func BenchmarkVulcan_ParseAll(b *testing.B) {
benchRoutes(b, parseVulcan, parseAPI)
}
// func BenchmarkZeus_ParseAll(b *testing.B) {
// benchRoutes(b, parseZeus, parseAPI)
// }