performance_tests: some windows fixes

Too many iterations cause std::bad_alloc for the timings vector,
and the micro prefix displays as some other character, so use u.

Reported by iDunk
pull/320/head
moneromooo-monero 4 years ago
parent 378cdeaeae
commit db8563cb46
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

@ -35,7 +35,7 @@
struct memcmp32 struct memcmp32
{ {
static const size_t loop_count = 1000000000; static const size_t loop_count = 10000000;
static int call(const unsigned char *k0, const unsigned char *k1){ return memcmp(k0, k1, 32); } static int call(const unsigned char *k0, const unsigned char *k1){ return memcmp(k0, k1, 32); }
}; };

@ -195,7 +195,7 @@ void run_test(const std::string &filter, Params &params, const char* test_name)
scale = 1000; scale = 1000;
time_per_call = runner.time_per_call(1000); time_per_call = runner.time_per_call(1000);
#ifdef _WIN32 #ifdef _WIN32
unit = "\xb5s"; unit = "us";
#else #else
unit = "µs"; unit = "µs";
#endif #endif

Loading…
Cancel
Save