julienschmidt / go-http-routing-benchmark

Go HTTP request router and web framework benchmark
BSD 3-Clause "New" or "Revised" License
1.65k stars 238 forks source link

add new framework Aero #86

Closed dtmkeng closed 5 years ago

dtmkeng commented 5 years ago

Result 🔴

C:\Users\<Comnam>\dev\go-http-routing-benchmark>go test -bench="Aero"
#GithubAPI Routes: 203
   Aero: 1290112 Bytes

#GPlusAPI Routes: 13
   Aero: 87960 Bytes

#ParseAPI Routes: 26
   Aero: 163736 Bytes

#Static Routes: 157
   Aero: 800408 Bytes

goos: windows
goarch: amd64
pkg: github.com/julienschmidt/go-http-routing-benchmark
BenchmarkAero_Param             20000000                59.8 ns/op             0 B/op          0 allocs/op
BenchmarkAero_Param5            20000000               104 ns/op               0 B/op          0 allocs/op
BenchmarkAero_Param20           50000000                37.7 ns/op             0 B/op          0 allocs/op
BenchmarkAero_ParamWrite        20000000                89.6 ns/op             0 B/op          0 allocs/op
BenchmarkAero_GithubStatic      30000000                59.2 ns/op             0 B/op          0 allocs/op
BenchmarkAero_GithubParam       10000000               128 ns/op               0 B/op          0 allocs/op
BenchmarkAero_GithubAll            50000             28990 ns/op               0 B/op          0 allocs/op
BenchmarkAero_GPlusStatic       30000000                57.8 ns/op             0 B/op          0 allocs/op
BenchmarkAero_GPlusParam        20000000               107 ns/op               0 B/op          0 allocs/op
BenchmarkAero_GPlus2Params      10000000               146 ns/op               0 B/op          0 allocs/op
BenchmarkAero_GPlusAll           1000000              1388 ns/op               0 B/op          0 allocs/op
BenchmarkAero_ParseStatic       30000000                53.6 ns/op             0 B/op          0 allocs/op
BenchmarkAero_ParseParam        20000000                66.9 ns/op             0 B/op          0 allocs/op
BenchmarkAero_Parse2Params      20000000                99.4 ns/op             0 B/op          0 allocs/op
BenchmarkAero_ParseAll           1000000              2323 ns/op               0 B/op          0 allocs/op
BenchmarkAero_StaticAll           100000             15820 ns/op               0 B/op          0 allocs/op
PASS
ok      github.com/julienschmidt/go-http-routing-benchmark      31.037s
dtmkeng commented 5 years ago

[ Hacktoberfest event ]

julienschmidt commented 5 years ago

thanks!