Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor performance testing of symmetric algorithms #4369

Merged
merged 1 commit into from
Oct 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading