pub enum BenchTarget {
Vm,
WasmLocal,
Rust,
}Expand description
Bench targets — picks which backend runs the scenario.
Variants§
Vm
In-process VM via vm::compile_program_with_modules.
WasmLocal
In-process WASM via wasmtime (compiled once, instantiated +
invoked per iteration). Requires the wasm feature.
Rust
Native Rust binary produced by aver compile --target rust +
cargo build --release. Subprocess spawn per iteration.
Implementations§
Trait Implementations§
Source§impl Clone for BenchTarget
impl Clone for BenchTarget
Source§fn clone(&self) -> BenchTarget
fn clone(&self) -> BenchTarget
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BenchTarget
impl Debug for BenchTarget
Source§impl PartialEq for BenchTarget
impl PartialEq for BenchTarget
impl Copy for BenchTarget
impl Eq for BenchTarget
impl StructuralPartialEq for BenchTarget
Auto Trait Implementations§
impl Freeze for BenchTarget
impl RefUnwindSafe for BenchTarget
impl Send for BenchTarget
impl Sync for BenchTarget
impl Unpin for BenchTarget
impl UnsafeUnpin for BenchTarget
impl UnwindSafe for BenchTarget
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.