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

Function BenchmarkRSAEncryption

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

Source from the content-addressed store, hash-verified

34}
35
36func BenchmarkRSAEncryption(b *testing.B) {
37 rsa := rsa.New()
38 for i := 0; i < b.N; i++ {
39 rsa.EncryptString("Hello, World!")
40 }
41}
42
43func BenchmarkRSADecryption(b *testing.B) {
44 rsa := rsa.New()

Callers

nothing calls this directly

Calls 2

NewFunction · 0.92
EncryptStringMethod · 0.80

Tested by

no test coverage detected