From 3c868b99ddb9bc0d170f0248a744979590d6f2a1 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 20 Dec 2019 11:26:57 +0000 Subject: Add a test suitable for perf testing --- libjsonpp/testParse.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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.\" "); -- cgit v1.2.3