Skip to content

Instantly share code, notes, and snippets.

@carlosedp
Last active November 8, 2018 17:12
Show Gist options
  • Save carlosedp/b5e6f0fb211c9155058a5a5b77ea8811 to your computer and use it in GitHub Desktop.
Save carlosedp/b5e6f0fb211c9155058a5a5b77ea8811 to your computer and use it in GitHub Desktop.
Go 1.11.2 Crypto bench - RK3399
$ GOMAXPROCS=12 go test crypto/tls -bench BenchmarkThroughput
goos: linux
goarch: arm64
pkg: crypto/tls
BenchmarkThroughput/MaxPacket/1MB-12 50 33703977 ns/op 31.11 MB/s
BenchmarkThroughput/MaxPacket/2MB-12 30 50824996 ns/op 41.26 MB/s
BenchmarkThroughput/MaxPacket/4MB-12 20 85682448 ns/op 48.95 MB/s
BenchmarkThroughput/MaxPacket/8MB-12 10 102965754 ns/op 81.47 MB/s
BenchmarkThroughput/MaxPacket/16MB-12 10 244088459 ns/op 68.73 MB/s
BenchmarkThroughput/MaxPacket/32MB-12 3 421936369 ns/op 79.52 MB/s
BenchmarkThroughput/MaxPacket/64MB-12 2 539435723 ns/op 124.41 MB/s
BenchmarkThroughput/DynamicPacket/1MB-12 100 35732477 ns/op 29.35 MB/s
BenchmarkThroughput/DynamicPacket/2MB-12 30 54333698 ns/op 38.60 MB/s
BenchmarkThroughput/DynamicPacket/4MB-12 20 81900204 ns/op 51.21 MB/s
BenchmarkThroughput/DynamicPacket/8MB-12 10 124982969 ns/op 67.12 MB/s
BenchmarkThroughput/DynamicPacket/16MB-12 5 210974887 ns/op 79.52 MB/s
BenchmarkThroughput/DynamicPacket/32MB-12 3 411488915 ns/op 81.54 MB/s
BenchmarkThroughput/DynamicPacket/64MB-12 2 651450802 ns/op 103.01 MB/s
PASS
ok crypto/tls 32.295s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment