Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add push and pop benches #1490

Merged
merged 2 commits into from
Nov 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Description of the upcoming release here.

### Added

- [#1490](https://github.com/FuelLabs/fuel-core/pull/1490): Add push and pop benchmarks.
- [#1485](https://github.com/FuelLabs/fuel-core/pull/1485): Prepare rc release of fuel core v0.21
- [#1476](https://github.com/FuelLabs/fuel-core/pull/1453): Add the majority of the "other" benchmarks for contract opcodes.
- [#1453](https://github.com/FuelLabs/fuel-core/pull/1453): Add the majority of the "sanity" benchmarks for contract opcodes.
Expand Down
32 changes: 32 additions & 0 deletions benches/benches/vm_set/mem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,4 +141,36 @@ pub fn run(c: &mut Criterion) {
);
}
mem_meq.finish();

let full_mask = (1 << 24) - 1;

// poph
let prepare_script = vec![op::pshh(full_mask)];
run_group_ref(
&mut c.benchmark_group("poph"),
"poph",
VmBench::new(op::poph(full_mask)).with_prepare_script(prepare_script),
);

// popl
let prepare_script = vec![op::pshl(full_mask)];
run_group_ref(
&mut c.benchmark_group("popl"),
"popl",
VmBench::new(op::popl(full_mask)).with_prepare_script(prepare_script),
);

// pshh
run_group_ref(
&mut c.benchmark_group("pshh"),
"pshh",
VmBench::new(op::pshh(full_mask)),
);

// pshl
run_group_ref(
&mut c.benchmark_group("pshl"),
"pshl",
VmBench::new(op::pshl(full_mask)),
);
}
Loading