Execute the benchmark's main file. Args: runnable: A Runnable benchmark instance. count: The number of this (repeated) run. secondary: True if secondary run should be executed. Returns: A tuple with the two benchmark outputs. The latter will be NULL_OUTPUT if
(self, runnable, count, secondary)
| 883 | return output |
| 884 | |
| 885 | def Run(self, runnable, count, secondary): |
| 886 | """Execute the benchmark's main file. |
| 887 | |
| 888 | Args: |
| 889 | runnable: A Runnable benchmark instance. |
| 890 | count: The number of this (repeated) run. |
| 891 | secondary: True if secondary run should be executed. |
| 892 | |
| 893 | Returns: |
| 894 | A tuple with the two benchmark outputs. The latter will be NULL_OUTPUT if |
| 895 | secondary is False. |
| 896 | """ |
| 897 | self.warmup_manager.maybe_warm_up( |
| 898 | runnable.name, |
| 899 | lambda: self._LoggedRun( |
| 900 | runnable, 0, secondary=False, post_process=False)) |
| 901 | output = self._LoggedRun(runnable, count, secondary=False) |
| 902 | if secondary: |
| 903 | return output, self._LoggedRun(runnable, count, secondary=True) |
| 904 | else: |
| 905 | return output, NULL_OUTPUT |
| 906 | |
| 907 | |
| 908 | class DesktopPlatform(Platform): |
no test coverage detected