Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
perf: ./target/release/examples/bench | ||
perf record -F999 --call-graph dwarf -- ./target/release/examples/bench bulk TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 | ||
perf script | ~/FlameGraph/stackcollapse-perf.pl | ~/FlameGraph/flamegraph.pl > perf-aes256-rustls.svg | ||
perf record -F999 --call-graph dwarf -- ./target/release/examples/bench bulk TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 | ||
perf script | ~/FlameGraph/stackcollapse-perf.pl | ~/FlameGraph/flamegraph.pl > perf-aes128-rustls.svg | ||
perf record -F999 --call-graph dwarf -- ./target/release/examples/bench bulk TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 | ||
perf script | ~/FlameGraph/stackcollapse-perf.pl | ~/FlameGraph/flamegraph.pl > perf-chacha-rustls.svg | ||
|
||
perf record -F999 --call-graph dwarf -- ./target/release/examples/bench handshake TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 | ||
perf script | ~/FlameGraph/stackcollapse-perf.pl | ~/FlameGraph/flamegraph.pl > perf-fullhs-rustls.svg | ||
perf record -F999 --call-graph dwarf -- ./target/release/examples/bench handshake-resume TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 | ||
perf script | ~/FlameGraph/stackcollapse-perf.pl | ~/FlameGraph/flamegraph.pl > perf-resume-rustls.svg | ||
perf record -F999 --call-graph dwarf -- ./target/release/examples/bench handshake-ticket TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 | ||
perf script | ~/FlameGraph/stackcollapse-perf.pl | ~/FlameGraph/flamegraph.pl > perf-ticket-rustls.svg | ||
|
||
measure: ./target/release/examples/bench | ||
$^ bulk TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 | ||
$^ bulk TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 | ||
$^ bulk TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 | ||
$^ handshake TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 | ||
$^ handshake-resume TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 | ||
$^ handshake-ticket TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import subprocess | ||
|
||
suite = 'TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256' | ||
|
||
print 'len,send,recv' | ||
|
||
for len in [16, 32, 64, 128, 512, 1024, 4096, 8192, 32768, 65536, 131072, 262144, 1048576]: | ||
out = subprocess.check_output(['./target/release/examples/bench', 'bulk', suite, str(len)]) | ||
lines = out.splitlines() | ||
|
||
for l in out.splitlines(): | ||
items = l.split() | ||
if items[3] == 'send': | ||
send = float(items[4]) | ||
if items[3] == 'recv': | ||
recv = float(items[4]) | ||
|
||
print '%d,%g,%g' % (len, send, recv) |