Skip to content

Commit

Permalink
fix process_benchmark_data
Browse files Browse the repository at this point in the history
  • Loading branch information
victimsnino committed Aug 31, 2022
1 parent bc2c6e4 commit 62a18a2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ci/process_benchmark_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
for file in os.listdir(os.fsencode("./artifacts")):
folder_with_results = os.fsdecode(file)
for source in ['rpp', 'rxcpp']:
new_data = parse(f'./artifacts/{folder_with_results}/{source}_benchmark_result.txt')
file_name = f'./artifacts/{folder_with_results}/{source}_benchmark_result.txt'
if not os.path.exists(file_name):
continue
new_data = parse(file_name)
new_data["platform"] = [folder_with_results]*len(new_data)
new_data["commit"] = [f"{commit_message[:20]}{'...' if len(commit_message)> 20 else ''} ({git_commit})"]*len(new_data)
new_data["source"] = [source]*len(new_data)
Expand Down

0 comments on commit 62a18a2

Please sign in to comment.