mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
add cali_ratio_base
This commit is contained in:
parent
9157e7676f
commit
90f627f0f1
@ -13,6 +13,7 @@ with open(benchmark_result_file_path, 'r', encoding='utf8') as json_in:
|
||||
c_base_real_time = benchmarks_data[-1]['cpu_time']
|
||||
c_base_cali_time = 0.005
|
||||
cali_ratio = c_base_cali_time/c_base_real_time
|
||||
cali_ratio_base = 1.6496628287207586
|
||||
print('c_base_real_time:', c_base_real_time)
|
||||
print('c_base_cali_time:', c_base_cali_time)
|
||||
print('cali_ratio:', cali_ratio)
|
||||
@ -25,8 +26,10 @@ for i in range(len(benchmarks_data)):
|
||||
# new a banchmark
|
||||
benchmarks_data.insert(0, benchmarks_data[0].copy())
|
||||
performance_point_name = 'Performance Points'
|
||||
# performance_point_res = benchmarks_data[-1]['cpu_time'] / \
|
||||
# benchmarks_data[-2]['cpu_time'] * 100 * 100000
|
||||
performance_point_res = benchmarks_data[-1]['cpu_time'] / \
|
||||
benchmarks_data[-2]['cpu_time'] * 100 * 100000
|
||||
benchmarks_data[-2]['cpu_time'] * 100 * 100000 * cali_ratio/cali_ratio_base
|
||||
benchmarks_data[0]['name'] = performance_point_name
|
||||
benchmarks_data[0]['run_name'] = performance_point_name
|
||||
benchmarks_data[0]['family_index'] = 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user