MCPcopy Index your code
hub / github.com/TheAlgorithms/Go / BenchmarkRSADecryption

Function BenchmarkRSADecryption

cipher/rsa/rsa2_test.go:43–49  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

41}
42
43func BenchmarkRSADecryption(b *testing.B) {
44 rsa := rsa.New()
45 encrypted := rsa.EncryptString("Hello, World!")
46 for i := 0; i < b.N; i++ {
47 rsa.DecryptString(encrypted)
48 }
49}

Callers

nothing calls this directly

Calls 3

NewFunction · 0.92
EncryptStringMethod · 0.80
DecryptStringMethod · 0.80

Tested by

no test coverage detected