From 1a30ea62d4f6f2575183dd79d76b96c165ee3623 Mon Sep 17 00:00:00 2001 From: Patrick Niklaus Date: Sat, 30 Apr 2016 03:07:46 +0200 Subject: [PATCH] Continue with geometry less benchmark --- unit_tests/library/route.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/unit_tests/library/route.cpp b/unit_tests/library/route.cpp index e5c04149c..cf785a844 100644 --- a/unit_tests/library/route.cpp +++ b/unit_tests/library/route.cpp @@ -329,6 +329,7 @@ BOOST_AUTO_TEST_CASE(test_benchmark) using namespace osrm; RouteParameters params; + params.overview = RouteParameters::OverviewType::False; using osrm::util::FloatCoordinate; using osrm::util::FloatLatitude; @@ -442,8 +443,8 @@ BOOST_AUTO_TEST_CASE(test_benchmark) json::Object result; const auto rc = osrm.Route(params, result); BOOST_CHECK(rc == Status::Ok); - auto& geometry = result.values.at("routes").get().values[0].get().values.at("geometry").get().value; - BOOST_CHECK_EQUAL(geometry.size(), 9972); + //auto& geometry = result.values.at("routes").get().values[0].get().values.at("geometry").get().value; + //BOOST_CHECK_EQUAL(geometry.size(), 9972); } TIMER_STOP(routes); std::cout << (TIMER_MSEC(routes) / NUM) << "ms/req" << std::endl;