diff options
author | Daniel McCarney <daniel@binaryparadox.net> | 2023-03-02 11:03:47 -0500 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2023-03-03 22:08:14 +0100 |
commit | 25bc1b3ecd559ea70c6ae8a83533d430dd67db35 (patch) | |
tree | 6335430a89905fff8815c50e7bd577b6e7e9a91e /admin | |
parent | da19f2b069c8f5b78544793db363e48ed28f866c (diff) |
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.
Diffstat (limited to 'admin')
-rwxr-xr-x | admin/format-bench | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/admin/format-bench b/admin/format-bench deleted file mode 100755 index 154007dd..00000000 --- a/admin/format-bench +++ /dev/null @@ -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)) |