Skip to content

Commit b1fd715

Browse files
committed
possible to filter more than one algo at once
1 parent 119907a commit b1fd715

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

benchmarks/benchmark.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ void evaluateProperties(const std::vector<T> &lines,
3838
continue;
3939
}
4040
// Apply filter if provided
41-
if (!filter.empty() && std::string(algo.name).find(filter) == std::string::npos) {
41+
if (!filter.empty() && std::string(filter).find(algo.name) == std::string::npos) {
4242
std::cout << "# filtered out " << algo.name << std::endl;
4343
continue;
4444
}
@@ -80,7 +80,7 @@ void process(const std::vector<T> &lines,
8080
continue;
8181
}
8282
// Apply filter if provided
83-
if (!filter.empty() && std::string(algo.name).find(filter) == std::string::npos) {
83+
if (!filter.empty() && std::string(filter).find(algo.name) == std::string::npos) {
8484
std::cout << "# filtered out " << algo.name << std::endl;
8585
continue;
8686
}

0 commit comments

Comments
 (0)