|
40 | 40 | gplusBear http.Handler
|
41 | 41 | gplusBeego http.Handler
|
42 | 42 | gplusBone http.Handler
|
| 43 | + gplusChi http.Handler |
43 | 44 | gplusCloudyKitRouter http.Handler
|
44 | 45 | gplusDenco http.Handler
|
45 | 46 | gplusEcho http.Handler
|
@@ -84,6 +85,9 @@ func init() {
|
84 | 85 | calcMem("Bone", func() {
|
85 | 86 | gplusBone = loadBone(gplusAPI)
|
86 | 87 | })
|
| 88 | + calcMem("Chi", func() { |
| 89 | + gplusChi = loadChi(gplusAPI) |
| 90 | + }) |
87 | 91 | calcMem("CloudyKitRouter", func() {
|
88 | 92 | gplusCloudyKitRouter = loadCloudyKitRouter(gplusAPI)
|
89 | 93 | })
|
@@ -186,6 +190,10 @@ func BenchmarkBone_GPlusStatic(b *testing.B) {
|
186 | 190 | req, _ := http.NewRequest("GET", "/people", nil)
|
187 | 191 | benchRequest(b, gplusBone, req)
|
188 | 192 | }
|
| 193 | +func BenchmarkChi_GPlusStatic(b *testing.B) { |
| 194 | + req, _ := http.NewRequest("GET", "/people", nil) |
| 195 | + benchRequest(b, gplusChi, req) |
| 196 | +} |
189 | 197 | func BenchmarkCloudyKitRouter_GPlusStatic(b *testing.B) {
|
190 | 198 | req, _ := http.NewRequest("GET", "/people", nil)
|
191 | 199 | benchRequest(b, gplusCloudyKitRouter, req)
|
@@ -314,6 +322,10 @@ func BenchmarkBone_GPlusParam(b *testing.B) {
|
314 | 322 | req, _ := http.NewRequest("GET", "/people/118051310819094153327", nil)
|
315 | 323 | benchRequest(b, gplusBone, req)
|
316 | 324 | }
|
| 325 | +func BenchmarkChi_GPlusParam(b *testing.B) { |
| 326 | + req, _ := http.NewRequest("GET", "/people/118051310819094153327", nil) |
| 327 | + benchRequest(b, gplusChi, req) |
| 328 | +} |
317 | 329 | func BenchmarkCloudyKitRouter_GPlusParam(b *testing.B) {
|
318 | 330 | req, _ := http.NewRequest("GET", "/people/118051310819094153327", nil)
|
319 | 331 | benchRequest(b, gplusCloudyKitRouter, req)
|
@@ -442,6 +454,10 @@ func BenchmarkBone_GPlus2Params(b *testing.B) {
|
442 | 454 | req, _ := http.NewRequest("GET", "/people/118051310819094153327/activities/123456789", nil)
|
443 | 455 | benchRequest(b, gplusBone, req)
|
444 | 456 | }
|
| 457 | +func BenchmarkChi_GPlus2Params(b *testing.B) { |
| 458 | + req, _ := http.NewRequest("GET", "/people/118051310819094153327/activities/123456789", nil) |
| 459 | + benchRequest(b, gplusChi, req) |
| 460 | +} |
445 | 461 | func BenchmarkCloudyKitRouter_GPlus2Params(b *testing.B) {
|
446 | 462 | req, _ := http.NewRequest("GET", "/people/118051310819094153327/activities/123456789", nil)
|
447 | 463 | benchRequest(b, gplusCloudyKitRouter, req)
|
@@ -566,6 +582,9 @@ func BenchmarkBeego_GPlusAll(b *testing.B) {
|
566 | 582 | func BenchmarkBone_GPlusAll(b *testing.B) {
|
567 | 583 | benchRoutes(b, gplusBone, gplusAPI)
|
568 | 584 | }
|
| 585 | +func BenchmarkChi_GPlusAll(b *testing.B) { |
| 586 | + benchRoutes(b, gplusChi, gplusAPI) |
| 587 | +} |
569 | 588 | func BenchmarkCloudyKitRouter_GPlusAll(b *testing.B) {
|
570 | 589 | benchRoutes(b, gplusCloudyKitRouter, gplusAPI)
|
571 | 590 | }
|
|
0 commit comments