Skip to content

Commit

Permalink
Use effective value instead of value
Browse files Browse the repository at this point in the history
  • Loading branch information
yancyribbens committed Feb 1, 2024
1 parent ba3c269 commit 0aca528
Show file tree
Hide file tree
Showing 4 changed files with 199 additions and 69 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ A basic performance comparison between this current [Rust BnB](https://github.co

|implementation|pool size|ns/iter|
|-------------:|---------|-------|
| Rust BnB| 1,000|936,560|
| Rust BnB| 1,000|819,320|
| C++ Core BnB| 1,000|816,374|

## Minimum Supported Rust Version (MSRV)
Expand Down
4 changes: 3 additions & 1 deletion benches/coin_selection.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use criterion::{black_box, criterion_group, criterion_main, Criterion};

use bitcoin::Amount;
use bitcoin::FeeRate;
use bitcoin::ScriptBuf;
use bitcoin::TxOut;
use bitcoin::Weight;
Expand Down Expand Up @@ -30,7 +31,8 @@ pub fn criterion_benchmark(c: &mut Criterion) {
let result = select_coins_bnb(
black_box(target),
black_box(cost_of_change),
black_box(&mut utxo_pool.clone()),
black_box(FeeRate::ZERO),
black_box(&mut utxo_pool),
)
.unwrap();
assert_eq!(2, result.len());
Expand Down
Loading

0 comments on commit 0aca528

Please sign in to comment.