aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCJentzsch <jentzsch.software@gmail.com>2015-03-06 07:11:24 +0800
committerGav Wood <i@gavwood.com>2015-03-06 19:46:24 +0800
commit0351a9e0b698ddb4f5f8c8db543e5bab639d4ff7 (patch)
treeceab1cdf5e8c338f63fa0fb9e22546a18f884ecf
parentdeb09d025ccc53d2e4b012df617e729b3a2a1f3c (diff)
downloaddexon-solidity-0351a9e0b698ddb4f5f8c8db543e5bab639d4ff7.tar.gz
dexon-solidity-0351a9e0b698ddb4f5f8c8db543e5bab639d4ff7.tar.zst
dexon-solidity-0351a9e0b698ddb4f5f8c8db543e5bab639d4ff7.zip
add quadratic complexity tests
-rw-r--r--state.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/state.cpp b/state.cpp
index 6ac23c14..5202aff2 100644
--- a/state.cpp
+++ b/state.cpp
@@ -170,23 +170,23 @@ BOOST_AUTO_TEST_CASE(stBlockHashTest)
dev::test::executeTests("stBlockHashTest", "/StateTests", dev::test::doStateTests);
}
-//BOOST_AUTO_TEST_CASE(stQuadraticComplexityTest)
-//{
-// 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];
-// if (arg == "--quadratic" || arg == "--all")
-// {
-// auto start = chrono::steady_clock::now();
-
-// dev::test::executeTests("stQuadraticComplexityTest", "/StateTests", dev::test::doStateTests);
-
-// auto end = chrono::steady_clock::now();
-// auto duration(chrono::duration_cast<chrono::milliseconds>(end - start));
-// cnote << "test duration: " << duration.count() << " milliseconds.\n";
-// }
-// }
-//}
+BOOST_AUTO_TEST_CASE(stQuadraticComplexityTest)
+{
+ 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];
+ if (arg == "--quadratic" || arg == "--all")
+ {
+ auto start = chrono::steady_clock::now();
+
+ dev::test::executeTests("stQuadraticComplexityTest", "/StateTests", dev::test::doStateTests);
+
+ auto end = chrono::steady_clock::now();
+ auto duration(chrono::duration_cast<chrono::milliseconds>(end - start));
+ cnote << "test duration: " << duration.count() << " milliseconds.\n";
+ }
+ }
+}
BOOST_AUTO_TEST_CASE(stMemoryStressTest)
{