Speed up some unit tests:

A few of the slowest unit tests are modified to process a smaller data
set size, to reduce the time required to run all unit tests.
This commit is contained in:
Vinnie Falco
2015-02-03 17:54:30 -08:00
committed by Tom Ritchford
parent e81d35c4db
commit 11c472d701
3 changed files with 7 additions and 4 deletions

View File

@@ -88,6 +88,6 @@ public:
} }
}; };
BEAST_DEFINE_TESTSUITE(abstract_clock,chrono,beast); BEAST_DEFINE_TESTSUITE_MANUAL(abstract_clock,chrono,beast);
} }

View File

@@ -156,6 +156,7 @@ public:
test_recover (lf, 0); test_recover (lf, 0);
test_recover (lf, 10); test_recover (lf, 10);
test_recover (lf, 100); test_recover (lf, 100);
test_recover (lf, 1000);
} }
}; };
@@ -168,13 +169,11 @@ public:
run() override run() override
{ {
float lf = 0.90f; float lf = 0.90f;
test_recover (lf, 1000);
test_recover (lf, 10000); test_recover (lf, 10000);
test_recover (lf, 100000);
} }
}; };
BEAST_DEFINE_TESTSUITE_MANUAL(recover_big,nudb,beast);
} // test } // test
} // nudb } // nudb
} // beast } // beast

View File

@@ -124,7 +124,11 @@ public:
{ {
enum enum
{ {
#ifndef NDEBUG
N = 5000 // debug
#else
N = 50000 N = 50000
#endif
,block_size = 256 ,block_size = 256
}; };