diff options
author | 2016-09-23 11:38:35 +0800 | |
---|---|---|
committer | 2016-09-25 10:56:22 +0800 | |
commit | 2b172eef7185382ed4283d1868896626ae3ef5f1 (patch) | |
tree | 7242ad699db6876264c9ac60f36763cc47f04ad1 /benchmarks/playbooks/result_transform/ssl/ssl_transform.py | |
parent | c806bbde071596f204782e7182a65173798ad3ca (diff) |
Change result keys to lower-case and remove ' .'
QTIP-93
Change-Id: I125163e05b49d9631838e89571d59a967252292e
Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
Diffstat (limited to 'benchmarks/playbooks/result_transform/ssl/ssl_transform.py')
-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) |