MCPcopy Create free account
hub / github.com/FlashSampling/FlashSampling / run_own_benchmark

Function run_own_benchmark

src/fused_mm_sampling/bench/speed_test.py:250–259  ·  view source on GitHub ↗
(args: Args)

Source from the content-addressed store, hash-verified

248
249
250def run_own_benchmark(args: Args) -> None:
251 tp = args.make_tp()
252 cases: list[Case] = all_cases(args)
253 if args.nsys_profile:
254 for case in cases:
255 nsys_profile(case)
256 else:
257 df = benchmark_all(cases)
258 if tp.is_rank0():
259 _print_and_dump_own_results(df, args)
260
261
262def _print_and_dump_own_results(df: pd.DataFrame, args: Args) -> None:

Callers 1

_run_speed_test_implFunction · 0.85

Calls 6

all_casesFunction · 0.85
benchmark_allFunction · 0.85
make_tpMethod · 0.80
is_rank0Method · 0.80
nsys_profileFunction · 0.70

Tested by

no test coverage detected