+2003-12-16 Paolo Carlini <pcarlini@suse.de>
+
+ * testsuite/performance/narrow_widen_char.cc: Tweak the
+ number of iterations for each test.
+ * testsuite/performance/narrow_widen_wchar_t.cc: Add a
+ missing clear_counters.
+
2003-12-16 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/11723
time_counter time;
resource_counter resource;
- const long iters = 200000000;
char bufin[] = "This was an attempt to bypass string construction just for test.";
char bufout[sizeof(bufin)];
// widen
start_counters(time, resource);
- for (long i = 0; i < iters; ++i)
+ for (long i = 0; i < 1000000000; ++i)
ct.widen(i % 128);
stop_counters(time, resource);
report_performance(__FILE__, "widen", time, resource);
+ clear_counters(time, resource);
// widen array
start_counters(time, resource);
- for (long i = 0; i < iters; ++i)
+ for (long i = 0; i < 100000000; ++i)
ct.widen(bufin, bufin+sizeof(bufin), bufout);
stop_counters(time, resource);
report_performance(__FILE__, "widen_array", time, resource);
ct.widen(i % 128);
stop_counters(time, resource);
report_performance(__FILE__, "widen", time, resource);
+ clear_counters(time, resource);
// widen array
start_counters(time, resource);