File: bench-range

package info (click to toggle)
rust-rustls 0.23.26%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 13,816 kB
  • sloc: sh: 199; python: 181; makefile: 23
file content (20 lines) | stat: -rwxr-xr-x 566 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env python3

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))