22 lines
343 B
Go
Raw Normal View History

2024-03-13 22:53:34 +00:00
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)
})
},
)
}