Skip to content

Commit

Permalink
Add ratio for roofline / actual.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangyang2057 committed Sep 20, 2024
1 parent 84bd918 commit d5e4eaf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Native/test/benchmark_test/benchmark_ntt.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ def parse_result(self, result: str):
dict['kind'], dict['op'] = items[0].split(self.bin_prefix)[1].split('_', 1)
dict[f'{self.arch}_roofline'] = self.roofline_dict[dict['kind']][dict['op']]
dict[f'{self.arch}_actual'] = items[-2]
dict[f'{self.arch}_ratio'] = round(float(dict[f'{self.arch}_roofline']) / (float(dict[f'{self.arch}_actual']) + 0.01), 3)
self.benchmark_list.append(dict)

def run():
Expand Down

0 comments on commit d5e4eaf

Please sign in to comment.