Skip to content

Instantly share code, notes, and snippets.

@ant0ine
Created February 18, 2015 07:53
Show Gist options
  • Save ant0ine/3caede217dda281dcedb to your computer and use it in GitHub Desktop.
Save ant0ine/3caede217dda281dcedb to your computer and use it in GitHub Desktop.
julienschmidt/go-http-routing-benchmark MacBookAir 02/17/2015
#GithubAPI Routes: 203
Ace: 54072 Bytes
Bear: 84024 Bytes
Beego: 165000 Bytes
Bone: 92960 Bytes
Denco: 37016 Bytes
Gin: 60496 Bytes
GocraftWeb: 89048 Bytes
Goji: 50568 Bytes
GoJsonRest: 134552 Bytes
GoRestful: 1385592 Bytes
GorillaMux: 1493136 Bytes
HttpRouter: 37720 Bytes
HttpTreeMux: 74992 Bytes
Kocha: 785264 Bytes
Macaron: 104104 Bytes
Martini: 477008 Bytes
Pat: 15832 Bytes
Revel: 140880 Bytes
Rivet: 110080 Bytes
Tango: 22864 Bytes
TigerTonic: 96240 Bytes
Traffic: 1053488 Bytes
Vulcan: 426208 Bytes
Zeus: 46368 Bytes
#GPlusAPI Routes: 13
Ace: 3896 Bytes
Bear: 7096 Bytes
Beego: 11368 Bytes
Bone: 6160 Bytes
Denco: 3256 Bytes
Gin: 4432 Bytes
GocraftWeb: 7032 Bytes
Goji: 3136 Bytes
GoJsonRest: 11416 Bytes
GoRestful: 89688 Bytes
GorillaMux: 71056 Bytes
HttpRouter: 2744 Bytes
HttpTreeMux: 7120 Bytes
Kocha: 128880 Bytes
Macaron: 8264 Bytes
Martini: 23920 Bytes
Pat: 1448 Bytes
Revel: 10768 Bytes
Rivet: 7896 Bytes
Tango: 3168 Bytes
TigerTonic: 9408 Bytes
Traffic: 49488 Bytes
Vulcan: 25496 Bytes
Zeus: 3280 Bytes
#ParseAPI Routes: 26
Ace: 7184 Bytes
Bear: 12304 Bytes
Beego: 21040 Bytes
Bone: 10672 Bytes
Denco: 4184 Bytes
Gin: 7960 Bytes
GocraftWeb: 12128 Bytes
Goji: 5664 Bytes
GoJsonRest: 14232 Bytes
GoRestful: 143368 Bytes
GorillaMux: 122136 Bytes
HttpRouter: 4992 Bytes
HttpTreeMux: 7616 Bytes
Kocha: 181712 Bytes
Macaron: 13384 Bytes
Martini: 45968 Bytes
Pat: 1976 Bytes
Revel: 15488 Bytes
Rivet: 13496 Bytes
Tango: 4432 Bytes
TigerTonic: 9840 Bytes
Traffic: 93496 Bytes
Vulcan: 44296 Bytes
Zeus: 4624 Bytes
#Static Routes: 157
HttpServeMux: 17728 Bytes
Ace: 34056 Bytes
Bear: 30616 Bytes
Beego: 103240 Bytes
Bone: 40560 Bytes
Denco: 9696 Bytes
Gin: 38192 Bytes
GocraftWeb: 51080 Bytes
Goji: 29728 Bytes
GoJsonRest: 136184 Bytes
GoRestful: 902584 Bytes
GorillaMux: 668512 Bytes
HttpRouter: 21384 Bytes
HttpTreeMux: 73288 Bytes
Kocha: 114672 Bytes
Macaron: 51544 Bytes
Martini: 309056 Bytes
Pat: 15704 Bytes
Revel: 93392 Bytes
Rivet: 42872 Bytes
Tango: 256240 Bytes
TigerTonic: 80112 Bytes
Traffic: 624416 Bytes
Vulcan: 624416 Bytes
Zeus: 34336 Bytes
testing: warning: no tests to run
PASS
BenchmarkAce_Param 5000000 359 ns/op 32 B/op 1 allocs/op
BenchmarkBear_Param 1000000 1619 ns/op 424 B/op 5 allocs/op
BenchmarkBeego_Param 1000000 3390 ns/op 720 B/op 10 allocs/op
BenchmarkBone_Param 1000000 1542 ns/op 384 B/op 3 allocs/op
BenchmarkDenco_Param 5000000 352 ns/op 32 B/op 1 allocs/op
BenchmarkGin_Param 5000000 388 ns/op 32 B/op 1 allocs/op
BenchmarkGocraftWeb_Param 1000000 2670 ns/op 656 B/op 9 allocs/op
BenchmarkGoji_Param 1000000 1375 ns/op 336 B/op 2 allocs/op
BenchmarkGoJsonRest_Param 1000000 2859 ns/op 657 B/op 14 allocs/op
BenchmarkGoRestful_Param 300000 5235 ns/op 592 B/op 17 allocs/op
BenchmarkGorillaMux_Param 500000 4905 ns/op 784 B/op 9 allocs/op
BenchmarkHttpRouter_Param 10000000 230 ns/op 32 B/op 1 allocs/op
BenchmarkHttpTreeMux_Param 1000000 1037 ns/op 336 B/op 2 allocs/op
BenchmarkKocha_Param 2000000 624 ns/op 56 B/op 3 allocs/op
BenchmarkMacaron_Param 300000 5481 ns/op 1144 B/op 13 allocs/op
BenchmarkMartini_Param 200000 11047 ns/op 1152 B/op 12 allocs/op
BenchmarkPat_Param 1000000 2926 ns/op 656 B/op 14 allocs/op
BenchmarkRevel_Param 200000 9846 ns/op 1672 B/op 28 allocs/op
BenchmarkRivet_Param 1000000 1667 ns/op 464 B/op 5 allocs/op
BenchmarkTango_Param 1000000 3191 ns/op 712 B/op 13 allocs/op
BenchmarkTigerTonic_Param 300000 4793 ns/op 992 B/op 19 allocs/op
BenchmarkTraffic_Param 200000 7944 ns/op 1984 B/op 23 allocs/op
BenchmarkVulcan_Param 1000000 1324 ns/op 98 B/op 3 allocs/op
BenchmarkZeus_Param 1000000 1453 ns/op 368 B/op 3 allocs/op
BenchmarkAce_Param5 2000000 706 ns/op 160 B/op 1 allocs/op
BenchmarkBear_Param5 1000000 2199 ns/op 469 B/op 5 allocs/op
BenchmarkBeego_Param5 500000 4739 ns/op 992 B/op 13 allocs/op
BenchmarkBone_Param5 1000000 2103 ns/op 432 B/op 3 allocs/op
BenchmarkDenco_Param5 2000000 828 ns/op 160 B/op 1 allocs/op
BenchmarkGin_Param5 2000000 726 ns/op 160 B/op 1 allocs/op
BenchmarkGocraftWeb_Param5 500000 4083 ns/op 928 B/op 12 allocs/op
BenchmarkGoji_Param5 1000000 1878 ns/op 336 B/op 2 allocs/op
BenchmarkGoJsonRest_Param5 500000 5114 ns/op 1105 B/op 17 allocs/op
BenchmarkGoRestful_Param5 300000 6011 ns/op 592 B/op 17 allocs/op
BenchmarkGorillaMux_Param5 200000 8044 ns/op 912 B/op 9 allocs/op
BenchmarkHttpRouter_Param5 3000000 581 ns/op 160 B/op 1 allocs/op
BenchmarkHttpTreeMux_Param5 1000000 1529 ns/op 336 B/op 2 allocs/op
BenchmarkKocha_Param5 1000000 2290 ns/op 440 B/op 10 allocs/op
BenchmarkMacaron_Param5 200000 6520 ns/op 1416 B/op 16 allocs/op
BenchmarkMartini_Param5 100000 22038 ns/op 1280 B/op 12 allocs/op
BenchmarkPat_Param5 300000 7191 ns/op 1008 B/op 42 allocs/op
BenchmarkRevel_Param5 200000 11756 ns/op 2024 B/op 35 allocs/op
BenchmarkRivet_Param5 1000000 2717 ns/op 528 B/op 9 allocs/op
BenchmarkTango_Param5 300000 5254 ns/op 856 B/op 29 allocs/op
BenchmarkTigerTonic_Param5 100000 16654 ns/op 2519 B/op 53 allocs/op
BenchmarkTraffic_Param5 200000 12365 ns/op 2280 B/op 31 allocs/op
BenchmarkVulcan_Param5 1000000 1759 ns/op 98 B/op 3 allocs/op
BenchmarkZeus_Param5 1000000 2176 ns/op 416 B/op 3 allocs/op
BenchmarkAce_Param20 1000000 1978 ns/op 640 B/op 1 allocs/op
BenchmarkBear_Param20 200000 6718 ns/op 1633 B/op 5 allocs/op
BenchmarkBeego_Param20 100000 14537 ns/op 3868 B/op 17 allocs/op
BenchmarkBone_Param20 200000 9844 ns/op 2539 B/op 5 allocs/op
BenchmarkDenco_Param20 1000000 2619 ns/op 640 B/op 1 allocs/op
BenchmarkGin_Param20 1000000 1957 ns/op 640 B/op 1 allocs/op
BenchmarkGocraftWeb_Param20 200000 13263 ns/op 3804 B/op 16 allocs/op
BenchmarkGoji_Param20 500000 5496 ns/op 1247 B/op 2 allocs/op
BenchmarkGoJsonRest_Param20 100000 17575 ns/op 4492 B/op 21 allocs/op
BenchmarkGoRestful_Param20 300000 7039 ns/op 592 B/op 17 allocs/op
BenchmarkGorillaMux_Param20 100000 17701 ns/op 3275 B/op 11 allocs/op
BenchmarkHttpRouter_Param20 1000000 1794 ns/op 640 B/op 1 allocs/op
BenchmarkHttpTreeMux_Param20 200000 8749 ns/op 2187 B/op 4 allocs/op
BenchmarkKocha_Param20 200000 7392 ns/op 1808 B/op 27 allocs/op
BenchmarkMacaron_Param20 100000 16437 ns/op 4292 B/op 20 allocs/op
BenchmarkMartini_Param20 20000 90114 ns/op 3644 B/op 14 allocs/op
BenchmarkPat_Param20 50000 34752 ns/op 4887 B/op 151 allocs/op
BenchmarkRevel_Param20 100000 22898 ns/op 5551 B/op 54 allocs/op
BenchmarkRivet_Param20 200000 11320 ns/op 2619 B/op 26 allocs/op
BenchmarkTango_Param20 100000 19130 ns/op 3654 B/op 91 allocs/op
BenchmarkTigerTonic_Param20 20000 65955 ns/op 10546 B/op 178 allocs/op
BenchmarkTraffic_Param20 50000 40877 ns/op 8000 B/op 66 allocs/op
BenchmarkVulcan_Param20 500000 3049 ns/op 98 B/op 3 allocs/op
BenchmarkZeus_Param20 200000 9291 ns/op 2508 B/op 5 allocs/op
BenchmarkAce_ParamWrite 3000000 536 ns/op 40 B/op 2 allocs/op
BenchmarkBear_ParamWrite 1000000 1673 ns/op 432 B/op 6 allocs/op
BenchmarkBeego_ParamWrite 500000 3380 ns/op 728 B/op 11 allocs/op
BenchmarkBone_ParamWrite 1000000 1755 ns/op 432 B/op 4 allocs/op
BenchmarkDenco_ParamWrite 3000000 448 ns/op 32 B/op 1 allocs/op
BenchmarkGin_ParamWrite 3000000 555 ns/op 40 B/op 2 allocs/op
BenchmarkGocraftWeb_ParamWrite 1000000 2794 ns/op 664 B/op 10 allocs/op
BenchmarkGoji_ParamWrite 1000000 1402 ns/op 336 B/op 2 allocs/op
BenchmarkGoJsonRest_ParamWrite 500000 4503 ns/op 1136 B/op 19 allocs/op
BenchmarkGoRestful_ParamWrite 300000 5116 ns/op 592 B/op 17 allocs/op
BenchmarkGorillaMux_ParamWrite 300000 5167 ns/op 792 B/op 10 allocs/op
BenchmarkHttpRouter_ParamWrite 5000000 313 ns/op 32 B/op 1 allocs/op
BenchmarkHttpTreeMux_ParamWrite 1000000 1140 ns/op 336 B/op 2 allocs/op
BenchmarkKocha_ParamWrite 2000000 723 ns/op 56 B/op 3 allocs/op
BenchmarkMacaron_ParamWrite 300000 6500 ns/op 1216 B/op 16 allocs/op
BenchmarkMartini_ParamWrite 200000 12579 ns/op 1256 B/op 16 allocs/op
BenchmarkPat_ParamWrite 300000 4913 ns/op 1088 B/op 19 allocs/op
BenchmarkRevel_ParamWrite 200000 11549 ns/op 2128 B/op 33 allocs/op
BenchmarkRivet_ParamWrite 1000000 1877 ns/op 472 B/op 6 allocs/op
BenchmarkTango_ParamWrite 500000 3204 ns/op 712 B/op 13 allocs/op
BenchmarkTigerTonic_ParamWrite 200000 7827 ns/op 1440 B/op 25 allocs/op
BenchmarkTraffic_ParamWrite 200000 9965 ns/op 2400 B/op 27 allocs/op
BenchmarkVulcan_ParamWrite 1000000 1334 ns/op 98 B/op 3 allocs/op
BenchmarkZeus_ParamWrite 1000000 1759 ns/op 416 B/op 4 allocs/op
BenchmarkAce_GithubStatic 10000000 219 ns/op 0 B/op 0 allocs/op
BenchmarkBear_GithubStatic 2000000 787 ns/op 88 B/op 3 allocs/op
BenchmarkBeego_GithubStatic 1000000 2212 ns/op 368 B/op 7 allocs/op
BenchmarkBone_GithubStatic 100000 16382 ns/op 2880 B/op 60 allocs/op
BenchmarkDenco_GithubStatic 20000000 113 ns/op 0 B/op 0 allocs/op
BenchmarkGin_GithubStatic 5000000 243 ns/op 0 B/op 0 allocs/op
BenchmarkGocraftWeb_GithubStatic 1000000 1603 ns/op 304 B/op 6 allocs/op
BenchmarkGoji_GithubStatic 3000000 532 ns/op 0 B/op 0 allocs/op
BenchmarkGoRestful_GithubStatic 20000 65775 ns/op 3232 B/op 35 allocs/op
BenchmarkGoJsonRest_GithubStatic 1000000 2099 ns/op 337 B/op 12 allocs/op
BenchmarkGorillaMux_GithubStatic 50000 32296 ns/op 464 B/op 8 allocs/op
BenchmarkHttpRouter_GithubStatic 20000000 110 ns/op 0 B/op 0 allocs/op
BenchmarkHttpTreeMux_GithubStatic 20000000 103 ns/op 0 B/op 0 allocs/op
BenchmarkKocha_GithubStatic 10000000 161 ns/op 0 B/op 0 allocs/op
BenchmarkMacaron_GithubStatic 500000 3529 ns/op 752 B/op 8 allocs/op
BenchmarkMartini_GithubStatic 50000 31093 ns/op 832 B/op 11 allocs/op
BenchmarkPat_GithubStatic 100000 17933 ns/op 3648 B/op 76 allocs/op
BenchmarkRevel_GithubStatic 200000 8832 ns/op 1288 B/op 25 allocs/op
BenchmarkRivet_GithubStatic 2000000 670 ns/op 112 B/op 2 allocs/op
BenchmarkTango_GithubStatic 1000000 1825 ns/op 320 B/op 8 allocs/op
BenchmarkTigerTonic_GithubStatic 3000000 506 ns/op 48 B/op 1 allocs/op
BenchmarkTraffic_GithubStatic 20000 63100 ns/op 18920 B/op 149 allocs/op
BenchmarkVulcan_GithubStatic 1000000 1982 ns/op 98 B/op 3 allocs/op
BenchmarkZeus_GithubStatic 500000 3615 ns/op 512 B/op 11 allocs/op
BenchmarkAce_GithubParam 2000000 628 ns/op 96 B/op 1 allocs/op
BenchmarkBear_GithubParam 1000000 2087 ns/op 464 B/op 5 allocs/op
BenchmarkBeego_GithubParam 500000 4171 ns/op 784 B/op 11 allocs/op
BenchmarkBone_GithubParam 200000 8781 ns/op 1456 B/op 16 allocs/op
BenchmarkDenco_GithubParam 2000000 742 ns/op 128 B/op 1 allocs/op
BenchmarkGin_GithubParam 2000000 645 ns/op 96 B/op 1 allocs/op
BenchmarkGocraftWeb_GithubParam 1000000 3207 ns/op 720 B/op 10 allocs/op
BenchmarkGoji_GithubParam 1000000 2108 ns/op 336 B/op 2 allocs/op
BenchmarkGoJsonRest_GithubParam 500000 3905 ns/op 721 B/op 15 allocs/op
BenchmarkGoRestful_GithubParam 30000 57971 ns/op 592 B/op 17 allocs/op
BenchmarkGorillaMux_GithubParam 100000 19470 ns/op 816 B/op 9 allocs/op
BenchmarkHttpRouter_GithubParam 3000000 499 ns/op 96 B/op 1 allocs/op
BenchmarkHttpTreeMux_GithubParam 1000000 1327 ns/op 336 B/op 2 allocs/op
BenchmarkKocha_GithubParam 1000000 1208 ns/op 128 B/op 5 allocs/op
BenchmarkMacaron_GithubParam 500000 5162 ns/op 1168 B/op 12 allocs/op
BenchmarkMartini_GithubParam 50000 41761 ns/op 1184 B/op 12 allocs/op
BenchmarkPat_GithubParam 200000 12018 ns/op 2480 B/op 56 allocs/op
BenchmarkRevel_GithubParam 200000 10540 ns/op 1784 B/op 30 allocs/op
BenchmarkRivet_GithubParam 1000000 2127 ns/op 480 B/op 6 allocs/op
BenchmarkTango_GithubParam 200000 10746 ns/op 2240 B/op 48 allocs/op
BenchmarkTigerTonic_GithubParam 200000 8613 ns/op 1440 B/op 28 allocs/op
BenchmarkTraffic_GithubParam 50000 28185 ns/op 6024 B/op 55 allocs/op
BenchmarkVulcan_GithubParam 500000 3065 ns/op 98 B/op 3 allocs/op
BenchmarkZeus_GithubParam 500000 5529 ns/op 1312 B/op 12 allocs/op
BenchmarkAce_GithubAll 10000 121166 ns/op 13792 B/op 167 allocs/op
BenchmarkBear_GithubAll 5000 406728 ns/op 79952 B/op 943 allocs/op
BenchmarkBeego_GithubAll 2000 803967 ns/op 146272 B/op 2092 allocs/op
BenchmarkBone_GithubAll 500 3573644 ns/op 648016 B/op 8119 allocs/op
BenchmarkDenco_GithubAll 10000 136078 ns/op 20224 B/op 167 allocs/op
BenchmarkGin_GithubAll 10000 117567 ns/op 13792 B/op 167 allocs/op
BenchmarkGocraftWeb_GithubAll 3000 611306 ns/op 133280 B/op 1889 allocs/op
BenchmarkGoji_GithubAll 2000 950145 ns/op 56113 B/op 334 allocs/op
BenchmarkGoJsonRest_GithubAll 3000 760377 ns/op 135995 B/op 2940 allocs/op
BenchmarkGoRestful_GithubAll 100 14048153 ns/op 649140 B/op 7355 allocs/op
BenchmarkGorillaMux_GithubAll 100 11047540 ns/op 153137 B/op 1791 allocs/op
BenchmarkHttpRouter_GithubAll 20000 90002 ns/op 13792 B/op 167 allocs/op
BenchmarkHttpTreeMux_GithubAll 10000 225599 ns/op 56112 B/op 334 allocs/op
BenchmarkKocha_GithubAll 10000 237801 ns/op 23304 B/op 843 allocs/op
BenchmarkMacaron_GithubAll 2000 1127714 ns/op 224960 B/op 2315 allocs/op
BenchmarkMartini_GithubAll 100 18187558 ns/op 237953 B/op 2686 allocs/op
BenchmarkPat_GithubAll 200 6615438 ns/op 1504101 B/op 32222 allocs/op
BenchmarkRevel_GithubAll 1000 2109704 ns/op 345553 B/op 5918 allocs/op
BenchmarkRivet_GithubAll 5000 380202 ns/op 84272 B/op 1079 allocs/op
BenchmarkTango_GithubAll 300 5715616 ns/op 1338664 B/op 27736 allocs/op
BenchmarkTigerTonic_GithubAll 1000 1570688 ns/op 241088 B/op 6052 allocs/op
BenchmarkTraffic_GithubAll 100 12060009 ns/op 2664763 B/op 22390 allocs/op
BenchmarkVulcan_GithubAll 3000 486329 ns/op 19894 B/op 609 allocs/op
BenchmarkZeus_GithubAll 1000 1206334 ns/op 300688 B/op 2648 allocs/op
BenchmarkAce_GPlusStatic 10000000 174 ns/op 0 B/op 0 allocs/op
BenchmarkBear_GPlusStatic 3000000 559 ns/op 72 B/op 3 allocs/op
BenchmarkBeego_GPlusStatic 1000000 1968 ns/op 352 B/op 7 allocs/op
BenchmarkBone_GPlusStatic 5000000 268 ns/op 32 B/op 1 allocs/op
BenchmarkDenco_GPlusStatic 20000000 67.7 ns/op 0 B/op 0 allocs/op
BenchmarkGin_GPlusStatic 10000000 194 ns/op 0 B/op 0 allocs/op
BenchmarkGocraftWeb_GPlusStatic 1000000 1470 ns/op 288 B/op 6 allocs/op
BenchmarkGoji_GPlusStatic 5000000 397 ns/op 0 B/op 0 allocs/op
BenchmarkGoJsonRest_GPlusStatic 1000000 1891 ns/op 337 B/op 12 allocs/op
BenchmarkGoRestful_GPlusStatic 100000 12579 ns/op 1872 B/op 29 allocs/op
BenchmarkGorillaMux_GPlusStatic 500000 3285 ns/op 464 B/op 8 allocs/op
BenchmarkHttpRouter_GPlusStatic 30000000 61.1 ns/op 0 B/op 0 allocs/op
BenchmarkHttpTreeMux_GPlusStatic 20000000 62.8 ns/op 0 B/op 0 allocs/op
BenchmarkKocha_GPlusStatic 10000000 112 ns/op 0 B/op 0 allocs/op
BenchmarkMacaron_GPlusStatic 500000 3397 ns/op 736 B/op 8 allocs/op
BenchmarkMartini_GPlusStatic 200000 7879 ns/op 832 B/op 11 allocs/op
BenchmarkPat_GPlusStatic 3000000 539 ns/op 96 B/op 2 allocs/op
BenchmarkRevel_GPlusStatic 200000 8568 ns/op 1272 B/op 25 allocs/op
BenchmarkRivet_GPlusStatic 3000000 607 ns/op 112 B/op 2 allocs/op
BenchmarkTango_GPlusStatic 1000000 1780 ns/op 320 B/op 8 allocs/op
BenchmarkTigerTonic_GPlusStatic 5000000 299 ns/op 32 B/op 1 allocs/op
BenchmarkTraffic_GPlusStatic 500000 4349 ns/op 1208 B/op 16 allocs/op
BenchmarkVulcan_GPlusStatic 1000000 1182 ns/op 98 B/op 3 allocs/op
BenchmarkZeus_GPlusStatic 5000000 323 ns/op 16 B/op 1 allocs/op
BenchmarkAce_GPlusParam 3000000 446 ns/op 64 B/op 1 allocs/op
BenchmarkBear_GPlusParam 1000000 1643 ns/op 448 B/op 5 allocs/op
BenchmarkBeego_GPlusParam 500000 3462 ns/op 720 B/op 10 allocs/op
BenchmarkBone_GPlusParam 1000000 1503 ns/op 384 B/op 3 allocs/op
BenchmarkDenco_GPlusParam 3000000 451 ns/op 64 B/op 1 allocs/op
BenchmarkGin_GPlusParam 3000000 467 ns/op 64 B/op 1 allocs/op
BenchmarkGocraftWeb_GPlusParam 1000000 2594 ns/op 656 B/op 9 allocs/op
BenchmarkGoji_GPlusParam 1000000 1397 ns/op 336 B/op 2 allocs/op
BenchmarkGoJsonRest_GPlusParam 1000000 3251 ns/op 657 B/op 14 allocs/op
BenchmarkGoRestful_GPlusParam 200000 10598 ns/op 656 B/op 19 allocs/op
BenchmarkGorillaMux_GPlusParam 300000 6944 ns/op 784 B/op 9 allocs/op
BenchmarkHttpRouter_GPlusParam 5000000 339 ns/op 64 B/op 1 allocs/op
BenchmarkHttpTreeMux_GPlusParam 1000000 1090 ns/op 336 B/op 2 allocs/op
BenchmarkKocha_GPlusParam 2000000 726 ns/op 56 B/op 3 allocs/op
BenchmarkMacaron_GPlusParam 300000 5089 ns/op 1104 B/op 11 allocs/op
BenchmarkMartini_GPlusParam 100000 15055 ns/op 1152 B/op 12 allocs/op
BenchmarkPat_GPlusParam 1000000 3281 ns/op 704 B/op 14 allocs/op
BenchmarkRevel_GPlusParam 200000 9866 ns/op 1704 B/op 28 allocs/op
BenchmarkRivet_GPlusParam 1000000 1813 ns/op 464 B/op 5 allocs/op
BenchmarkTango_GPlusParam 1000000 3423 ns/op 712 B/op 13 allocs/op
BenchmarkTigerTonic_GPlusParam 300000 5656 ns/op 1064 B/op 19 allocs/op
BenchmarkTraffic_GPlusParam 200000 9476 ns/op 2000 B/op 23 allocs/op
BenchmarkVulcan_GPlusParam 1000000 1810 ns/op 98 B/op 3 allocs/op
BenchmarkZeus_GPlusParam 1000000 1909 ns/op 368 B/op 3 allocs/op
BenchmarkAce_GPlus2Params 3000000 529 ns/op 64 B/op 1 allocs/op
BenchmarkBear_GPlus2Params 1000000 2094 ns/op 464 B/op 5 allocs/op
BenchmarkBeego_GPlus2Params 500000 4340 ns/op 784 B/op 11 allocs/op
BenchmarkBone_GPlus2Params 500000 4351 ns/op 736 B/op 7 allocs/op
BenchmarkDenco_GPlus2Params 2000000 609 ns/op 64 B/op 1 allocs/op
BenchmarkGin_GPlus2Params 3000000 548 ns/op 64 B/op 1 allocs/op
BenchmarkGocraftWeb_GPlus2Params 1000000 3265 ns/op 720 B/op 10 allocs/op
BenchmarkGoji_GPlus2Params 1000000 2188 ns/op 336 B/op 2 allocs/op
BenchmarkGoJsonRest_GPlus2Params 500000 4220 ns/op 721 B/op 15 allocs/op
BenchmarkGoRestful_GPlus2Params 100000 13619 ns/op 656 B/op 19 allocs/op
BenchmarkGorillaMux_GPlus2Params 100000 15470 ns/op 816 B/op 9 allocs/op
BenchmarkHttpRouter_GPlus2Params 5000000 399 ns/op 64 B/op 1 allocs/op
BenchmarkHttpTreeMux_GPlus2Params 1000000 1328 ns/op 336 B/op 2 allocs/op
BenchmarkKocha_GPlus2Params 1000000 1257 ns/op 128 B/op 5 allocs/op
BenchmarkMacaron_GPlus2Params 500000 5427 ns/op 1168 B/op 12 allocs/op
BenchmarkMartini_GPlus2Params 30000 53142 ns/op 1280 B/op 16 allocs/op
BenchmarkPat_GPlus2Params 200000 10197 ns/op 2304 B/op 41 allocs/op
BenchmarkRevel_GPlus2Params 200000 10890 ns/op 1800 B/op 30 allocs/op
BenchmarkRivet_GPlus2Params 1000000 1987 ns/op 480 B/op 6 allocs/op
BenchmarkTango_GPlus2Params 200000 8691 ns/op 2136 B/op 36 allocs/op
BenchmarkTigerTonic_GPlus2Params 200000 8818 ns/op 1528 B/op 28 allocs/op
BenchmarkTraffic_GPlus2Params 100000 20040 ns/op 3312 B/op 34 allocs/op
BenchmarkVulcan_GPlus2Params 1000000 2550 ns/op 98 B/op 3 allocs/op
BenchmarkZeus_GPlus2Params 500000 3546 ns/op 784 B/op 6 allocs/op
BenchmarkAce_GPlusAll 300000 5980 ns/op 640 B/op 11 allocs/op
BenchmarkBear_GPlusAll 100000 21351 ns/op 5072 B/op 61 allocs/op
BenchmarkBeego_GPlusAll 30000 46174 ns/op 8976 B/op 129 allocs/op
BenchmarkBone_GPlusAll 50000 36812 ns/op 6992 B/op 76 allocs/op
BenchmarkDenco_GPlusAll 300000 6387 ns/op 672 B/op 11 allocs/op
BenchmarkGin_GPlusAll 300000 6437 ns/op 640 B/op 11 allocs/op
BenchmarkGocraftWeb_GPlusAll 50000 34384 ns/op 8144 B/op 116 allocs/op
BenchmarkGoji_GPlusAll 100000 20020 ns/op 3696 B/op 22 allocs/op
BenchmarkGoJsonRest_GPlusAll 30000 42402 ns/op 8221 B/op 183 allocs/op
BenchmarkGoRestful_GPlusAll 10000 214351 ns/op 28288 B/op 417 allocs/op
BenchmarkGorillaMux_GPlusAll 10000 106403 ns/op 9712 B/op 115 allocs/op
BenchmarkHttpRouter_GPlusAll 500000 4229 ns/op 640 B/op 11 allocs/op
BenchmarkHttpTreeMux_GPlusAll 100000 12902 ns/op 3696 B/op 22 allocs/op
BenchmarkKocha_GPlusAll 200000 11071 ns/op 976 B/op 43 allocs/op
BenchmarkMacaron_GPlusAll 30000 61511 ns/op 13968 B/op 142 allocs/op
BenchmarkMartini_GPlusAll 5000 279370 ns/op 15072 B/op 178 allocs/op
BenchmarkPat_GPlusAll 20000 78190 ns/op 16880 B/op 343 allocs/op
BenchmarkRevel_GPlusAll 10000 130048 ns/op 21656 B/op 368 allocs/op
BenchmarkRivet_GPlusAll 100000 21797 ns/op 5408 B/op 64 allocs/op
BenchmarkTango_GPlusAll 20000 70897 ns/op 15624 B/op 280 allocs/op
BenchmarkTigerTonic_GPlusAll 20000 87787 ns/op 14800 B/op 320 allocs/op
BenchmarkTraffic_GPlusAll 10000 170831 ns/op 37760 B/op 421 allocs/op
BenchmarkVulcan_GPlusAll 100000 24961 ns/op 1274 B/op 39 allocs/op
BenchmarkZeus_GPlusAll 100000 16337 ns/op 1968 B/op 27 allocs/op
BenchmarkAce_ParseStatic 10000000 176 ns/op 0 B/op 0 allocs/op
BenchmarkBear_ParseStatic 2000000 715 ns/op 88 B/op 3 allocs/op
BenchmarkBeego_ParseStatic 1000000 2105 ns/op 368 B/op 7 allocs/op
BenchmarkBone_ParseStatic 2000000 830 ns/op 144 B/op 3 allocs/op
BenchmarkDenco_ParseStatic 20000000 77.9 ns/op 0 B/op 0 allocs/op
BenchmarkGin_ParseStatic 10000000 198 ns/op 0 B/op 0 allocs/op
BenchmarkGocraftWeb_ParseStatic 1000000 1494 ns/op 304 B/op 6 allocs/op
BenchmarkGoji_ParseStatic 3000000 483 ns/op 0 B/op 0 allocs/op
BenchmarkGoJsonRest_ParseStatic 1000000 1923 ns/op 337 B/op 12 allocs/op
BenchmarkGoRestful_ParseStatic 100000 19374 ns/op 3168 B/op 33 allocs/op
BenchmarkGorillaMux_ParseStatic 300000 4871 ns/op 464 B/op 8 allocs/op
BenchmarkHttpRouter_ParseStatic 20000000 64.8 ns/op 0 B/op 0 allocs/op
BenchmarkHttpTreeMux_ParseStatic 20000000 104 ns/op 0 B/op 0 allocs/op
BenchmarkKocha_ParseStatic 20000000 119 ns/op 0 B/op 0 allocs/op
BenchmarkMacaron_ParseStatic 500000 3484 ns/op 752 B/op 8 allocs/op
BenchmarkMartini_ParseStatic 200000 9056 ns/op 832 B/op 11 allocs/op
BenchmarkPat_ParseStatic 1000000 1268 ns/op 240 B/op 5 allocs/op
BenchmarkRevel_ParseStatic 200000 8870 ns/op 1288 B/op 25 allocs/op
BenchmarkRivet_ParseStatic 2000000 637 ns/op 112 B/op 2 allocs/op
BenchmarkTango_ParseStatic 1000000 1814 ns/op 320 B/op 8 allocs/op
BenchmarkTigerTonic_ParseStatic 3000000 429 ns/op 48 B/op 1 allocs/op
BenchmarkTraffic_ParseStatic 200000 6453 ns/op 1832 B/op 21 allocs/op
BenchmarkVulcan_ParseStatic 1000000 1390 ns/op 98 B/op 3 allocs/op
BenchmarkZeus_ParseStatic 2000000 656 ns/op 80 B/op 2 allocs/op
BenchmarkAce_ParseParam 3000000 415 ns/op 64 B/op 1 allocs/op
BenchmarkBear_ParseParam 1000000 1627 ns/op 435 B/op 5 allocs/op
BenchmarkBeego_ParseParam 500000 3303 ns/op 736 B/op 10 allocs/op
BenchmarkBone_ParseParam 1000000 1871 ns/op 464 B/op 4 allocs/op
BenchmarkDenco_ParseParam 3000000 433 ns/op 64 B/op 1 allocs/op
BenchmarkGin_ParseParam 3000000 435 ns/op 64 B/op 1 allocs/op
BenchmarkGocraftWeb_ParseParam 1000000 2645 ns/op 672 B/op 9 allocs/op
BenchmarkGoji_ParseParam 1000000 1635 ns/op 336 B/op 2 allocs/op
BenchmarkGoJsonRest_ParseParam 1000000 2861 ns/op 657 B/op 14 allocs/op
BenchmarkGoRestful_ParseParam 200000 11180 ns/op 592 B/op 17 allocs/op
BenchmarkGorillaMux_ParseParam 300000 5573 ns/op 784 B/op 9 allocs/op
BenchmarkHttpRouter_ParseParam 5000000 293 ns/op 64 B/op 1 allocs/op
BenchmarkHttpTreeMux_ParseParam 1000000 1013 ns/op 336 B/op 2 allocs/op
BenchmarkKocha_ParseParam 2000000 644 ns/op 56 B/op 3 allocs/op
BenchmarkMacaron_ParseParam 500000 4636 ns/op 1120 B/op 11 allocs/op
BenchmarkMartini_ParseParam 200000 13027 ns/op 1152 B/op 12 allocs/op
BenchmarkPat_ParseParam 500000 4499 ns/op 1136 B/op 20 allocs/op
BenchmarkRevel_ParseParam 200000 9896 ns/op 1704 B/op 28 allocs/op
BenchmarkRivet_ParseParam 1000000 1685 ns/op 464 B/op 5 allocs/op
BenchmarkTango_ParseParam 500000 4754 ns/op 1176 B/op 19 allocs/op
BenchmarkTigerTonic_ParseParam 500000 5059 ns/op 1024 B/op 19 allocs/op
BenchmarkTraffic_ParseParam 200000 8758 ns/op 2280 B/op 25 allocs/op
BenchmarkVulcan_ParseParam 1000000 1515 ns/op 98 B/op 3 allocs/op
BenchmarkZeus_ParseParam 1000000 1530 ns/op 384 B/op 3 allocs/op
BenchmarkAce_Parse2Params 3000000 454 ns/op 64 B/op 1 allocs/op
BenchmarkBear_Parse2Params 1000000 1851 ns/op 464 B/op 5 allocs/op
BenchmarkBeego_Parse2Params 500000 3874 ns/op 784 B/op 11 allocs/op
BenchmarkBone_Parse2Params 1000000 1668 ns/op 416 B/op 3 allocs/op
BenchmarkDenco_Parse2Params 3000000 518 ns/op 64 B/op 1 allocs/op
BenchmarkGin_Parse2Params 3000000 480 ns/op 64 B/op 1 allocs/op
BenchmarkGocraftWeb_Parse2Params 1000000 3010 ns/op 720 B/op 10 allocs/op
BenchmarkGoji_Parse2Params 1000000 1617 ns/op 336 B/op 2 allocs/op
BenchmarkGoJsonRest_Parse2Params 500000 3520 ns/op 721 B/op 15 allocs/op
BenchmarkGoRestful_Parse2Params 200000 11973 ns/op 592 B/op 17 allocs/op
BenchmarkGorillaMux_Parse2Params 300000 6310 ns/op 816 B/op 9 allocs/op
BenchmarkHttpRouter_Parse2Params 5000000 333 ns/op 64 B/op 1 allocs/op
BenchmarkHttpTreeMux_Parse2Params 1000000 1177 ns/op 336 B/op 2 allocs/op
BenchmarkKocha_Parse2Params 1000000 1052 ns/op 128 B/op 5 allocs/op
BenchmarkMacaron_Parse2Params 500000 5087 ns/op 1168 B/op 12 allocs/op
BenchmarkMartini_Parse2Params 200000 13431 ns/op 1184 B/op 12 allocs/op
BenchmarkPat_Parse2Params 500000 4495 ns/op 864 B/op 21 allocs/op
BenchmarkRevel_Parse2Params 200000 10424 ns/op 1768 B/op 30 allocs/op
BenchmarkRivet_Parse2Params 1000000 1931 ns/op 480 B/op 6 allocs/op
BenchmarkTango_Parse2Params 500000 3871 ns/op 776 B/op 17 allocs/op
BenchmarkTigerTonic_Parse2Params 200000 8235 ns/op 1440 B/op 28 allocs/op
BenchmarkTraffic_Parse2Params 200000 9294 ns/op 2088 B/op 25 allocs/op
BenchmarkVulcan_Parse2Params 1000000 1741 ns/op 98 B/op 3 allocs/op
BenchmarkZeus_Parse2Params 1000000 1849 ns/op 400 B/op 3 allocs/op
BenchmarkAce_ParseAll 200000 10012 ns/op 640 B/op 16 allocs/op
BenchmarkBear_ParseAll 20000 81066 ns/op 15600 B/op 233 allocs/op
BenchmarkBeego_ParseAll 20000 81982 ns/op 15600 B/op 233 allocs/op
BenchmarkBone_ParseAll 30000 46017 ns/op 9296 B/op 99 allocs/op
BenchmarkDenco_ParseAll 200000 9403 ns/op 928 B/op 16 allocs/op
BenchmarkGin_ParseAll 200000 10313 ns/op 640 B/op 16 allocs/op
BenchmarkGocraftWeb_ParseAll 20000 61832 ns/op 13936 B/op 207 allocs/op
BenchmarkGoji_ParseAll 50000 31755 ns/op 5376 B/op 32 allocs/op
BenchmarkGoJsonRest_ParseAll 20000 75114 ns/op 14074 B/op 347 allocs/op
BenchmarkGoRestful_ParseAll 3000 603095 ns/op 106480 B/op 930 allocs/op
BenchmarkGorillaMux_ParseAll 10000 211788 ns/op 17280 B/op 224 allocs/op
BenchmarkHttpRouter_ParseAll 300000 6331 ns/op 640 B/op 16 allocs/op
BenchmarkHttpTreeMux_ParseAll 100000 20086 ns/op 5376 B/op 32 allocs/op
BenchmarkKocha_ParseAll 100000 15343 ns/op 1112 B/op 54 allocs/op
BenchmarkMacaron_ParseAll 10000 114725 ns/op 25584 B/op 259 allocs/op
BenchmarkMartini_ParseAll 5000 347190 ns/op 26848 B/op 302 allocs/op
BenchmarkPat_ParseAll 20000 86488 ns/op 17568 B/op 382 allocs/op
BenchmarkRevel_ParseAll 10000 251636 ns/op 40464 B/op 704 allocs/op
BenchmarkRivet_ParseAll 50000 37400 ns/op 8592 B/op 103 allocs/op
BenchmarkTango_ParseAll 20000 84791 ns/op 16560 B/op 330 allocs/op
BenchmarkTigerTonic_ParseAll 10000 118901 ns/op 20032 B/op 417 allocs/op
BenchmarkTraffic_ParseAll 10000 248753 ns/op 58496 B/op 687 allocs/op
BenchmarkVulcan_ParseAll 30000 48489 ns/op 2548 B/op 78 allocs/op
BenchmarkZeus_ParseAll 50000 28977 ns/op 2864 B/op 62 allocs/op
BenchmarkAce_StaticAll 30000 51266 ns/op 0 B/op 0 allocs/op
BenchmarkHttpServeMux_StaticAll 1000 1573183 ns/op 96 B/op 8 allocs/op
BenchmarkBeego_StaticAll 5000 392156 ns/op 57744 B/op 1099 allocs/op
BenchmarkBear_StaticAll 10000 150451 ns/op 15312 B/op 461 allocs/op
BenchmarkBone_StaticAll 20000 73535 ns/op 0 B/op 0 allocs/op
BenchmarkDenco_StaticAll 50000 23966 ns/op 0 B/op 0 allocs/op
BenchmarkGin_StaticAll 30000 53362 ns/op 0 B/op 0 allocs/op
BenchmarkGocraftWeb_StaticAll 5000 274055 ns/op 47696 B/op 942 allocs/op
BenchmarkGoji_StaticAll 10000 117928 ns/op 0 B/op 0 allocs/op
BenchmarkGoJsonRest_StaticAll 5000 395125 ns/op 52909 B/op 1884 allocs/op
BenchmarkGoRestful_StaticAll 200 8721901 ns/op 315698 B/op 5164 allocs/op
BenchmarkGorillaMux_StaticAll 500 3273061 ns/op 72944 B/op 1264 allocs/op
BenchmarkHttpRouter_StaticAll 50000 28223 ns/op 0 B/op 0 allocs/op
BenchmarkHttpTreeMux_StaticAll 50000 28804 ns/op 0 B/op 0 allocs/op
BenchmarkKocha_StaticAll 30000 42785 ns/op 0 B/op 0 allocs/op
BenchmarkMacaron_StaticAll 3000 579693 ns/op 118032 B/op 1256 allocs/op
BenchmarkMartini_StaticAll 200 6158644 ns/op 140352 B/op 2335 allocs/op
BenchmarkPat_StaticAll 500 2684113 ns/op 533904 B/op 11123 allocs/op
BenchmarkRevel_StaticAll 1000 1459527 ns/op 204528 B/op 3925 allocs/op
BenchmarkRivet_StaticAll 10000 124492 ns/op 17584 B/op 314 allocs/op
BenchmarkTango_StaticAll 300 4386240 ns/op 54848 B/op 1544 allocs/op
BenchmarkTigerTonic_StaticAll 10000 102133 ns/op 7504 B/op 157 allocs/op
BenchmarkTraffic_StaticAll 500 3244548 ns/op 732248 B/op 14444 allocs/op
BenchmarkVulcan_StaticAll 500 3295398 ns/op 732248 B/op 14444 allocs/op
BenchmarkZeus_StaticAll 1000 1382404 ns/op 252186 B/op 5254 allocs/op
ok github.com/julienschmidt/go-http-routing-benchmark 797.004s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment