Skip to content
Just playing around and benchmarking go's crypto libraries
Go
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
app.rsa
app.rsa.pub
app_4096.rsa
app_4096.rsa.pub
main.go
main_bench_test.go
priv_ecdsa.pem
pub_ecdsa.pem

README.md

testCrypto

Just playing around and benchmarking go's crypto libraries

Includes: RSA, ECDSA and HMAC

Benchmarks

Performance on my machine (3 GHz, core 2 duo)

BenchmarkRSA-2                       300           5478344 ns/op
BenchmarkSignRSA-2                   300           5374192 ns/op
BenchmarkVerifyRSA-2               10000            128771 ns/op
BenchmarkECDSA-2                    5000            311564 ns/op
BenchmarkSignECDSA-2               20000             83964 ns/op
BenchmarkVerifyECDSA-2             10000            222581 ns/op
BenchmarkHMAC-2                   100000             20429 ns/op
BenchmarkSignHMAC-2               300000              5300 ns/op
BenchmarkVerifyHMAC-2             300000              5475 ns/op
PASS
ok      github.com/adam-hanna/testRSA   17.702s
You can’t perform that action at this time.