MCPcopy Create free account
hub / github.com/corestoreio/pkg / BenchmarkWithRunMode_MultiTokenAndScope

Function BenchmarkWithRunMode_MultiTokenAndScope

net/jwt/service_bm_test.go:103–187  ·  view source on GitHub ↗

BenchmarkWithRunMode_MultiTokenAndScope a bench mark which runs parallel and creates token for different store scopes. This means that the underlying map in the Service struct much perform many scope switches to return the correct scope. 200000 9436 ns/op 3620 B/op 47 allocs/op

(b *testing.B)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 13

getRequestWithTokenFunction · 0.85
WithIDMethod · 0.80
NewTokenMethod · 0.80
IntnMethod · 0.80
WithRunModeMethod · 0.80
FatalMethod · 0.80
NextMethod · 0.80
ServeHTTPMethod · 0.80
FatalfMethod · 0.65
SetMethod · 0.65
DurationMethod · 0.45
ContextMethod · 0.45

Tested by

no test coverage detected