New Scheduler struct

This commit is contained in:
David Peter authored and David Peter committed 2022-02-19 16:53:02 +01:00
1 parent 39984a3896
commit 72d27729fa
6 files changed
+118 -84

No files matched your search

+8 -2
View File
@@ -1,7 +1,7 @@
use std::env;
use app::get_cli_arguments;
use benchmark::schedule::run_benchmarks_and_print_comparison;
use benchmark::scheduler::Scheduler;
use command::Commands;
use export::ExportManager;
use options::Options;
@@ -32,7 +32,13 @@ fn run() -> Result<()> {
let commands = Commands::from_cli_arguments(&cli_arguments)?;
let export_manager = ExportManager::from_cli_arguments(&cli_arguments)?;
run_benchmarks_and_print_comparison(&commands, &options, &export_manager)
options.validate_against_command_list(&commands)?;
let mut scheduler = Scheduler::new(&commands, &options, &export_manager);
scheduler.run_benchmarks()?;
scheduler.print_relative_speed_comparison();
Ok(())
}
fn main() {