Ticket #300: bug300.patch
File bug300.patch, 641 bytes (added by , 16 years ago) |
---|
-
tests/api_wrdb.cc
2028 2028 tout << "Adding a document with " << 10 * N << " values took " << time_10N 2029 2029 << " seconds" << endl; 2030 2030 2031 if (time_N == 0.0) { 2032 // The first test completed before the timer ticked at all! 2033 SKIP_TEST("Timer granularity is too coarse"); 2034 } 2035 2031 2036 // O(n*n) is bad, but we don't require linearity - O(n*log(n)) is 2032 2037 // acceptable, so put the threshold halfway between. 2033 2038 const double ALLOWED_FACTOR = (100.0 + 10 * 2.71828) / 2.0;