Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/hyperlight_host/benches/benchmarks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ use hyperlight_host::sandbox::MultiUseSandbox;
use hyperlight_testing::sandbox_sizes::{LARGE_HEAP_SIZE, MEDIUM_HEAP_SIZE, SMALL_HEAP_SIZE};
use hyperlight_testing::{c_simple_guest_as_pathbuf, simple_guest_as_pathbuf};

/// Sandbox heap size configurations for benchmarking.
/// Only affects heap size - all other configuration remains at defaults.
/// Sandbox heap sizes and scratch budgets for benchmarking.
/// Larger heaps need extra scratch for page tables.
#[derive(Clone, Copy)]
enum SandboxSize {
/// Default configuration (uses hyperlight defaults)
Expand All @@ -37,7 +37,7 @@ impl SandboxSize {
match self {
Self::Default => builder,
Self::Small => builder.heap_size(SMALL_HEAP_SIZE),
Self::Medium => builder.heap_size(MEDIUM_HEAP_SIZE).scratch_size(0x50000),
Self::Medium => builder.heap_size(MEDIUM_HEAP_SIZE).scratch_size(0x60000),
Self::Large => builder.heap_size(LARGE_HEAP_SIZE).scratch_size(0x100000),
}
}
Expand Down
Loading