Implement simple benchmarks for instantiation.
This adds benchmarks around module instantiation using criterion. Both the default (i.e. on-demand) and pooling allocators are tested sequentially and in parallel using a thread pool. Instantiation is tested with an empty module, a module with a single page linear memory, a larger linear memory with a data initializer, and a "hello world" Rust WASI program.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user