Files
2026-05-26 21:45:54 +01:00

23 lines
658 B
Python

"""Baseline benchmark for cleveractors.
Replace this with project-specific benchmarks. ASV will time every method
that starts with ``time_`` and is found on a class in this module.
"""
from __future__ import annotations
class HelloBenchmark:
"""Smoke benchmark used to verify the ASV scaffolding works."""
def setup(self) -> None:
"""Prepare benchmark state (runs before every iteration)."""
def time_hello(self) -> None:
"""Measure a trivial string construction."""
result = "Hello, world!"
assert result
def teardown(self) -> None:
"""Clean up benchmark state (runs after every iteration)."""