[geos-commits] [SCM] GEOS branch main-relate-ng updated. 9c8b1f05712a54979879a46107fa23c87d8facb9

git at osgeo.org git at osgeo.org
Tue Aug 6 11:51:52 PDT 2024


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GEOS".

The branch, main-relate-ng has been updated
       via  9c8b1f05712a54979879a46107fa23c87d8facb9 (commit)
      from  b61bdcefa6abd2632ca68180b140b8aa36d4e99a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 9c8b1f05712a54979879a46107fa23c87d8facb9
Author: Martin Davis <mtnclimb at gmail.com>
Date:   Tue Aug 6 11:51:33 2024 -0700

    Fix base time factor

diff --git a/benchmarks/geom/PreparedPolygonIntersectsPerfTest.cpp b/benchmarks/geom/PreparedPolygonIntersectsPerfTest.cpp
index 045e70e6a..f04583831 100644
--- a/benchmarks/geom/PreparedPolygonIntersectsPerfTest.cpp
+++ b/benchmarks/geom/PreparedPolygonIntersectsPerfTest.cpp
@@ -73,7 +73,7 @@ double test(const Geometry& g, const std::vector<std::unique_ptr<Geometry>>& geo
 
     sw.stop();
     double tot = sw.getTot();
-    double timesFaster = base / tot;
+    double timesFaster = base == 0 ? 1 : base / tot;
     std::cout << std::fixed << std::setprecision(0);
     std::cout << g.getNumPoints() << "," 
         << MAX_ITER * geoms.size() << "," 

-----------------------------------------------------------------------

Summary of changes:
 benchmarks/geom/PreparedPolygonIntersectsPerfTest.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list