Skip to content

Commit 4cc1fe1

Browse files
authored
Merge pull request #16 from bmf-san/feature/update-goblin-to-6.0.2
Update goblin to 6.0.2 and reports
2 parents 3dbbe36 + 03f4f6d commit 4cc1fe1

File tree

29 files changed

+287
-285
lines changed

29 files changed

+287
-285
lines changed

README.md

+64-64
Original file line numberDiff line numberDiff line change
@@ -107,22 +107,22 @@ Benchmark system
107107
### time
108108
| time | static-routes-root | static-routes-1 | static-routes-5 | static-routes-10 |
109109
| ----------------- | ------------------ | --------------- | --------------- | ---------------- |
110-
| servemux | 24301910 | 22053468 | 13324357 | 8851803 |
111-
| goblin | 32296879 | 16738813 | 5753088 | 3111172 |
112-
| httprouter | 100000000 | 100000000 | 100000000 | 72498970 |
113-
| chi | 5396652 | 5350285 | 5353856 | 5415325 |
114-
| gin | 34933861 | 34088810 | 34136852 | 33966028 |
115-
| bunrouter | 63478486 | 54812665 | 53564055 | 54345159 |
116-
| httptreemux | 6669231 | 6219157 | 5278312 | 4300488 |
117-
| beegomux | 22320199 | 15369320 | 1000000 | 577272 |
118-
| gorillamux | 1807042 | 2104210 | 1904696 | 1869037 |
119-
| bon | 72425132 | 56830177 | 59573305 | 58364338 |
120-
| denco | 90249313 | 92561344 | 89325312 | 73905086 |
121-
| echo | 41742093 | 36207878 | 23962478 | 12379764 |
122-
| gocraftweb | 1284613 | 1262863 | 1000000 | 889360 |
123-
| gorouter | 21622920 | 28592134 | 15582778 | 9636147 |
124-
| ozzorouting | 31406931 | 34989970 | 24825552 | 19431296 |
125-
| techbook13-sample | 8176849 | 6349896 | 2684418 | 1384840 |
110+
| servemux | 22326099 | 22221638 | 13315640 | 8833089 |
111+
| goblin | 36488626 | 16842892 | 5596704 | 2954113 |
112+
| httprouter | 100000000 | 89831284 | 90506269 | 78500426 |
113+
| chi | 5444018 | 5507234 | 5507876 | 5434119 |
114+
| gin | 34423407 | 33918145 | 33814206 | 33427231 |
115+
| bunrouter | 64793797 | 54832910 | 54696386 | 54530683 |
116+
| httptreemux | 6643852 | 6495336 | 5263798 | 4144136 |
117+
| beegomux | 23409304 | 16145904 | 1000000 | 576976 |
118+
| gorillamux | 2138784 | 2112379 | 1888113 | 1849734 |
119+
| bon | 58644336 | 75074289 | 75386946 | 71121824 |
120+
| denco | 76661395 | 79387834 | 78444615 | 76890422 |
121+
| echo | 35956402 | 34636906 | 22299979 | 13134742 |
122+
| gocraftweb | 1287339 | 1267345 | 1000000 | 871116 |
123+
| gorouter | 34712218 | 26967124 | 16617764 | 8033125 |
124+
| ozzorouting | 32717011 | 36112761 | 24745796 | 18973456 |
125+
| techbook13-sample | 8303772 | 6282072 | 2716520 | 1384425 |
126126

127127
![time.png](/images/static-routes/time.png)
128128

@@ -131,22 +131,22 @@ Benchmark system
131131
### nsop
132132
| nsop | static-routes-root | static-routes-1 | static-routes-5 | static-routes-10 |
133133
| ----------------- | ------------------ | --------------- | --------------- | ---------------- |
134-
| servemux | 50.44 | 54.97 | 89.81 | 135.2 |
135-
| goblin | 36.63 | 69.9 | 205.2 | 382.7 |
136-
| httprouter | 10.65 | 10.74 | 10.75 | 16.42 |
137-
| chi | 217.2 | 220.1 | 216.7 | 221.5 |
138-
| gin | 34.53 | 34.91 | 34.69 | 35.04 |
139-
| bunrouter | 18.77 | 21.78 | 22.41 | 22 |
140-
| httptreemux | 178.8 | 190.9 | 227.2 | 277.7 |
141-
| beegomux | 55.07 | 74.69 | 1080 | 2046 |
142-
| gorillamux | 595.7 | 572.8 | 626.5 | 643.3 |
143-
| bon | 15.75 | 20.17 | 18.87 | 19.16 |
144-
| denco | 14 | 13.03 | 13.4 | 15.87 |
145-
| echo | 28.17 | 32.83 | 49.82 | 96.77 |
146-
| gocraftweb | 929.4 | 948.8 | 1078 | 1215 |
147-
| gorouter | 55.16 | 37.64 | 76.6 | 124.1 |
148-
| ozzorouting | 42.62 | 34.22 | 48.12 | 61.6 |
149-
| techbook13-sample | 146.1 | 188.4 | 443.5 | 867.8 |
134+
| servemux | 52.1 | 54.81 | 89.24 | 136.2 |
135+
| goblin | 33.08 | 68.89 | 209.3 | 406.1 |
136+
| httprouter | 10.57 | 13.77 | 13.87 | 15.81 |
137+
| chi | 212.1 | 217.3 | 214.1 | 216.1 |
138+
| gin | 34.95 | 35.42 | 35.3 | 35.71 |
139+
| bunrouter | 18.83 | 21.58 | 21.85 | 21.94 |
140+
| httptreemux | 178.8 | 184.1 | 226.5 | 287.8 |
141+
| beegomux | 50.65 | 72.42 | 1074 | 2039 |
142+
| gorillamux | 563.6 | 570 | 620.1 | 649.3 |
143+
| bon | 20.41 | 16.14 | 16.02 | 16.86 |
144+
| denco | 15.85 | 15.28 | 15.31 | 16.05 |
145+
| echo | 32.97 | 34.06 | 53.8 | 90.54 |
146+
| gocraftweb | 929.6 | 945.4 | 1075 | 1212 |
147+
| gorouter | 35.38 | 44.54 | 71.98 | 149.4 |
148+
| ozzorouting | 39.76 | 33.46 | 47.27 | 62.27 |
149+
| techbook13-sample | 145.2 | 189.3 | 447.4 | 865 |
150150

151151
![nsop.png](/images/static-routes/nsop.png)
152152

@@ -204,21 +204,21 @@ Benchmark system
204204
### time
205205
| time | pathparam-routes-1 | pathparam-routes-5 | pathparam-routes-10 |
206206
| ----------------- | ------------------ | ------------------ | ------------------- |
207-
| goblin | 1802690 | 492392 | 252274 |
208-
| httprouter | 25775940 | 10057874 | 6060843 |
209-
| chi | 4337922 | 2687157 | 1772881 |
210-
| gin | 29479381 | 15714673 | 9586220 |
211-
| bunrouter | 37098772 | 8479642 | 3747968 |
212-
| httptreemux | 2610324 | 1550306 | 706356 |
213-
| beegomux | 3177818 | 797472 | 343969 |
214-
| gorillamux | 1364386 | 470180 | 223627 |
215-
| bon | 6639216 | 4486780 | 3285571 |
216-
| denco | 20093167 | 8503317 | 4988640 |
217-
| echo | 30667137 | 12028713 | 6721176 |
218-
| gocraftweb | 921375 | 734821 | 466641 |
219-
| gorouter | 4678617 | 3038450 | 2136946 |
220-
| ozzorouting | 27126000 | 12228037 | 7923040 |
221-
| techbook13-sample | 3019774 | 917042 | 522897 |
207+
| goblin | 1982352 | 558514 | 309733 |
208+
| httprouter | 26343277 | 9935683 | 5878401 |
209+
| chi | 4295593 | 2661771 | 1872310 |
210+
| gin | 28992159 | 15262336 | 9485934 |
211+
| bunrouter | 36372362 | 8543359 | 4185458 |
212+
| httptreemux | 3131305 | 1570034 | 800544 |
213+
| beegomux | 3223519 | 785046 | 341499 |
214+
| gorillamux | 1343919 | 497670 | 223892 |
215+
| bon | 6345180 | 4494978 | 3316269 |
216+
| denco | 18371928 | 8272776 | 4986136 |
217+
| echo | 30776793 | 12063312 | 6765202 |
218+
| gocraftweb | 928831 | 701330 | 478106 |
219+
| gorouter | 4774634 | 3027898 | 2249437 |
220+
| ozzorouting | 28624587 | 13896279 | 8578918 |
221+
| techbook13-sample | 3140194 | 958357 | 513632 |
222222

223223
![time.png](/images/pathparam-routes/time.png)
224224

@@ -227,21 +227,21 @@ Benchmark system
227227
### nsop
228228
| nsop | pathparam-routes-1 | pathparam-routes-5 | pathparam-routes-10 |
229229
| ----------------- | ------------------ | ------------------ | ------------------- |
230-
| goblin | 652.4 | 2341 | 4504 |
231-
| httprouter | 45.73 | 117.4 | 204.2 |
232-
| chi | 276.4 | 442.8 | 677.6 |
233-
| gin | 40.21 | 76.39 | 124.3 |
234-
| bunrouter | 32.52 | 141.1 | 317.2 |
235-
| httptreemux | 399.7 | 778.5 | 1518 |
236-
| beegomux | 377.2 | 1446 | 3398 |
237-
| gorillamux | 850.3 | 2423 | 5264 |
238-
| bon | 186.5 | 269.6 | 364.4 |
239-
| denco | 60.47 | 139.4 | 238.7 |
240-
| echo | 39.36 | 99.6 | 175.7 |
241-
| gocraftweb | 1181 | 1540 | 2280 |
242-
| gorouter | 256.4 | 393 | 557.6 |
243-
| ozzorouting | 43.66 | 99.52 | 150.4 |
244-
| techbook13-sample | 380.7 | 1154 | 2150 |
230+
| goblin | 593.8 | 1959 | 3742 |
231+
| httprouter | 44.82 | 118 | 201.8 |
232+
| chi | 279.6 | 444.7 | 639.5 |
233+
| gin | 41.17 | 77.84 | 126.2 |
234+
| bunrouter | 32.89 | 140.2 | 287.7 |
235+
| httptreemux | 377.9 | 769.9 | 1486 |
236+
| beegomux | 375.1 | 1442 | 3388 |
237+
| gorillamux | 888.9 | 2285 | 5239 |
238+
| bon | 188 | 266 | 360.4 |
239+
| denco | 58.08 | 143.6 | 240 |
240+
| echo | 38.51 | 98.88 | 176.6 |
241+
| gocraftweb | 1159 | 1541 | 2230 |
242+
| gorouter | 249.8 | 395.5 | 531 |
243+
| ozzorouting | 42.01 | 85.95 | 139.3 |
244+
| techbook13-sample | 381.8 | 1163 | 2165 |
245245

246246
![nsop.png](/images/pathparam-routes/nsop.png)
247247

@@ -250,7 +250,7 @@ Benchmark system
250250
### bop
251251
| bop | pathparam-routes-1 | pathparam-routes-5 | pathparam-routes-10 |
252252
| ----------------- | ------------------ | ------------------ | ------------------- |
253-
| goblin | 409 | 962 | 1608 |
253+
| goblin | 376 | 591 | 810 |
254254
| httprouter | 32 | 160 | 320 |
255255
| chi | 304 | 304 | 304 |
256256
| gin | 0 | 0 | 0 |
@@ -273,7 +273,7 @@ Benchmark system
273273
### allocs
274274
| allocs | pathparam-routes-1 | pathparam-routes-5 | pathparam-routes-10 |
275275
| ----------------- | ------------------ | ------------------ | ------------------- |
276-
| goblin | 6 | 13 | 19 |
276+
| goblin | 5 | 9 | 14 |
277277
| httprouter | 1 | 1 | 1 |
278278
| chi | 2 | 2 | 2 |
279279
| gin | 0 | 0 | 0 |

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.19
44

55
require (
66
github.com/beego/mux v0.0.0-20170807094426-6660b4b5accb
7-
github.com/bmf-san/goblin v0.0.0-20221113073440-d4f43eb17a34
7+
github.com/bmf-san/goblin v0.0.0-20221231094735-37f4d70c5a1a
88
github.com/dimfeld/httptreemux/v5 v5.5.0
99
github.com/gin-gonic/gin v1.8.2
1010
github.com/go-chi/chi/v5 v5.0.8

go.sum

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ github.com/beego/mux v0.0.0-20170807094426-6660b4b5accb h1:axnOt7m6K48TKsOVlimWm
44
github.com/beego/mux v0.0.0-20170807094426-6660b4b5accb/go.mod h1:0taFqEAcm55Z4UtLzfKmpPdnLq537xGk/95OF2/0ebQ=
55
github.com/bmf-san/goblin v0.0.0-20221113073440-d4f43eb17a34 h1:uNc3TdXtnNT2OKR8vKsIDN+t4aw1/TbS42FMQk+AOc4=
66
github.com/bmf-san/goblin v0.0.0-20221113073440-d4f43eb17a34/go.mod h1:/zoFMy/CFURR5N5AHbIwFPf/3fZs3VzovMZKuQ40r2s=
7+
github.com/bmf-san/goblin v0.0.0-20221231094735-37f4d70c5a1a h1:4QFX6f2qvPY5BXCajhCGr3IddPSWngz0JAYPlHf9xm0=
8+
github.com/bmf-san/goblin v0.0.0-20221231094735-37f4d70c5a1a/go.mod h1:/zoFMy/CFURR5N5AHbIwFPf/3fZs3VzovMZKuQ40r2s=
79
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
810
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
911
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=

images/pathparam-routes/allocs.png

-376 Bytes
Loading

images/pathparam-routes/bop.png

-666 Bytes
Loading

images/pathparam-routes/nsop.png

305 Bytes
Loading

images/pathparam-routes/time.png

125 Bytes
Loading

images/static-routes/nsop.png

-563 Bytes
Loading

images/static-routes/time.png

-1.57 KB
Loading

reports/pathparam-routes-1/allocs.csv

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
BenchmarkPathParamRoutes1ColonGoblin-8,6
1+
BenchmarkPathParamRoutes1ColonGoblin-8,5
22
BenchmarkPathParamRoutes1ColonHTTPRouter-8,1
33
BenchmarkPathParamRoutes1BracketChi-8,2
44
BenchmarkPathParamRoutes1ColonGin-8,0

reports/pathparam-routes-1/bop.csv

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
BenchmarkPathParamRoutes1ColonGoblin-8,409
1+
BenchmarkPathParamRoutes1ColonGoblin-8,376
22
BenchmarkPathParamRoutes1ColonHTTPRouter-8,32
33
BenchmarkPathParamRoutes1BracketChi-8,304
44
BenchmarkPathParamRoutes1ColonGin-8,0

reports/pathparam-routes-1/nsop.csv

+15-15
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
BenchmarkPathParamRoutes1ColonGoblin-8,652.4
2-
BenchmarkPathParamRoutes1ColonHTTPRouter-8,45.73
3-
BenchmarkPathParamRoutes1BracketChi-8,276.4
4-
BenchmarkPathParamRoutes1ColonGin-8,40.21
5-
BenchmarkPathParamRoutes1ColonBunRouter-8,32.52
6-
BenchmarkPathParamRoutes1ColonHTTPTreeMux-8,399.7
7-
BenchmarkPathParamRoutes1ColonBeegoMux-8,377.2
8-
BenchmarkPathParamRoutes1BracketGorillaMux-8,850.3
9-
BenchmarkPathParamRoutes1ColonBon-8,186.5
10-
BenchmarkPathParamRoutes1ColonDenco-8,60.47
11-
BenchmarkPathParamRoutes1ColonEcho-8,39.36
12-
BenchmarkPathParamRoutes1ColonGocraftWeb-8,1181
13-
BenchmarkPathParamRoutes1BracketGorouter-8,256.4
14-
BenchmarkPathParamRoutes1InequalitySignOzzoRouting-8,43.66
15-
BenchmarkPathParamRoutes1ColonN9tE9Routing-8,380.7
1+
BenchmarkPathParamRoutes1ColonGoblin-8,593.8
2+
BenchmarkPathParamRoutes1ColonHTTPRouter-8,44.82
3+
BenchmarkPathParamRoutes1BracketChi-8,279.6
4+
BenchmarkPathParamRoutes1ColonGin-8,41.17
5+
BenchmarkPathParamRoutes1ColonBunRouter-8,32.89
6+
BenchmarkPathParamRoutes1ColonHTTPTreeMux-8,377.9
7+
BenchmarkPathParamRoutes1ColonBeegoMux-8,375.1
8+
BenchmarkPathParamRoutes1BracketGorillaMux-8,888.9
9+
BenchmarkPathParamRoutes1ColonBon-8,188.0
10+
BenchmarkPathParamRoutes1ColonDenco-8,58.08
11+
BenchmarkPathParamRoutes1ColonEcho-8,38.51
12+
BenchmarkPathParamRoutes1ColonGocraftWeb-8,1159
13+
BenchmarkPathParamRoutes1BracketGorouter-8,249.8
14+
BenchmarkPathParamRoutes1InequalitySignOzzoRouting-8,42.01
15+
BenchmarkPathParamRoutes1ColonN9tE9Routing-8,381.8

reports/pathparam-routes-1/time.csv

+15-15
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
BenchmarkPathParamRoutes1ColonGoblin-8,1802690
2-
BenchmarkPathParamRoutes1ColonHTTPRouter-8,25775940
3-
BenchmarkPathParamRoutes1BracketChi-8,4337922
4-
BenchmarkPathParamRoutes1ColonGin-8,29479381
5-
BenchmarkPathParamRoutes1ColonBunRouter-8,37098772
6-
BenchmarkPathParamRoutes1ColonHTTPTreeMux-8,2610324
7-
BenchmarkPathParamRoutes1ColonBeegoMux-8,3177818
8-
BenchmarkPathParamRoutes1BracketGorillaMux-8,1364386
9-
BenchmarkPathParamRoutes1ColonBon-8,6639216
10-
BenchmarkPathParamRoutes1ColonDenco-8,20093167
11-
BenchmarkPathParamRoutes1ColonEcho-8,30667137
12-
BenchmarkPathParamRoutes1ColonGocraftWeb-8,921375
13-
BenchmarkPathParamRoutes1BracketGorouter-8,4678617
14-
BenchmarkPathParamRoutes1InequalitySignOzzoRouting-8,27126000
15-
BenchmarkPathParamRoutes1ColonN9tE9Routing-8,3019774
1+
BenchmarkPathParamRoutes1ColonGoblin-8,1982352
2+
BenchmarkPathParamRoutes1ColonHTTPRouter-8,26343277
3+
BenchmarkPathParamRoutes1BracketChi-8,4295593
4+
BenchmarkPathParamRoutes1ColonGin-8,28992159
5+
BenchmarkPathParamRoutes1ColonBunRouter-8,36372362
6+
BenchmarkPathParamRoutes1ColonHTTPTreeMux-8,3131305
7+
BenchmarkPathParamRoutes1ColonBeegoMux-8,3223519
8+
BenchmarkPathParamRoutes1BracketGorillaMux-8,1343919
9+
BenchmarkPathParamRoutes1ColonBon-8,6345180
10+
BenchmarkPathParamRoutes1ColonDenco-8,18371928
11+
BenchmarkPathParamRoutes1ColonEcho-8,30776793
12+
BenchmarkPathParamRoutes1ColonGocraftWeb-8,928831
13+
BenchmarkPathParamRoutes1BracketGorouter-8,4774634
14+
BenchmarkPathParamRoutes1InequalitySignOzzoRouting-8,28624587
15+
BenchmarkPathParamRoutes1ColonN9tE9Routing-8,3140194

reports/pathparam-routes-10/allocs.csv

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
BenchmarkPathParamRoutes10ColonGoblin-8,19
1+
BenchmarkPathParamRoutes10ColonGoblin-8,14
22
BenchmarkPathParamRoutes10ColonHTTPRouter-8,1
33
BenchmarkPathParamRoutes10BracketChi-8,2
44
BenchmarkPathParamRoutes10ColonGin-8,0

reports/pathparam-routes-10/bop.csv

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
BenchmarkPathParamRoutes10ColonGoblin-8,1608
1+
BenchmarkPathParamRoutes10ColonGoblin-8,810
22
BenchmarkPathParamRoutes10ColonHTTPRouter-8,320
33
BenchmarkPathParamRoutes10BracketChi-8,304
44
BenchmarkPathParamRoutes10ColonGin-8,0

0 commit comments

Comments
 (0)