2024-03-13 22:33:41 +01:00

22 lines
339 B
Go

package main_test
import (
"testing"
"git.akyoto.dev/go/server"
)
func BenchmarkAkyoto(b *testing.B) {
bench(
b,
func() *server.Server {
return server.New()
},
func(s *server.Server, method string, path string) {
s.Router.Add(method, path, func(ctx server.Context) error {
return ctx.Bytes(payload)
})
},
)
}