Skip to content

Add cartopy comparison benchmarks#2

Open
seisman wants to merge 3 commits into
mainfrom
bench/cartopy-coastlines
Open

Add cartopy comparison benchmarks#2
seisman wants to merge 3 commits into
mainfrom
bench/cartopy-coastlines

Conversation

@seisman
Copy link
Copy Markdown
Member

@seisman seisman commented May 29, 2026

This PR adds a benchmark for plotting coastlines using PyGMT and Cartopy.

Cartopy uses the Natural Earth datsets, which provide three different resolutions: 110m, 50m, and 10m. From what I can see, the 50m resolution is close GMT's low resolution, and the 10m resolution is close to GMT's intermediate resolution.

Here is the result:

Library Case Resolution Plot (s) Save/Total (s)
Cartopy Global 110m 0.0146 0.4347
Cartopy Global 50m 0.0154 0.4740
Cartopy Global 10m 0.0155 0.6515
Cartopy Regional 10m 0.0152 0.2567
PyGMT Global Crude 0.1534 0.5240
PyGMT Global Low 0.5391 1.3283
PyGMT Global Intermediate 2.0552 3.9899
PyGMT Regional Intermediate 0.1117 0.4786
PyGMT Regional High 0.2518 0.7082
PyGMT Regional Full 0.4209 0.9972

@seisman seisman changed the title Benchmark cartopy coastlines Add cartopy comparison benchmarks May 29, 2026
@seisman seisman force-pushed the bench/cartopy-coastlines branch from bd8da87 to 1b65324 Compare May 29, 2026 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant