Skip to content
This repository was archived by the owner on Mar 31, 2026. It is now read-only.

Commit 9d571a1

Browse files
committed
fix kokoro lint failures: Refactor print statements in benchmark utility and remove unused import in test_writes
1 parent 6bf72a0 commit 9d571a1

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

tests/perf/microbenchmarks/_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def publish_benchmark_extra_info(
4242
benchmark.extra_info["throughput_MiB_s_mean"] = mean_throughput
4343
benchmark.extra_info["throughput_MiB_s_median"] = median_throughput
4444

45-
print(f"\nThroughput Statistics (MiB/s):")
45+
print("\nThroughput Statistics (MiB/s):")
4646
print(f" Min: {min_throughput:.2f} (from max time)")
4747
print(f" Max: {max_throughput:.2f} (from min time)")
4848
print(f" Mean: {mean_throughput:.2f} (approx, from mean time)")
@@ -60,7 +60,7 @@ def publish_benchmark_extra_info(
6060
benchmark.extra_info["true_throughput_MiB_s_mean"] = true_mean_throughput
6161
benchmark.extra_info["true_throughput_MiB_s_median"] = true_median_throughput
6262

63-
print(f"\nThroughput Statistics from true_times (MiB/s):")
63+
print("\nThroughput Statistics from true_times (MiB/s):")
6464
print(f" Min: {true_min_throughput:.2f}")
6565
print(f" Max: {true_max_throughput:.2f}")
6666
print(f" Mean: {true_mean_throughput:.2f}")

tests/perf/microbenchmarks/test_writes.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import os
88
import time
99
import asyncio
10-
import math
1110
from concurrent.futures import ThreadPoolExecutor
1211
import multiprocessing
1312
import logging

0 commit comments

Comments
 (0)