From 1f2a7e09c27dc644e968ade4a706ac646e1d09d7 Mon Sep 17 00:00:00 2001 From: Jonathan Klimt Date: Tue, 20 Feb 2024 14:45:31 +0100 Subject: [PATCH] Fixed benchmarks --- benches/complete_binary/mod.rs | 2 ++ benches/vm/mod.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/benches/complete_binary/mod.rs b/benches/complete_binary/mod.rs index ea4794e5..dd8d1411 100644 --- a/benches/complete_binary/mod.rs +++ b/benches/complete_binary/mod.rs @@ -46,6 +46,8 @@ pub fn run_hello_world(c: &mut Criterion) { b.iter(|| { let status = Command::new(&uhyve_path) .arg(&hello_world_path) + .arg("-m") + .arg("64M") .stdout(Stdio::null()) .status() .expect("failed to execute process"); diff --git a/benches/vm/mod.rs b/benches/vm/mod.rs index acb7ab39..4fdad1d5 100644 --- a/benches/vm/mod.rs +++ b/benches/vm/mod.rs @@ -7,7 +7,7 @@ pub fn load_vm_hello_world(c: &mut Criterion) { .iter() .collect(); let params = Params { - memory_size: Byte::from_u64(1024 * 100_000).try_into().unwrap(), + memory_size: Byte::from_u64(1024 * 4096 * 500).try_into().unwrap(), ..Default::default() }; let mut vm = Uhyve::new(path, params).expect("Unable to create VM");