mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
add quadratic complexity tests
This commit is contained in:
parent
deb09d025c
commit
0351a9e0b6
30
state.cpp
30
state.cpp
@ -170,23 +170,23 @@ BOOST_AUTO_TEST_CASE(stBlockHashTest)
|
|||||||
dev::test::executeTests("stBlockHashTest", "/StateTests", dev::test::doStateTests);
|
dev::test::executeTests("stBlockHashTest", "/StateTests", dev::test::doStateTests);
|
||||||
}
|
}
|
||||||
|
|
||||||
//BOOST_AUTO_TEST_CASE(stQuadraticComplexityTest)
|
BOOST_AUTO_TEST_CASE(stQuadraticComplexityTest)
|
||||||
//{
|
{
|
||||||
// for (int i = 1; i < boost::unit_test::framework::master_test_suite().argc; ++i)
|
for (int i = 1; i < boost::unit_test::framework::master_test_suite().argc; ++i)
|
||||||
// {
|
{
|
||||||
// string arg = boost::unit_test::framework::master_test_suite().argv[i];
|
string arg = boost::unit_test::framework::master_test_suite().argv[i];
|
||||||
// if (arg == "--quadratic" || arg == "--all")
|
if (arg == "--quadratic" || arg == "--all")
|
||||||
// {
|
{
|
||||||
// auto start = chrono::steady_clock::now();
|
auto start = chrono::steady_clock::now();
|
||||||
|
|
||||||
// dev::test::executeTests("stQuadraticComplexityTest", "/StateTests", dev::test::doStateTests);
|
dev::test::executeTests("stQuadraticComplexityTest", "/StateTests", dev::test::doStateTests);
|
||||||
|
|
||||||
// auto end = chrono::steady_clock::now();
|
auto end = chrono::steady_clock::now();
|
||||||
// auto duration(chrono::duration_cast<chrono::milliseconds>(end - start));
|
auto duration(chrono::duration_cast<chrono::milliseconds>(end - start));
|
||||||
// cnote << "test duration: " << duration.count() << " milliseconds.\n";
|
cnote << "test duration: " << duration.count() << " milliseconds.\n";
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
//}
|
}
|
||||||
|
|
||||||
BOOST_AUTO_TEST_CASE(stMemoryStressTest)
|
BOOST_AUTO_TEST_CASE(stMemoryStressTest)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user