add performance Points

This commit is contained in:
lyon 2022-01-05 21:22:54 +08:00
parent 8cc2fb9f8a
commit 8811ccbe67
14 changed files with 18 additions and 3 deletions

0
port/linux/api-make-linux.sh Normal file → Executable file
View File

0
port/linux/api-make-win10.sh Normal file → Executable file
View File

0
port/linux/api-make.sh Normal file → Executable file
View File

0
port/linux/ci_benchmark.sh Normal file → Executable file
View File

View File

@ -14,9 +14,24 @@ print('cali_ratio:', cali_ratio)
for i in range(len(benchmarks_data)):
benchmarks_data[i]['cpu_time'] *= cali_ratio
benchmarks_data[i]['real_time'] *= cali_ratio
benchmarks_data[i]['family_index'] += 1
for benchmark_item in benchmarks_data:
benchmark_item = dict(benchmark_item)
# new a banchmark
benchmarks_data.insert(0, benchmarks_data[0].copy())
performance_point_name = 'Performance Points'
benchmarks_data[0]['name'] = performance_point_name
benchmarks_data[0]['run_name'] = performance_point_name
benchmarks_data[0]['family_index'] = 0
benchmarks_data[0]['repetitions'] = 1
benchmarks_data[0]['iterations'] = 1
benchmarks_data[0]['real_time'] = benchmarks_data[-1]['cpu_time'] / \
benchmarks_data[-2]['cpu_time'] * 100 * 10000
benchmarks_data[0]['cpu_time'] = benchmarks_data[0]['real_time']
benchmarks_data[0]['time_unit'] = 'Point'
# update json_data
json_data['benchmarks'] = benchmarks_data
# save json
with open('benchmark_result.json', 'w') as json_out:
json.dump(json_data, json_out)
json.dump(json_data, json_out)

0
port/linux/gtest.sh Normal file → Executable file
View File

0
port/linux/init.sh Normal file → Executable file
View File

0
port/linux/install_dependency.sh Normal file → Executable file
View File

0
port/linux/make.sh Normal file → Executable file
View File

0
port/linux/pkg-push.sh Normal file → Executable file
View File

0
port/linux/pull-core.sh Normal file → Executable file
View File

0
port/linux/push-core.sh Normal file → Executable file
View File

0
port/linux/test-banchmark.sh Normal file → Executable file
View File

0
port/linux/update-compiler.sh Normal file → Executable file
View File