[geos-commits] r3320 - trunk/tests/perf/operation/predicate
svn_geos at osgeo.org
svn_geos at osgeo.org
Thu Apr 28 12:38:43 EDT 2011
Author: strk
Date: 2011-04-28 09:38:43 -0700 (Thu, 28 Apr 2011)
New Revision: 3320
Modified:
trunk/tests/perf/operation/predicate/RectangleIntersectsPerfTest.cpp
Log:
More concise output from performance tester
Modified: trunk/tests/perf/operation/predicate/RectangleIntersectsPerfTest.cpp
===================================================================
--- trunk/tests/perf/operation/predicate/RectangleIntersectsPerfTest.cpp 2011-04-28 15:09:04 UTC (rev 3319)
+++ trunk/tests/perf/operation/predicate/RectangleIntersectsPerfTest.cpp 2011-04-28 16:38:43 UTC (rev 3320)
@@ -93,9 +93,7 @@
{
typedef vector<const Geometry*>::size_type size_type;
- stringstream ss; ss << g.getNumPoints() << " pts";
-
- geos::util::Profile sw(ss.str());
+ geos::util::Profile sw("");
sw.start();
for (int i = 0; i < MAX_ITER; i++) {
@@ -105,7 +103,7 @@
}
sw.stop();
- cout << sw << endl;
+ cout << g.getNumPoints() << " points: " << sw.getTot() << " usecs" << endl;
}
More information about the geos-commits
mailing list