760af84 Removed CCheckQueueSpeed benchmark (Martin Ankerl)
00721e6 Improved microbenchmarking with multiple features. (Martin Ankerl)
Pull request description:
The benchmark's KeepRunning() used to make a function call for each call, inflating measurement times for short running code. This change inlines the critical code that is executed each run and moves the slow timer updates into a new function.
This change increases the average runtime for Trig from 0.000000082339208 sec to 0.000000080948591.
Tree-SHA512: 36b3bc55fc9b1d4cbf526b7103af6af18e9783e6b8f3ad3adbd09fac0bf9401cfefad58fd1e6fa2615d3c4e677998f912f3323d61d7b00b1c660d581c257d577
<<HelpMessageOpt("-?",_("Print this help message and exit"))
<<HelpMessageOpt("-list",_("List benchmarks without executing them. Can be combined with -scaling and -filter"))
<<HelpMessageOpt("-evals=<n>",strprintf(_("Number of measurement evaluations to perform. (default: %u)"),DEFAULT_BENCH_EVALUATIONS))
<<HelpMessageOpt("-filter=<regex>",strprintf(_("Regular expression filter to select benchmark by name (default: %s)"),DEFAULT_BENCH_FILTER))
<<HelpMessageOpt("-scaling=<n>",strprintf(_("Scaling factor for benchmark's runtime (default: %u)"),DEFAULT_BENCH_SCALING))
<<HelpMessageOpt("-printer=(console|plot)",strprintf(_("Choose printer format. console: print data to console. plot: Print results as HTML graph (default: %s)"),DEFAULT_BENCH_PRINTER))
<<HelpMessageOpt("-plot-plotlyurl=<uri>",strprintf(_("URL to use for plotly.js (default: %s)"),DEFAULT_PLOT_PLOTLYURL))
<<HelpMessageOpt("-plot-width=<x>",strprintf(_("Plot width in pixel (default: %u)"),DEFAULT_PLOT_WIDTH))
<<HelpMessageOpt("-plot-height=<x>",strprintf(_("Plot height in pixel (default: %u)"),DEFAULT_PLOT_HEIGHT));
return0;
}
SHA256AutoDetect();
SHA256AutoDetect();
RandomInit();
RandomInit();
ECC_Start();
ECC_Start();
SetupEnvironment();
SetupEnvironment();
fPrintToDebugLog=false;// don't want to write to debug.log file
fPrintToDebugLog=false;// don't want to write to debug.log file