benchmark_entrypoint.py
1 import sys 2 from pathlib import Path 3 4 top_dir = Path(__file__).parent.parent.parent.parent 5 sys.path.insert(0, str(top_dir)) 6 7 from test.regression.cocotb import CocotbSimulation, generate_tests # noqa: E402 8 from test.regression.benchmark import run_benchmark, get_all_benchmark_names # noqa: E402 9 10 11 async def _do_benchmark(dut, benchmark_name): 12 await run_benchmark(CocotbSimulation(dut), benchmark_name) 13 14 15 generate_tests(_do_benchmark, list(get_all_benchmark_names()))