22 lines
339 B
Go
Raw Normal View History

2024-03-13 21:33:41 +00:00
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)
})
},
)
}