s6.app.utils.benchmark_dominant_mask_line_segmentΒΆ
Benchmark the dominant mask line-segment detector on synthetic masks.
Examples
Run the default benchmark suite:
>>> python -m s6.app.utils.benchmark_dominant_mask_line_segment
Increase the number of timed runs:
>>> python -m s6.app.utils.benchmark_dominant_mask_line_segment -n 100
- s6.app.utils.benchmark_dominant_mask_line_segment.parse_args()
Parse benchmark configuration from the CLI.
- s6.app.utils.benchmark_dominant_mask_line_segment.build_cases()
Return the default synthetic benchmark cases.
- s6.app.utils.benchmark_dominant_mask_line_segment.benchmark_case(mask: ndarray, warmup_runs: int, num_runs: int)
Return average latency in milliseconds for one mask.
- s6.app.utils.benchmark_dominant_mask_line_segment.main()
Run the benchmark suite and print per-case latency.