mirror of
https://github.com/LTTLabsOSS/markbench-tests.git
synced 2026-01-08 05:33:52 -05:00
linter
This commit is contained in:
@@ -36,7 +36,7 @@ command = command.rstrip()
|
||||
scores = []
|
||||
start_time = current_time_ms()
|
||||
for i in range(3):
|
||||
output = subprocess.check_output([command, "1e12", "--quiet", "--time"], text=True)
|
||||
output = subprocess.check_output([command, "1e12", "--quiet", "--time"], text=True)
|
||||
SCORE_PATTERN = r'Seconds:\s(\d+\.\d+)'
|
||||
if "Seconds" in output:
|
||||
duration = re.match(SCORE_PATTERN, output).group(1)
|
||||
@@ -58,4 +58,4 @@ report = {
|
||||
}
|
||||
|
||||
with open(os.path.join(log_dir, "report.json"), "w", encoding="utf-8") as report_file:
|
||||
report_file.write(json.dumps(report))
|
||||
report_file.write(json.dumps(report))
|
||||
|
||||
Reference in New Issue
Block a user