Changeset View
Changeset View
Standalone View
Standalone View
src/bench/bench_bitcoin.cpp
Show First 20 Lines • Show All 81 Lines • ▼ Show 20 Lines | if (HelpRequested(gArgs)) { | ||||
std::cout << gArgs.GetHelpMessage(); | std::cout << gArgs.GetHelpMessage(); | ||||
return EXIT_SUCCESS; | return EXIT_SUCCESS; | ||||
} | } | ||||
SHA256AutoDetect(); | SHA256AutoDetect(); | ||||
ECC_Start(); | ECC_Start(); | ||||
SetupEnvironment(); | SetupEnvironment(); | ||||
// don't want to write to debug.log file | |||||
GetLogger().m_print_to_file = false; | |||||
int64_t evaluations = gArgs.GetArg("-evals", DEFAULT_BENCH_EVALUATIONS); | int64_t evaluations = gArgs.GetArg("-evals", DEFAULT_BENCH_EVALUATIONS); | ||||
std::string regex_filter = gArgs.GetArg("-filter", DEFAULT_BENCH_FILTER); | std::string regex_filter = gArgs.GetArg("-filter", DEFAULT_BENCH_FILTER); | ||||
std::string scaling_str = gArgs.GetArg("-scaling", DEFAULT_BENCH_SCALING); | std::string scaling_str = gArgs.GetArg("-scaling", DEFAULT_BENCH_SCALING); | ||||
bool is_list_only = gArgs.GetBoolArg("-list", false); | bool is_list_only = gArgs.GetBoolArg("-list", false); | ||||
double scaling_factor; | double scaling_factor; | ||||
if (!ParseDouble(scaling_str, &scaling_factor)) { | if (!ParseDouble(scaling_str, &scaling_factor)) { | ||||
fprintf(stderr, "Error parsing scaling factor as double: %s\n", | fprintf(stderr, "Error parsing scaling factor as double: %s\n", | ||||
Show All 21 Lines |