Skip to content

Commit

Permalink
Removed MstAndFill from benchmarking because it's unecessary
Browse files Browse the repository at this point in the history
  • Loading branch information
RaoulLuque committed May 11, 2024
1 parent 54b6062 commit 2847c7a
Showing 1 changed file with 4 additions and 17 deletions.
21 changes: 4 additions & 17 deletions dimacs_benchmarks/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ type Hasher = std::hash::BuildHasherDefault<rustc_hash::FxHasher>;
type Hasher = std::hash::RandomState;

#[derive(Debug)]
#[allow(dead_code)]
enum HeuristicTypes {
MstFillNi,
MstTreeNi,
Expand All @@ -31,14 +32,7 @@ enum HeuristicTypes {

use HeuristicTypes::*;

const HEURISTICS_BEING_TEST: [HeuristicTypes; 6] = [
MstFillNi,
MstTreeNi,
FillWhileNi,
MstFillLd,
MstTreeLd,
FillWhileLd,
];
const HEURISTICS_BEING_TEST: [HeuristicTypes; 4] = [MstTreeNi, FillWhileNi, MstTreeLd, FillWhileLd];

fn main() {
env_logger::init();
Expand Down Expand Up @@ -66,15 +60,8 @@ fn main() {
benchmark_log_file
.write_all(
format!(
"| {0: <20} | {1: <12} | {2: <12} | {3: <12} | {4: <12} | {5: <12} | {6: <12} | {7: <12} |\n",
"Graph name",
"Upper bound",
"MSTFillNI",
"MSTTreeNI",
"FillWhileNI",
"MSTFillLD",
"MSTTreeLD",
"FillWhileLD"
"| {0: <20} | {1: <12} | {2: <12} | {3: <12} | {4: <12} | {5: <12} | \n",
"Graph name", "Upper bound", "MSTTreeNI", "FillWhileNI", "MSTTreeLD", "FillWhileLD"
)
.as_bytes(),
)
Expand Down

0 comments on commit 2847c7a

Please sign in to comment.