mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-02 17:11:28 +00:00
Proper shell overhead computation
This commit is contained in:
1 parent
6f51232a8a
commit
6887835f34
5 files changed
+40
-22
No files matched your search
@@ -33,7 +33,7 @@ impl<'a> Scheduler<'a> {
|
||||
|
||||
pub fn run_benchmarks(&mut self) -> Result<()> {
|
||||
let mut executor: Box<dyn Executor> = match self.options.executor_kind {
|
||||
ExecutorKind::Mock(ref shell) => Box::new(MockExecutor::new(shell)),
|
||||
ExecutorKind::Mock(ref shell) => Box::new(MockExecutor::new(shell.clone())),
|
||||
ExecutorKind::Shell(ref shell) => Box::new(ShellExecutor::new(shell, &self.options)),
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user