Skip to content

Commit

Permalink
Refactor performance testing of symmetric algorithms
Browse files Browse the repository at this point in the history
  • Loading branch information
randombit committed Oct 14, 2024
1 parent 7b80f60 commit a9ca261
Show file tree
Hide file tree
Showing 6 changed files with 423 additions and 319 deletions.
2 changes: 1 addition & 1 deletion src/cli/perf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ std::unique_ptr<PerfTest> PerfTest::get(const std::string& name) {
return i->second();
}

return nullptr;
return PerfTest::get_sym(name);
}

} // namespace Botan_CLI
4 changes: 2 additions & 2 deletions src/cli/perf.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ class PerfConfig {

virtual std::chrono::milliseconds runtime() const = 0;

//virtual std::vector<std::string> providers() const = 0;

virtual const std::vector<std::string>& ecc_groups() const = 0;

virtual const std::vector<size_t>& buffer_sizes() const = 0;
Expand Down Expand Up @@ -60,6 +58,8 @@ class PerfTest {
};

private:
static std::unique_ptr<PerfTest> get_sym(const std::string& alg);

static std::map<std::string, pt_maker_fn>& global_registry();
};

Expand Down
Loading

0 comments on commit a9ca261

Please sign in to comment.