-
Notifications
You must be signed in to change notification settings - Fork 742
[GH-2307]point geography bench #2307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
ZhuochengShang
wants to merge
11
commits into
apache:master
Choose a base branch
from
ZhuochengShang:benchmark-zshang
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
070a326
point geography bench
ZhuochengShang 1674e50
Merge remote-tracking branch 'upstream/master' into benchmark-zshang
ZhuochengShang 4832860
add decode bench on point geography
ZhuochengShang 6884012
fully materialize S2Point decode
ZhuochengShang 0c14f77
benchmark encode / decode geography
ZhuochengShang 2d529df
WKB benchmark
ZhuochengShang 0979206
update benchmark setup
ZhuochengShang 0537f03
Merge remote-tracking branch 'upstream/master' into benchmark-zshang
ZhuochengShang 05fea0c
Merge remote-tracking branch 'upstream/master' into benchmark-zshang
ZhuochengShang bd867d1
add FAST encode/decode for point geography
ZhuochengShang b654848
benchmark updates
ZhuochengShang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,261 @@ | ||
| <!-- | ||
| ~ Licensed to the Apache Software Foundation (ASF) under one | ||
| ~ or more contributor license agreements. See the NOTICE file | ||
| ~ distributed with this work for additional information | ||
| ~ regarding copyright ownership. The ASF licenses this file | ||
| ~ to you under the Apache License, Version 2.0 (the | ||
| ~ "License"); you may not use this file except in compliance | ||
| ~ with the License. You may obtain a copy of the License at | ||
| ~ | ||
| ~ http://www.apache.org/licenses/LICENSE-2.0 | ||
| ~ | ||
| ~ Unless required by applicable law or agreed to in writing, | ||
| ~ software distributed under the License is distributed on an | ||
| ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| ~ KIND, either express or implied. See the License for the | ||
| ~ specific language governing permissions and limitations | ||
| ~ under the License. | ||
| --> | ||
|
|
||
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
| <modelVersion>4.0.0</modelVersion> | ||
| <parent> | ||
| <groupId>org.apache.sedona</groupId> | ||
| <artifactId>sedona-parent</artifactId> | ||
| <version>1.8.0-SNAPSHOT</version> | ||
| <relativePath>../pom.xml</relativePath> | ||
| </parent> | ||
| <artifactId>geographyBench</artifactId> | ||
|
|
||
| <name>${project.groupId}:${project.artifactId}</name> | ||
| <description>A benchmarking module for geography operations.</description> <url>http://sedona.apache.org/</url> | ||
| <packaging>jar</packaging> | ||
|
|
||
| <properties> | ||
| <maven.deploy.skip>${skip.deploy.common.modules}</maven.deploy.skip> | ||
| <maven.compiler.source>${java.version}</maven.compiler.source> | ||
| <maven.compiler.target>${java.version}</maven.compiler.target> | ||
| <jmh.version>1.37</jmh.version> | ||
| </properties> | ||
|
|
||
| <dependencies> | ||
| <dependency> | ||
| <groupId>org.apache.sedona</groupId> | ||
| <artifactId>sedona-common</artifactId> | ||
| <version>${project.version}</version> | ||
| <exclusions> | ||
| <exclusion> | ||
| <groupId>com.fasterxml.jackson.core</groupId> | ||
| <artifactId>*</artifactId> | ||
| </exclusion> | ||
| <exclusion> | ||
| <groupId>it.geosolutions.jaiext.jiffle</groupId> | ||
| <artifactId>*</artifactId> | ||
| </exclusion> | ||
| <exclusion> | ||
| <groupId>org.codehaus.janino</groupId> | ||
| <artifactId>*</artifactId> | ||
| </exclusion> | ||
| </exclusions> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.apache.sedona</groupId> | ||
| <artifactId>sedona-spark-common-${spark.compat.version}_${scala.compat.version}</artifactId> | ||
| <version>${project.version}</version> | ||
| </dependency> | ||
| <!-- JMH --> | ||
| <dependency> | ||
| <groupId>org.openjdk.jmh</groupId> | ||
| <artifactId>jmh-core</artifactId> | ||
| <version>${jmh.version}</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.openjdk.jmh</groupId> | ||
| <artifactId>jmh-generator-annprocess</artifactId> | ||
| <version>${jmh.version}</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.apache.commons</groupId> | ||
| <artifactId>commons-math3</artifactId> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.slf4j</groupId> | ||
| <artifactId>slf4j-api</artifactId> | ||
| <!-- THIS IS A FIX --> | ||
| <scope>compile</scope> | ||
| </dependency> | ||
| <!-- THIS IS THE OTHER PART OF THE FIX --> | ||
| <dependency> | ||
| <groupId>org.slf4j</groupId> | ||
| <artifactId>slf4j-simple</artifactId> | ||
| <version>1.7.32</version> <!-- Or any recent version --> | ||
| <scope>runtime</scope> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.geotools</groupId> | ||
| <artifactId>gt-main</artifactId> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.geotools</groupId> | ||
| <artifactId>gt-referencing</artifactId> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.geotools</groupId> | ||
| <artifactId>gt-epsg-hsql</artifactId> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.geotools</groupId> | ||
| <artifactId>gt-geotiff</artifactId> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.geotools</groupId> | ||
| <artifactId>gt-arcgrid</artifactId> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.geotools</groupId> | ||
| <artifactId>gt-process-feature</artifactId> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.locationtech.jts</groupId> | ||
| <artifactId>jts-core</artifactId> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.wololo</groupId> | ||
| <artifactId>jts2geojson</artifactId> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.locationtech.spatial4j</groupId> | ||
| <artifactId>spatial4j</artifactId> | ||
| </dependency> | ||
| <!-- org.datasyslab:s2-geometry-library is a fork of com.google.geometry:s2-geometry-library--> | ||
| <!-- as implementation requirements of apache sedona issue link: --> | ||
| <!-- https://github.com/apache/sedona/issues/1996 --> | ||
| <dependency> | ||
| <groupId>org.datasyslab</groupId> | ||
| <artifactId>s2-geometry-library</artifactId> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>com.uber</groupId> | ||
| <artifactId>h3</artifactId> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>com.esotericsoftware</groupId> | ||
| <artifactId>kryo</artifactId> | ||
| <scope>compile</scope> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>net.sf.geographiclib</groupId> | ||
| <artifactId>GeographicLib-Java</artifactId> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>com.github.ben-manes.caffeine</groupId> | ||
| <artifactId>caffeine</artifactId> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>it.geosolutions.jaiext.jiffle</groupId> | ||
| <artifactId>jt-jiffle-language</artifactId> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>edu.ucar</groupId> | ||
| <artifactId>cdm-core</artifactId> | ||
| </dependency> | ||
| <!-- For shading a janino package that works with Spark for jiffle. We don't add this to | ||
| dependencyManagement in parent pom.xml because we don't want to mess up with the | ||
| janino versions required by Spark. --> | ||
| <dependency> | ||
| <groupId>org.codehaus.janino</groupId> | ||
| <artifactId>janino</artifactId> | ||
| <version>${janino-version}</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>tools.profiler</groupId> | ||
| <artifactId>async-profiler</artifactId> | ||
| <version>4.1</version> | ||
| <scope>compile</scope> | ||
| </dependency> | ||
ZhuochengShang marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| </dependencies> | ||
| <build> | ||
| <sourceDirectory>src/jmh/java</sourceDirectory> | ||
| <plugins> | ||
| <plugin> | ||
| <groupId>org.apache.maven.plugins</groupId> | ||
| <artifactId>maven-compiler-plugin</artifactId> | ||
| <configuration> | ||
| <source>11</source> | ||
| <target>11</target> | ||
| </configuration> | ||
| </plugin> | ||
| <plugin> | ||
| <!-- Skip running resolved-pom-maven-plugin since shade will | ||
| generate dependency reduced pom which substitutes property | ||
| values. resolved-pom-maven-plugin will break pom | ||
| installation when working with maven-shade-plugin. --> | ||
| <groupId>io.paradoxical</groupId> | ||
| <artifactId>resolved-pom-maven-plugin</artifactId> | ||
| <version>1.0</version> | ||
| <executions> | ||
| <execution> | ||
| <id>resolve-my-pom</id> | ||
| <phase>none</phase> | ||
| </execution> | ||
| </executions> | ||
| </plugin> | ||
| <plugin> | ||
| <!-- | ||
| We need to shade jiffle and its antlr and janino dependencies for the following reasons: | ||
|
|
||
| 1. Databricks runtime uses an older version of janino (3.0.16) that does not work | ||
| with jiffle in Spark repl. See https://github.com/apache/sedona/discussions/1945 | ||
|
|
||
| 2. Spark 4 uses an incompatible version of antlr at runtime. | ||
| --> | ||
| <groupId>org.apache.maven.plugins</groupId> | ||
| <artifactId>maven-shade-plugin</artifactId> | ||
| <executions> | ||
| <execution> | ||
| <phase>package</phase> | ||
| <goals> | ||
| <goal>shade</goal> | ||
| </goals> | ||
| <configuration> | ||
| <transformers> | ||
| <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> | ||
| <mainClass>org.openjdk.jmh.Main</mainClass> | ||
| </transformer> | ||
| </transformers> | ||
| <relocations> | ||
| <relocation> | ||
| <pattern>it.geosolutions.jaiext.jiffle</pattern> | ||
| <shadedPattern>org.apache.sedona.shaded.jiffle</shadedPattern> | ||
| <excludes> | ||
| <exclude>it.geosolutions.jaiext.jiffle.runtime.*</exclude> | ||
| </excludes> | ||
| </relocation> | ||
| <relocation> | ||
| <pattern>org.antlr.v4.runtime</pattern> | ||
| <shadedPattern>org.apache.sedona.shaded.antlr</shadedPattern> | ||
| </relocation> | ||
| <relocation> | ||
| <pattern>org.codehaus</pattern> | ||
| <shadedPattern>org.apache.sedona.shaded.codehaus</shadedPattern> | ||
| </relocation> | ||
| </relocations> | ||
| <filters> | ||
| <!-- filter to address "Invalid signature file" issue - see http://stackoverflow.com/a/6743609/589215 --> | ||
| <filter> | ||
| <artifact>*:*</artifact> | ||
| <excludes> | ||
| <exclude>META-INF/*.SF</exclude> | ||
| <exclude>META-INF/*.DSA</exclude> | ||
| <exclude>META-INF/*.RSA</exclude> | ||
| </excludes> | ||
| </filter> | ||
| </filters> | ||
| </configuration> | ||
| </execution> | ||
| </executions> | ||
| </plugin> | ||
| </plugins> | ||
| </build> | ||
| </project> | ||
|
|
||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hard-coded version should be managed through Maven properties or parent POM dependency management to ensure consistency across the project.