Replace time.time() to time.perf_counter() for benchmarking. (#6178)

Signed-off-by: Lifu Huang <lifu.hlf@gmail.com>
This commit is contained in:
Lifu Huang
2025-05-11 14:32:49 -07:00
committed by GitHub
parent e9a47f4cb5
commit 6e2da51561
61 changed files with 158 additions and 158 deletions

View File

@@ -487,7 +487,7 @@ def main(args: argparse.Namespace):
]
print(f"Start tuning over {len(search_space)} configurations...")
start = time.time()
start = time.perf_counter()
configs = _distribute(
"tune",
[
@@ -522,7 +522,7 @@ def main(args: argparse.Namespace):
use_int8_w8a16,
block_shape,
)
end = time.time()
end = time.perf_counter()
print(f"Tuning took {end - start:.2f} seconds")
else:
outputs = _distribute(