Skip to content

Commit

Permalink
Adds regression for pattern counting
Browse files Browse the repository at this point in the history
  • Loading branch information
vulder committed Oct 5, 2023
1 parent 5bd3b10 commit 8ad0676
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
11 changes: 11 additions & 0 deletions SynthSAWholeProgram/regression_3.info
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
description: "Patch that adds a regression that affects pattern counting"
include_revisions:
revision_range:
start: 06eac0edb6886a7e487867c8d5629cb2409b54fd
end: master
path: regression_3.patch
project_name: FeaturePerfCSCollection
shortname: regress_pattern_counting
tags:
- regression
- perf_prec
15 changes: 15 additions & 0 deletions SynthSAWholeProgram/regression_3.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
diff --git a/projects/SynthSAWholeProgram/service.cpp b/projects/SynthSAWholeProgram/service.cpp
index df02f6d..1a0d496 100644
--- a/projects/SynthSAWholeProgram/service.cpp
+++ b/projects/SynthSAWholeProgram/service.cpp
@@ -2,7 +2,10 @@
#include "compute.h"
#include "config.h"

+#include "fp_util/sleep.h"
+
uint64_t countPattern(std::string_view Data, std::string_view Pattern) {
+ fp_util::busy_sleep_for_secs(1);
return getPatternIdxs(Data, Pattern).size();
}

0 comments on commit 8ad0676

Please sign in to comment.