Skip to content

Commit

Permalink
tests: benchmark: do not initialize the adhoc rule
Browse files Browse the repository at this point in the history
Initializing the std::optional<std::string> adhoc rule variable to ""
will... insert a value into the optional! Removing the point of using an
optional and running the adhoc benchmark **every time**. Do not
initialize the optional.
  • Loading branch information
qdeslandes committed Nov 8, 2024
1 parent ccfe788 commit ed4fe12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/benchmark/benchmark.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ struct Config
::std::string srcdir = ".";
::std::string outfile = "results.json";
::std::string gitrev = "<unknown>";
::std::optional<::std::string> adhoc = "";
::std::optional<::std::string> adhoc;
int adhocRepeat = 1;
const ::std::string adhocBenchName = "bf_adhoc";
int64_t gitdate = 0;
Expand Down

0 comments on commit ed4fe12

Please sign in to comment.