Skip to main content

VmProfile

Struct VmProfile 

Source
pub struct VmProfile {
    pub vm: Vm,
    pub start_latency: f64,
    pub density: f64,
    pub isolation: f64,
    pub snapshotting: f64,
    pub agent_control: f64,
    pub evidence: Vec<&'static str>,
}
Expand description

A curated agentic profile of a VM/sandbox system across the five agent-native axes, with evidence.

Fields§

§vm: Vm

Which system this profiles.

§start_latency: f64

Cold-start speed of a fresh isolated sandbox (1.0 = sub-100ms).

§density: f64

Sandboxes per host / low per-instance overhead (1.0 = microVM/container class).

§isolation: f64

Security-boundary strength for untrusted agent-generated code (1.0 = hardware virtualization, minimal attack surface).

§snapshotting: f64

Instant CoW fork / snapshot-restore for agent branching and warm pools.

§agent_control: f64

Agent/tool-native, discoverable control plane to drive lifecycle.

§evidence: Vec<&'static str>

Why: one evidence string per notable factor.

Implementations§

Source§

impl VmProfile

Source

pub fn fitness(&self) -> f64

Composite agentic fitness: unweighted mean of all five axes.

Examples found in repository?
examples/vm_benchmark.rs (line 25)
12fn main() {
13    println!("agentic-eval — VM/sandbox systems for agentic AI use");
14    println!("axes: start-latency, density, isolation, snapshotting, agent-control\n");
15
16    // ── Ranked benchmark (best-first by composite agentic fitness) ───────────
17    println!(
18        "{:<17} {:>7}   {:>5} {:>7} {:>9} {:>8} {:>13}",
19        "system", "fitness", "start", "density", "isolation", "snapshot", "agent-control"
20    );
21    for p in rank_vms() {
22        println!(
23            "{:<17} {:>7.2}   {:>5.2} {:>7.2} {:>9.2} {:>8.2} {:>13.2}",
24            p.vm.name(),
25            p.fitness(),
26            p.start_latency,
27            p.density,
28            p.isolation,
29            p.snapshotting,
30            p.agent_control,
31        );
32    }
33
34    // ── Head-to-head: AetherVM vs the microVM reference (Firecracker) ────────
35    println!("\nhead-to-head (positive = AetherVM fits agentic use better):");
36    print!("{}", compare_vms(Vm::AetherVm, Vm::Firecracker));
37
38    // ── Evidence behind the subject's profile ────────────────────────────────
39    println!("\nwhy AetherVM scores where it does:");
40    for e in &profile(Vm::AetherVm).evidence {
41        println!("  - {e}");
42    }
43
44    println!(
45        "\nReading: AetherVM leads on the agent-native axes it was designed for\n\
46         (instant CoW branching + an MCP-native control plane), while microVMs\n\
47         (Firecracker/Cloud Hypervisor) lead on raw cold-start and battle-tested\n\
48         isolation. Shared-kernel containers (Docker) win speed/density but rank\n\
49         low on isolation for untrusted, agent-generated code."
50    );
51}

Trait Implementations§

Source§

impl Clone for VmProfile

Source§

fn clone(&self) -> VmProfile

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for VmProfile

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for VmProfile

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Serialize for VmProfile

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.