MCPcopy
hub / github.com/gofiber/fiber / Benchmark_Startup_Process

Function Benchmark_Startup_Process

router_test.go:1629–1635  ·  view source on GitHub ↗

go test -run=^$ -bench=Benchmark_Startup_Process -benchmem -count=9

(b *testing.B)

Source from the content-addressed store, hash-verified

1627
1628// go test -run=^$ -bench=Benchmark_Startup_Process -benchmem -count=9
1629func Benchmark_Startup_Process(b *testing.B) {
1630 for b.Loop() {
1631 app := New()
1632 registerDummyRoutes(app)
1633 app.startupProcess()
1634 }
1635}
1636
1637// go test -v ./... -run=^$ -bench=Benchmark_Router_Next -benchmem -count=4
1638func Benchmark_Router_Next(b *testing.B) {

Callers

nothing calls this directly

Calls 3

registerDummyRoutesFunction · 0.85
startupProcessMethod · 0.80
NewFunction · 0.70

Tested by

no test coverage detected