mirror of https://github.com/ctz/rustls
chore: delete admin/format-bench.
The `admin/format-bench` script has bitrot so that it no longer functions with the current output produced by the benchmark tooling. It's not clear that this tool is still needed, so rather than fix it or port it to Rust, we choose to remove it outright. If it turns out there is a need for formatting benchmarking output we should consider building that into the benchmark tool itself to avoid needing to deal with a Python tool-chain and associated versioning challenges.
This commit is contained in:
parent
da19f2b069
commit
25bc1b3ecd
|
@ -1,32 +0,0 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import sys
|
||||
|
||||
handshakes = []
|
||||
bulks = []
|
||||
|
||||
def translate_resume(r):
|
||||
return {
|
||||
'no-resume': 'full',
|
||||
'sessionid': 'sessionid',
|
||||
'tickets': 'tickets'
|
||||
}[r]
|
||||
|
||||
for line in sys.stdin:
|
||||
line = line.strip()
|
||||
pieces = line.split()
|
||||
|
||||
if pieces[0] == 'bulk':
|
||||
_, version, suite, direction, rate, unit = pieces
|
||||
bulks.append((suite, direction, float(rate), unit))
|
||||
elif pieces[0] == 'handshakes':
|
||||
_, version, suite, role, auth, resumed, rate, unit = pieces
|
||||
handshakes.append((suite, role, auth, resumed, float(rate), unit))
|
||||
|
||||
for suite, direction, rate, unit in sorted(bulks):
|
||||
print('`%s` | %s | %g %s' % (suite, direction, rate, unit))
|
||||
|
||||
for suite, role, auth, resumed, rate, unit in sorted(handshakes):
|
||||
print('`%s` <br> %s, %s, %s | %g %s' % (suite, role,
|
||||
auth if auth == 'server-auth' else 'mutual-auth',
|
||||
translate_resume(resumed), rate, unit))
|
Loading…
Reference in New Issue