def benchmark_run_time(self, dataset, repeat):
        """Benchmark average runtime for the model by calling benchmark_run_time_single_sample function"""
        logger.info("Starting run time benchmarking")
        time_elapsed = 0
        for i, sample in enumerate(dataset):
            time_elapsed += self.benchmark_run_time_single_sample(sample, repeat=repeat)
            if i % 100 == 0:
                logger.info(f"Benchmarked run time for {i}/{len(dataset)} samples")
        total_time_elapsed = time_elapsed / len(dataset)
        return total_time_elapsed
Benchmark average runtime for the model by calling benchmark_run_time_single_sample function
structured_prompting/fairseq-version/fairseq/examples/speech_to_speech/benchmarking/core.py