22 lines
343 B
Go

package main_test
import (
"testing"
"github.com/aerogo/aero"
)
func BenchmarkAero(b *testing.B) {
bench(
b,
func() *aero.Application {
return aero.New()
},
func(app *aero.Application, method string, path string) {
app.Router().Add(method, path, func(ctx aero.Context) error {
return ctx.Bytes(payload)
})
},
)
}