Skip to content

Commit a97d2da

Browse files
committed
fix: benchmark reader
1 parent 31a9079 commit a97d2da

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

reports/benchmark_reader.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,14 @@ def _readBenchmark(self, metrics: list[str], path: str):
4646
line.split(":")[0].strip(),
4747
line.split(":")[1].strip(),
4848
]
49+
50+
num = float(re.search(r"\d+", value).group(0))
51+
52+
if "K" in value:
53+
num /= 1000
54+
4955
if header in metrics:
50-
df.loc[0, header] = float(value[0:-1])
56+
df.loc[0, header] = num
5157

5258
[testCaseName, library, attempt, extension] = os.path.basename(path).split(".")
5359

0 commit comments

Comments
 (0)