diff --git a/c/sedona-s2geography/benches/s2geography-functions.rs b/c/sedona-s2geography/benches/s2geography-functions.rs index 084817ea0..f2a38a8c6 100644 --- a/c/sedona-s2geography/benches/s2geography-functions.rs +++ b/c/sedona-s2geography/benches/s2geography-functions.rs @@ -131,17 +131,94 @@ fn criterion_benchmark(c: &mut Criterion) { ), ); + benchmark::scalar( + c, + &f, + "s2geography", + "st_contains", + BenchmarkArgs::ArrayArray( + Transformed(Polygon(10).into(), to_geography()), + Transformed(Point.into(), to_geography()), + ), + ); + + benchmark::scalar( + c, + &f, + "s2geography", + "st_intersects", + BenchmarkArgs::ArrayScalar( + Transformed(Point.into(), to_geography()), + Transformed(Polygon(10).into(), to_geography()), + ), + ); + + benchmark::scalar( + c, + &f, + "s2geography", + "st_intersects", + BenchmarkArgs::ScalarArray( + Transformed(Polygon(10).into(), to_geography()), + Transformed(Point.into(), to_geography()), + ), + ); + + benchmark::scalar( + c, + &f, + "s2geography", + "st_intersects", + BenchmarkArgs::ArrayScalar( + Transformed(Point.into(), to_geography()), + Transformed(Polygon(500).into(), to_geography()), + ), + ); + benchmark::scalar( c, &f, "s2geography", "st_intersects", BenchmarkArgs::ArrayScalar( + Transformed(LineString(10).into(), to_geography()), + Transformed(Polygon(10).into(), to_geography()), + ), + ); + + benchmark::scalar( + c, + &f, + "s2geography", + "st_intersects", + BenchmarkArgs::ArrayArray( Transformed(Point.into(), to_geography()), Transformed(Polygon(10).into(), to_geography()), ), ); + benchmark::scalar( + c, + &f, + "s2geography", + "st_intersects", + BenchmarkArgs::ArrayArray( + Transformed(Polygon(10).into(), to_geography()), + Transformed(Point.into(), to_geography()), + ), + ); + + benchmark::scalar( + c, + &f, + "s2geography", + "st_equals", + BenchmarkArgs::ArrayArray( + Transformed(Point.into(), to_geography()), + Transformed(Point.into(), to_geography()), + ), + ); + benchmark::scalar( c, &f, diff --git a/c/sedona-s2geography/s2geography b/c/sedona-s2geography/s2geography index 86054bfff..ab934f9bb 160000 --- a/c/sedona-s2geography/s2geography +++ b/c/sedona-s2geography/s2geography @@ -1 +1 @@ -Subproject commit 86054bfff0aa0d891950c4c2b39d1a930c166627 +Subproject commit ab934f9bb725bceedd53c7f9ace4c7acd071e82d