https://github.com/lnsp/go-tls-benchmark
https://github.com/lnsp/go-tls-benchmark
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/lnsp/go-tls-benchmark
- Owner: lnsp
- License: mit
- Created: 2022-02-09T22:11:14.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-02-09T23:36:02.000Z (over 4 years ago)
- Last Synced: 2025-02-11T16:43:04.339Z (over 1 year ago)
- Language: Go
- Size: 144 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-tls-benchmark
Minimal HTTPS server. Built for [a blogpost on certificate performance](https://blog.espe.tech/posts/rsa-may-slow-you-down/).
## Building
```bash
$ go build -o tlsbench
```
## Profiling
Use `go tool pprof profile-rsa` to dig into the cpu profile.
### RSA
```
$ ./tlsbench -cert-file rsa-cert.pem -key-file rsa-key.pem -cpu-profile profile-rsa
```
### ECDSA
```
$ ./tlsbench -cert-file ecdsa-cert.pem -key-file ecdsa-key.pem -cpu-profile profile-ecdsa
```
### ED25519
```
$ ./tlsbench -cert-file ed25519-cert.pem -key-file ed25519-key.pem -cpu-profile profile-ed25519
```