Skip to content

Commit

Permalink
Fix feature check for benchmark svg output
Browse files Browse the repository at this point in the history
  • Loading branch information
ogxd committed Aug 1, 2024
1 parent ba56503 commit ceb9385
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion benches/throughput/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ fn main() {
};

// GxHash
let gxhash_name = if cfg!(hybrid) { "GxHash-Hybrid" } else { "GxHash" };
let gxhash_name = if cfg!(feature = "hybrid") { "GxHash-Hybrid" } else { "GxHash" };
benchmark(processor.as_mut(), slice, gxhash_name, |data: &[u8], seed: i64| -> u64 {
gxhash64(data, seed)
});
Expand Down
2 changes: 1 addition & 1 deletion benches/throughput/result_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ impl ResultProcessor for OutputPlot {

fn finish(&self) {
let mut arch = std::env::consts::ARCH.to_string();
if cfg!(hybrid) {
if cfg!(feature = "hybrid") {
arch += "-hybrid";
}
let file_name = format!("benches/throughput/{}.svg", arch);
Expand Down
2 changes: 1 addition & 1 deletion benches/throughput_criterion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ fn benchmark_all(c: &mut Criterion) {
group.plot_config(plot_config);

// GxHash
let gxhash_name = if cfg!(hybrid) { "GxHash-Hybrid" } else { "GxHash" };
let gxhash_name = if cfg!(feature = "hybrid") { "GxHash-Hybrid" } else { "GxHash" };
benchmark(&mut group, slice, gxhash_name, |data: &[u8], seed: i32| -> u64 {
gxhash64(data, seed as i64)
});
Expand Down

0 comments on commit ceb9385

Please sign in to comment.