diff options
Diffstat (limited to 'benchmarks/playbooks/result_transform/ssl')
-rw-r--r-- | benchmarks/playbooks/result_transform/ssl/ssl_transform.py | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/benchmarks/playbooks/result_transform/ssl/ssl_transform.py b/benchmarks/playbooks/result_transform/ssl/ssl_transform.py index 029135ac..de84d24b 100644 --- a/benchmarks/playbooks/result_transform/ssl/ssl_transform.py +++ b/benchmarks/playbooks/result_transform/ssl/ssl_transform.py @@ -37,22 +37,18 @@ time_stamp = str(datetime.datetime.utcnow().isoformat()) os.system("mv RSA_dump " + hostname + "-" + time_stamp + ".log") os.system("cat AES-128-CBC_dump >> " + hostname + "-" + time_stamp + ".log") -result = {} - -result['1. Version'] = [openssl_version] -result['2. RSA signatures'] = {} -result['2. RSA signatures']['1. 512 bits (sign/s)'] = rsa_512_sps -result['2. RSA signatures']['2. 1024 bits (sign/s)'] = rsa_1024_sps -result['2. RSA signatures']['3. 2048 bits (sign/s)'] = rsa_2048_sps -result['2. RSA signatures']['4. 4096 bits (sign/s)'] = rsa_4096_sps - -result['3. AES-128-cbc throughput'] = {} -result['3. AES-128-cbc throughput']['1. 16 Bytes block (B/sec)'] = aes_16B -result['3. AES-128-cbc throughput']['2. 64 Bytes block (B/sec)'] = aes_64B -result['3. AES-128-cbc throughput']['3. 256 Bytes block (B/sec)'] = aes_256B -result['3. AES-128-cbc throughput']['4. 1024 Bytes block (B/sec)'] = aes_1024B -result['3. AES-128-cbc throughput']['5. 8192 Bytes block (B/sec)'] = aes_8192B - +result = {"version": [openssl_version], + "rsa_sig": {"512_bits": rsa_512_sps, + "1024_bits": rsa_1024_sps, + "2048_bits": rsa_2048_sps, + "4096_bits": rsa_4096_sps, + "unit": "sig/sec"}, + "aes_128_cbc": {"16B_block": aes_16B, + "64B_block": aes_64B, + "256B_block": aes_256B, + "1024B_block": aes_1024B, + "8192B_block": aes_8192B, + "unit": "B/sec"}} with open('./result_temp', 'w+') as result_file: pickle.dump(result, result_file) |