MCPcopy
hub / github.com/golang-jwt/jwt / BenchmarkRS512Signing

Function BenchmarkRS512Signing

rsa_test.go:207–215  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

205}
206
207func BenchmarkRS512Signing(b *testing.B) {
208 key, _ := os.ReadFile("test/sample_key")
209 parsedKey, err := jwt.ParseRSAPrivateKeyFromPEM(key)
210 if err != nil {
211 b.Fatal(err)
212 }
213
214 benchmarkSigning(b, jwt.SigningMethodRS512, parsedKey)
215}

Callers

nothing calls this directly

Calls 1

benchmarkSigningFunction · 0.85

Tested by

no test coverage detected