timeit
This commit is contained in:
parent
bb41e30cba
commit
dfa26e7693
@ -32,7 +32,7 @@ const std::regex date_match[] = {
|
||||
};
|
||||
|
||||
void stat_date(const DataSource &source) {
|
||||
spdlog::info("stat_date({})", magic_enum::enum_name(source));
|
||||
timeit(fmt::format("stat_date({})", magic_enum::enum_name(source)));
|
||||
|
||||
std::map<std::string, size_t> date_map;
|
||||
std::map<size_t, size_t> type_map;
|
||||
|
@ -44,7 +44,7 @@ auto is_neighbour(const Cord &a, const Cord &b) -> bool {
|
||||
}
|
||||
|
||||
void stat_keystroke(const DataSource &source) {
|
||||
spdlog::info("stat_keystroke({})", magic_enum::enum_name(source));
|
||||
timeit(fmt::format("stat_keystroke({})", magic_enum::enum_name(source)));
|
||||
|
||||
std::map<std::string, size_t> stat;
|
||||
for (auto const &password : passwords(source)) {
|
||||
|
@ -4,7 +4,7 @@
|
||||
#include "defs.hpp"
|
||||
|
||||
void stat_length(const DataSource &source) {
|
||||
spdlog::info("stat_length({})", magic_enum::enum_name(source));
|
||||
timeit(fmt::format("stat_length({})", magic_enum::enum_name(source)));
|
||||
|
||||
std::map<size_t, size_t> stat;
|
||||
for (auto const &password : passwords(source)) ++stat[password.size()];
|
||||
|
@ -30,7 +30,7 @@ std::string get_struct(const std::string &password) {
|
||||
}
|
||||
|
||||
void stat_struct(const DataSource &source) {
|
||||
spdlog::info("stat_struct({})", magic_enum::enum_name(source));
|
||||
timeit(fmt::format("stat_struct({})", magic_enum::enum_name(source)));
|
||||
|
||||
std::map<std::string, size_t> stat;
|
||||
for (auto const &password : passwords(source)) ++stat[get_struct(password)];
|
||||
|
Loading…
Reference in New Issue
Block a user