From 23ece760a9d5753d3a81a1d1408354ae53b0df10 Mon Sep 17 00:00:00 2001 From: Ryan Daum Date: Sun, 7 Jan 2024 19:38:06 -0500 Subject: [PATCH] Downgrade how much virtual memory benches try to take. It shouldn't need much at all. --- crates/kernel/benches/vm_benches.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/kernel/benches/vm_benches.rs b/crates/kernel/benches/vm_benches.rs index 5c4bd32b..6faf88bb 100644 --- a/crates/kernel/benches/vm_benches.rs +++ b/crates/kernel/benches/vm_benches.rs @@ -23,7 +23,7 @@ use moor_values::var::Var; use moor_values::{AsByteBuffer, NOTHING, SYSTEM_OBJECT}; async fn create_worldstate() -> TupleBoxWorldStateSource { - let (ws_source, _) = TupleBoxWorldStateSource::open(None, 1 << 28).await; + let (ws_source, _) = TupleBoxWorldStateSource::open(None, 1 << 24).await; let mut tx = ws_source.new_world_state().await.unwrap(); let _sysobj = tx .create_object(SYSTEM_OBJECT, NOTHING, SYSTEM_OBJECT, BitEnum::all()) @@ -150,6 +150,7 @@ async fn do_program(program: &str, max_ticks: usize, iters: u64) -> Duration { } tx.rollback().await.unwrap(); + drop(state_source); cumulative }