Skip to content

Commit

Permalink
Raise limits for benchmarking so it runs
Browse files Browse the repository at this point in the history
  • Loading branch information
adamnovak committed Jul 13, 2022
1 parent 453349b commit a2bb88a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/subcommand/benchmark_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@ int main_benchmark(int argc, char** argv) {

vector<BenchmarkResult> results;

// We're doing long alignments so we need to raise the WFA score caps
WFAExtender::ErrorModel error_model = WFAExtender::default_error_model;
error_model.mismatches.max = std::numeric_limits<int32_t>::max();
error_model.gaps.max = std::numeric_limits<int32_t>::max();
error_model.gap_length.max = std::numeric_limits<int32_t>::max();

size_t node_length = 32;

for (size_t node_count = 10; node_count <= 320; node_count *= 2) {
Expand Down Expand Up @@ -157,7 +163,7 @@ int main_benchmark(int argc, char** argv) {

// Make the Aligner and Extender
Aligner aligner;
WFAExtender extender(graph, aligner);
WFAExtender extender(graph, aligner, error_model);

results.push_back(run_benchmark("connect() on " + std::to_string(node_count) + " node sequence", 1, [&]() {
// Do the alignment
Expand Down

1 comment on commit a2bb88a

@adamnovak
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vg CI tests complete for branch lr-giraffe. View the full report here.

16 tests passed, 0 tests failed and 0 tests skipped in 12756 seconds

Please sign in to comment.