diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-12-20 11:26:57 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-12-20 11:26:57 +0000 |
commit | 3c868b99ddb9bc0d170f0248a744979590d6f2a1 (patch) | |
tree | 0d111bdaad5618ffcbbcfe6efa5a543a8f8036a8 | |
parent | Move include to make header correct on its own (diff) | |
download | libjsonpp-3c868b99ddb9bc0d170f0248a744979590d6f2a1.tar.bz2 libjsonpp-3c868b99ddb9bc0d170f0248a744979590d6f2a1.tar.xz libjsonpp-3c868b99ddb9bc0d170f0248a744979590d6f2a1.zip |
Add a test suitable for perf testing
-rw-r--r-- | libjsonpp/testParse.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libjsonpp/testParse.cpp b/libjsonpp/testParse.cpp index 182f758..ab8083e 100644 --- a/libjsonpp/testParse.cpp +++ b/libjsonpp/testParse.cpp @@ -194,6 +194,14 @@ BOOST_AUTO_TEST_CASE( parse_sample_complexFile2 ) json::Value obj = json::parseValue(inFile, "utf-8"); } +BOOST_AUTO_TEST_CASE( parse_sample_complexFile2_bulk, * boost::unit_test::disabled() ) +{ + for (int x = 0; x < 100; x++) { + std::ifstream inFile((root / "initial" / "sample2.json").string()); + json::Value obj = json::parseValue(inFile, "utf-8"); + } +} + BOOST_AUTO_TEST_CASE( parse_from_itr ) { const Glib::ustring val(" \"A \\u0170\\u0146\\u0129\\u0107\\u0151\\u0111\\u0113 string.\" "); |