Skip to content
Draft
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 .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ env/
node_modules/
*DS_Store
*.iml
bin/bench-transaction/bench-tx-vm-profile.json
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
- [BREAKING] Added `get_asset` and `get_initial_asset` kernel procedures and removed `get_balance`, `get_initial_balance` and `has_non_fungible_asset` kernel procedures ([#2369](https://github.com/0xMiden/miden-base/pull/2369)).
- Introduced `TokenMetadata` type to encapsulate fungible faucet metadata ([#2344](https://github.com/0xMiden/miden-base/issues/2344)).
- Added `StandardNote::from_script_root()` and `StandardNote::name()` methods, and exposed `NoteType` `PUBLIC`/`PRIVATE` masks as public constants ([#2411](https://github.com/0xMiden/miden-base/pull/2411)).
- Added VM profile export functionality to benchmark transaction execution, enabling detailed cycle counting and trace length analysis ([#2391](https://github.com/0xMiden/miden-base/pull/2391)).

### Changes

Expand Down
99 changes: 99 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions bin/bench-note-checker/benches/benchmarks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,13 @@ fn note_checker_benchmarks(c: &mut Criterion) {
setup_mixed_notes_benchmark(MixedNotesConfig { failing_note_count: failing_count })
.expect("failed to set up mixed notes benchmark");

b.to_async(tokio::runtime::Builder::new_current_thread().enable_all().build().unwrap())
.iter(|| async { black_box(run_mixed_notes_check(&setup).await) });
b.to_async(
tokio::runtime::Builder::new_current_thread()
.enable_all()
.build()
.expect("failed to build tokio runtime"),
)
.iter(|| async { black_box(run_mixed_notes_check(&setup).await) });
});
}

Expand Down
2 changes: 2 additions & 0 deletions bin/bench-transaction/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,11 @@ miden-tx = { workspace = true }

# External dependencies
anyhow = { workspace = true }
chrono = { features = ["serde"], version = "0.4" }
serde = { features = ["derive"], workspace = true }
serde_json = { features = ["preserve_order"], package = "serde_json", version = "1.0" }
tokio = { features = ["macros", "rt"], workspace = true }

[dev-dependencies]
criterion = { features = ["async_tokio", "html_reports"], version = "0.6" }
tempfile = { version = "3.19" }
Loading