Skip to content

Commit f6a15a0

Browse files
committed
Updates.
1 parent ce4935e commit f6a15a0

20 files changed

Lines changed: 1197 additions & 258 deletions

benches/data_drop.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ fn _0001(c: &mut Criterion) {
5656
let compiler = wasmer::sys::Singlepass::default();
5757
let store = wasmer::Store::new(compiler);
5858
let module = wasmer::Module::from_binary(&store, &wasm_bytes).unwrap();
59-
group.bench_with_input(format!("length = {length}"), &length, |b, _| {
59+
group.bench_with_input(format!("L = {length}"), &length, |b, _| {
6060
b.iter_batched(
6161
|| {
6262
let mut store = wasmer::Store::new(wasmer::sys::Singlepass::default());

benches/elem_drop.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ fn _0001(c: &mut Criterion) {
5757
let compiler = wasmer::sys::Singlepass::default();
5858
let store = wasmer::Store::new(compiler);
5959
let module = wasmer::Module::from_binary(&store, &wasm_bytes).unwrap();
60-
group.bench_with_input(format!("length = {length}"), &length, |b, _| {
60+
group.bench_with_input(format!("L = {length}"), &length, |b, _| {
6161
b.iter_batched(
6262
|| {
6363
let mut store = wasmer::Store::new(wasmer::sys::Singlepass::default());

benches/memory_copy.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use criterion::{criterion_group, criterion_main, Criterion};
22
use std::time::Duration;
33

44
#[cfg(target_os = "macos")]
5-
const MEASUREMENT_TIME: u64 = 20;
5+
const MEASUREMENT_TIME: u64 = 35;
66
#[cfg(target_os = "linux")]
77
const MEASUREMENT_TIME: u64 = 20;
88

@@ -46,7 +46,7 @@ const TEMPLATE: &str = r#"
4646
(module
4747
(memory 65536)
4848
(func (export "fun")
49-
i32.const 294967295 ;; Destination offset in memory
49+
i32.const 10 ;; Destination offset in memory
5050
i32.const 0 ;; Source offset in memory
5151
i32.const <LENGTH> ;; Length in bytes to be copied
5252
memory.copy ;; Execute memory copy
@@ -73,7 +73,7 @@ fn _0001(c: &mut Criterion) {
7373
let compiler = wasmer::sys::Singlepass::default();
7474
let store = wasmer::Store::new(compiler);
7575
let module = wasmer::Module::from_binary(&store, &wasm_bytes).unwrap();
76-
group.bench_with_input(format!("length = {length}"), &length, |b, _| {
76+
group.bench_with_input(format!("L = {length}"), &length, |b, _| {
7777
b.iter_batched(
7878
|| {
7979
let mut store = wasmer::Store::new(wasmer::sys::Singlepass::default());

benches/memory_fill.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ fn _0001(c: &mut Criterion) {
9191
let compiler = wasmer::sys::Singlepass::default();
9292
let store = wasmer::Store::new(compiler);
9393
let module = wasmer::Module::from_binary(&store, &wasm_bytes).unwrap();
94-
group.bench_with_input(format!("length = {length}"), &length, |b, _| {
94+
group.bench_with_input(format!("L = {length}"), &length, |b, _| {
9595
b.iter_batched(
9696
|| {
9797
let mut store = wasmer::Store::new(wasmer::sys::Singlepass::default());

benches/memory_grow.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ fn _0001(c: &mut Criterion) {
6060
let compiler = wasmer::sys::Singlepass::default();
6161
let store = wasmer::Store::new(compiler);
6262
let module = wasmer::Module::from_binary(&store, &wasm_bytes).unwrap();
63-
group.bench_with_input(format!("length = {length}"), &length, |b, _| {
63+
group.bench_with_input(format!("L = {length}"), &length, |b, _| {
6464
b.iter_batched(
6565
|| {
6666
let mut store = wasmer::Store::new(wasmer::sys::Singlepass::default());

benches/memory_init.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use criterion::{criterion_group, criterion_main, Criterion};
22
use std::time::Duration;
33

44
#[cfg(target_os = "macos")]
5-
const MEASUREMENT_TIME: u64 = 20;
5+
const MEASUREMENT_TIME: u64 = 40;
66
#[cfg(target_os = "linux")]
77
const MEASUREMENT_TIME: u64 = 20;
88

@@ -100,7 +100,7 @@ fn _0001(c: &mut Criterion) {
100100
let compiler = wasmer::sys::Singlepass::default();
101101
let store = wasmer::Store::new(compiler);
102102
let module = wasmer::Module::from_binary(&store, &wasm_bytes).unwrap();
103-
group.bench_with_input(format!("length = {length}"), &length, |b, _| {
103+
group.bench_with_input(format!("L = {length}"), &length, |b, _| {
104104
b.iter_batched(
105105
|| {
106106
let mut store = wasmer::Store::new(wasmer::sys::Singlepass::default());

benches/table_copy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ fn _0001(c: &mut Criterion) {
8181
let compiler = wasmer::sys::Singlepass::default();
8282
let store = wasmer::Store::new(compiler);
8383
let module = wasmer::Module::from_binary(&store, &wasm_bytes).unwrap();
84-
group.bench_with_input(format!("length = {length}"), &length, |b, _| {
84+
group.bench_with_input(format!("L = {length}"), &length, |b, _| {
8585
b.iter_batched(
8686
|| {
8787
let mut store = wasmer::Store::new(wasmer::sys::Singlepass::default());

benches/table_fill.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ fn _0001(c: &mut Criterion) {
6969
let compiler = wasmer::sys::Singlepass::default();
7070
let store = wasmer::Store::new(compiler);
7171
let module = wasmer::Module::from_binary(&store, &wasm_bytes).unwrap();
72-
group.bench_with_input(format!("length = {length}"), &length, |b, _| {
72+
group.bench_with_input(format!("L = {length}"), &length, |b, _| {
7373
b.iter_batched(
7474
|| {
7575
let mut store = wasmer::Store::new(wasmer::sys::Singlepass::default());

benches/table_grow.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use criterion::{criterion_group, criterion_main, Criterion};
22
use std::time::Duration;
33

44
#[cfg(target_os = "macos")]
5-
const MEASUREMENT_TIME: u64 = 2;
5+
const MEASUREMENT_TIME: u64 = 10;
66
#[cfg(target_os = "linux")]
77
const MEASUREMENT_TIME: u64 = 2;
88

@@ -93,7 +93,7 @@ fn _0001(c: &mut Criterion) {
9393
let compiler = wasmer::sys::Singlepass::default();
9494
let store = wasmer::Store::new(compiler);
9595
let module = wasmer::Module::from_binary(&store, &wasm_bytes).unwrap();
96-
group.bench_with_input(format!("length = {length}"), &length, |b, _| {
96+
group.bench_with_input(format!("L = {length}"), &length, |b, _| {
9797
b.iter_batched(
9898
|| {
9999
let mut store = wasmer::Store::new(wasmer::sys::Singlepass::default());

benches/table_init.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ fn _0001(c: &mut Criterion) {
7272
let compiler = wasmer::sys::Singlepass::default();
7373
let store = wasmer::Store::new(compiler);
7474
let module = wasmer::Module::from_binary(&store, &wasm_bytes).unwrap();
75-
group.bench_with_input(format!("length = {length}"), &length, |b, _| {
75+
group.bench_with_input(format!("L = {length}"), &length, |b, _| {
7676
b.iter_batched(
7777
|| {
7878
let mut store = wasmer::Store::new(wasmer::sys::Singlepass::default());

0 commit comments

Comments
 (0)