Merge pull request #2900 from peterhuene/benchmark-instantiation

Implement simple benchmarks for instantiation.
This commit is contained in:
Peter Huene
2021-05-17 16:52:13 -07:00
committed by GitHub
10 changed files with 197 additions and 5 deletions

View File

@@ -35,7 +35,7 @@ pub enum SetupError {
#[error("Validation error: {0}")]
Validate(String),
/// A wasm translation error occured.
/// A wasm translation error occurred.
#[error("WebAssembly failed to compile")]
Compile(#[from] CompileError),
@@ -44,7 +44,7 @@ pub enum SetupError {
#[error("Instantiation failed during setup")]
Instantiate(#[from] InstantiationError),
/// Debug information generation error occured.
/// Debug information generation error occurred.
#[error("Debug information error")]
DebugInfo(#[from] anyhow::Error),
}

View File

@@ -1610,7 +1610,7 @@ mod test {
}
#[test]
fn test_pooling_allocator_with_memory_pages_exeeded() {
fn test_pooling_allocator_with_memory_pages_exceeded() {
assert_eq!(
PoolingInstanceAllocator::new(
PoolingAllocationStrategy::Random,
@@ -1631,7 +1631,7 @@ mod test {
}
#[test]
fn test_pooling_allocator_with_reservation_size_exeeded() {
fn test_pooling_allocator_with_reservation_size_exceeded() {
assert_eq!(
PoolingInstanceAllocator::new(
PoolingAllocationStrategy::Random,