Minimal HTTPS server. Built for a blogpost on certificate performance.
$ go build -o tlsbench
Use go tool pprof profile-rsa
to dig into the cpu profile.
$ ./tlsbench -cert-file rsa-cert.pem -key-file rsa-key.pem -cpu-profile profile-rsa
$ ./tlsbench -cert-file ecdsa-cert.pem -key-file ecdsa-key.pem -cpu-profile profile-ecdsa
$ ./tlsbench -cert-file ed25519-cert.pem -key-file ed25519-key.pem -cpu-profile profile-ed25519