@@ -274,34 +274,36 @@ var githubAPI = []route{
274
274
}
275
275
276
276
var (
277
- githubAce http.Handler
278
- githubBear http.Handler
279
- githubBeego http.Handler
280
- githubBone http.Handler
281
- githubDenco http.Handler
282
- githubEcho http.Handler
283
- githubGin http.Handler
284
- githubGocraftWeb http.Handler
285
- githubGoji http.Handler
286
- githubGojiv2 http.Handler
287
- githubGoJsonRest http.Handler
288
- githubGoRestful http.Handler
289
- githubGorillaMux http.Handler
290
- githubHttpRouter http.Handler
291
- githubHttpTreeMux http.Handler
292
- githubKocha http.Handler
293
- githubLARS http.Handler
294
- githubMacaron http.Handler
295
- githubMartini http.Handler
296
- githubPat http.Handler
297
- githubPossum http.Handler
298
- githubR2router http.Handler
299
- githubRevel http.Handler
300
- githubRivet http.Handler
301
- githubTango http.Handler
302
- githubTigerTonic http.Handler
303
- githubTraffic http.Handler
304
- githubVulcan http.Handler
277
+ githubAce http.Handler
278
+ githubBear http.Handler
279
+ githubBeego http.Handler
280
+ githubBone http.Handler
281
+ githubCloudyKitRouter http.Handler
282
+ githubDenco http.Handler
283
+ githubEcho http.Handler
284
+ githubGin http.Handler
285
+ githubGocraftWeb http.Handler
286
+ githubGoji http.Handler
287
+ githubGojiv2 http.Handler
288
+ githubGoJsonRest http.Handler
289
+ githubGoRestful http.Handler
290
+ githubGorillaMux http.Handler
291
+ githubGowwwRouter http.Handler
292
+ githubHttpRouter http.Handler
293
+ githubHttpTreeMux http.Handler
294
+ githubKocha http.Handler
295
+ githubLARS http.Handler
296
+ githubMacaron http.Handler
297
+ githubMartini http.Handler
298
+ githubPat http.Handler
299
+ githubPossum http.Handler
300
+ githubR2router http.Handler
301
+ githubRevel http.Handler
302
+ githubRivet http.Handler
303
+ githubTango http.Handler
304
+ githubTigerTonic http.Handler
305
+ githubTraffic http.Handler
306
+ githubVulcan http.Handler
305
307
// githubZeus http.Handler
306
308
)
307
309
@@ -320,6 +322,9 @@ func init() {
320
322
calcMem ("Bone" , func () {
321
323
githubBone = loadBone (githubAPI )
322
324
})
325
+ calcMem ("CloudyKitRouter" , func () {
326
+ githubCloudyKitRouter = loadCloudyKitRouter (githubAPI )
327
+ })
323
328
calcMem ("Denco" , func () {
324
329
githubDenco = loadDenco (githubAPI )
325
330
})
@@ -347,6 +352,9 @@ func init() {
347
352
calcMem ("GorillaMux" , func () {
348
353
githubGorillaMux = loadGorillaMux (githubAPI )
349
354
})
355
+ calcMem ("GowwwRouter" , func () {
356
+ githubGowwwRouter = loadGowwwRouter (githubAPI )
357
+ })
350
358
calcMem ("HttpRouter" , func () {
351
359
githubHttpRouter = loadHttpRouter (githubAPI )
352
360
})
@@ -416,6 +424,10 @@ func BenchmarkBone_GithubStatic(b *testing.B) {
416
424
req , _ := http .NewRequest ("GET" , "/user/repos" , nil )
417
425
benchRequest (b , githubBone , req )
418
426
}
427
+ func BenchmarkCloudyKitRouter_GithubStatic (b * testing.B ) {
428
+ req , _ := http .NewRequest ("GET" , "/user/repos" , nil )
429
+ benchRequest (b , githubCloudyKitRouter , req )
430
+ }
419
431
func BenchmarkDenco_GithubStatic (b * testing.B ) {
420
432
req , _ := http .NewRequest ("GET" , "/user/repos" , nil )
421
433
benchRequest (b , githubDenco , req )
@@ -452,6 +464,10 @@ func BenchmarkGorillaMux_GithubStatic(b *testing.B) {
452
464
req , _ := http .NewRequest ("GET" , "/user/repos" , nil )
453
465
benchRequest (b , githubGorillaMux , req )
454
466
}
467
+ func BenchmarkGowwwRouter_GithubStatic (b * testing.B ) {
468
+ req , _ := http .NewRequest ("GET" , "/user/repos" , nil )
469
+ benchRequest (b , githubGowwwRouter , req )
470
+ }
455
471
func BenchmarkHttpRouter_GithubStatic (b * testing.B ) {
456
472
req , _ := http .NewRequest ("GET" , "/user/repos" , nil )
457
473
benchRequest (b , githubHttpRouter , req )
@@ -536,6 +552,10 @@ func BenchmarkBone_GithubParam(b *testing.B) {
536
552
req , _ := http .NewRequest ("GET" , "/repos/julienschmidt/httprouter/stargazers" , nil )
537
553
benchRequest (b , githubBone , req )
538
554
}
555
+ func BenchmarkCloudyKitRouter_GithubParam (b * testing.B ) {
556
+ req , _ := http .NewRequest ("GET" , "/repos/julienschmidt/httprouter/stargazers" , nil )
557
+ benchRequest (b , githubCloudyKitRouter , req )
558
+ }
539
559
func BenchmarkDenco_GithubParam (b * testing.B ) {
540
560
req , _ := http .NewRequest ("GET" , "/repos/julienschmidt/httprouter/stargazers" , nil )
541
561
benchRequest (b , githubDenco , req )
@@ -572,6 +592,10 @@ func BenchmarkGorillaMux_GithubParam(b *testing.B) {
572
592
req , _ := http .NewRequest ("GET" , "/repos/julienschmidt/httprouter/stargazers" , nil )
573
593
benchRequest (b , githubGorillaMux , req )
574
594
}
595
+ func BenchmarkGowwwRouter_GithubParam (b * testing.B ) {
596
+ req , _ := http .NewRequest ("GET" , "/repos/julienschmidt/httprouter/stargazers" , nil )
597
+ benchRequest (b , githubGowwwRouter , req )
598
+ }
575
599
func BenchmarkHttpRouter_GithubParam (b * testing.B ) {
576
600
req , _ := http .NewRequest ("GET" , "/repos/julienschmidt/httprouter/stargazers" , nil )
577
601
benchRequest (b , githubHttpRouter , req )
@@ -652,6 +676,9 @@ func BenchmarkBeego_GithubAll(b *testing.B) {
652
676
func BenchmarkBone_GithubAll (b * testing.B ) {
653
677
benchRoutes (b , githubBone , githubAPI )
654
678
}
679
+ func BenchmarkCloudyKitRouter_GithubAll (b * testing.B ) {
680
+ benchRoutes (b , githubCloudyKitRouter , githubAPI )
681
+ }
655
682
func BenchmarkDenco_GithubAll (b * testing.B ) {
656
683
benchRoutes (b , githubDenco , githubAPI )
657
684
}
@@ -679,6 +706,9 @@ func BenchmarkGoRestful_GithubAll(b *testing.B) {
679
706
func BenchmarkGorillaMux_GithubAll (b * testing.B ) {
680
707
benchRoutes (b , githubGorillaMux , githubAPI )
681
708
}
709
+ func BenchmarkGowwwRouter_GithubAll (b * testing.B ) {
710
+ benchRoutes (b , githubGowwwRouter , githubAPI )
711
+ }
682
712
func BenchmarkHttpRouter_GithubAll (b * testing.B ) {
683
713
benchRoutes (b , githubHttpRouter , githubAPI )
684
714
}
0 commit comments