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

Function BenchmarkRS256Signing

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

Source from the content-addressed store, hash-verified

185}
186
187func BenchmarkRS256Signing(b *testing.B) {
188 key, _ := os.ReadFile("test/sample_key")
189 parsedKey, err := jwt.ParseRSAPrivateKeyFromPEM(key)
190 if err != nil {
191 b.Fatal(err)
192 }
193
194 benchmarkSigning(b, jwt.SigningMethodRS256, parsedKey)
195}
196
197func BenchmarkRS384Signing(b *testing.B) {
198 key, _ := os.ReadFile("test/sample_key")

Callers

nothing calls this directly

Calls 1

benchmarkSigningFunction · 0.85

Tested by

no test coverage detected