Skip to content

Commit

Permalink
Fix benchmark dataset size types
Browse files Browse the repository at this point in the history
Signed-off-by: netthier <[email protected]>
  • Loading branch information
netthier committed Apr 11, 2024
1 parent c652ab8 commit 60a8d77
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions benches/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ fn bench_contourbuilder_isobands_volcano_without_xy_step_xy_origin(b: &mut Bench
.iter()
.map(|x| x.as_f64().unwrap())
.collect();
let h = raw_data["height"].as_u64().unwrap() as u32;
let w = raw_data["width"].as_u64().unwrap() as u32;
let h = raw_data["height"].as_u64().unwrap() as usize;
let w = raw_data["width"].as_u64().unwrap() as usize;

b.iter(|| {
black_box(
Expand All @@ -118,8 +118,8 @@ fn bench_contourbuilder_isobands_pot_pop_fr_without_xy_step_xy_origin(b: &mut Be
.iter()
.map(|x| x.as_f64().unwrap())
.collect();
let h = raw_data["height"].as_u64().unwrap() as u32;
let w = raw_data["width"].as_u64().unwrap() as u32;
let h = raw_data["height"].as_u64().unwrap() as usize;
let w = raw_data["width"].as_u64().unwrap() as usize;

b.iter(|| {
black_box(
Expand Down

0 comments on commit 60a8d77

Please sign in to comment.