mirror of
https://github.com/LTTLabsOSS/markbench-tests.git
synced 2026-01-09 14:07:56 -05:00
linter fixes
This commit is contained in:
10
xz/xz.py
10
xz/xz.py
@@ -11,10 +11,6 @@ sys.path.insert(1, os.path.join(sys.path[0], ".."))
|
|||||||
|
|
||||||
from xz_utils import XZ_EXECUTABLE, xz_executable_exists, copy_from_network_drive, current_time_ms
|
from xz_utils import XZ_EXECUTABLE, xz_executable_exists, copy_from_network_drive, current_time_ms
|
||||||
|
|
||||||
def current_time_ms():
|
|
||||||
"""Get current timestamp in milliseconds since epoch"""
|
|
||||||
return int(time.time() * 1000)
|
|
||||||
|
|
||||||
script_dir = os.path.dirname(os.path.realpath(__file__))
|
script_dir = os.path.dirname(os.path.realpath(__file__))
|
||||||
log_dir = os.path.join(script_dir, "run")
|
log_dir = os.path.join(script_dir, "run")
|
||||||
if not os.path.isdir(log_dir):
|
if not os.path.isdir(log_dir):
|
||||||
@@ -53,11 +49,11 @@ for i in range(5):
|
|||||||
end_time = current_time_ms()
|
end_time = current_time_ms()
|
||||||
|
|
||||||
SCORE_SUM = 0
|
SCORE_SUM = 0
|
||||||
count = 0
|
CORE_COUNT = 0
|
||||||
for score in scores:
|
for score in scores:
|
||||||
print(f"core {count} took {score} milliseconds")
|
print(f"core {CORE_COUNT} took {score} milliseconds")
|
||||||
SCORE_SUM += score
|
SCORE_SUM += score
|
||||||
count += 1
|
CORE_COUNT += 1
|
||||||
avg_score = round(SCORE_SUM / len(scores), 2)
|
avg_score = round(SCORE_SUM / len(scores), 2)
|
||||||
|
|
||||||
report = {
|
report = {
|
||||||
|
|||||||
Reference in New Issue
Block a user