Avatar for the GenericMappingTools user
GenericMappingTools
pygmt
BlogDocsChangelog

POC + WIP: Track current PyGMT figure to avoid calling the `figure` module repeatly

#3397
Comparing
states/figure
(
2a9e706
) with
main
(
0ef29f8
)
CodSpeed Performance Gauge
+56%
Improvement
27
Untouched
77

Benchmarks

104 total
test_subplot_basic_frame
pygmt/tests/test_subplot.py
CodSpeed Performance Gauge
+56%
55.7 ms35.8 ms
test_figure_repr
pygmt/tests/test_figure.py
CodSpeed Performance Gauge
+54%
33 ms21.5 ms
test_psconvert
pygmt/tests/test_psconvert.py
CodSpeed Performance Gauge
+49%
23.9 ms16 ms
test_meca_spec_multiple_focalmecha[dict_mecha_mixed]
pygmt/tests/test_meca.py
CodSpeed Performance Gauge
+41%
26.9 ms19 ms
test_meca_spec_multiple_focalmecha[dict_mecha]
pygmt/tests/test_meca.py
CodSpeed Performance Gauge
+41%
26.7 ms18.9 ms
test_meca_spec_multiple_focalmecha[array2d]
pygmt/tests/test_meca.py
CodSpeed Performance Gauge
+41%
27 ms19.1 ms
test_meca_spec_multiple_focalmecha[dataframe]
pygmt/tests/test_meca.py
CodSpeed Performance Gauge
+39%
27.9 ms20 ms
test_timestamp_font
pygmt/tests/test_timestamp.py
CodSpeed Performance Gauge
+36%
14.5 ms10.7 ms
test_basemap
pygmt/tests/test_basemap.py
CodSpeed Performance Gauge
+36%
14.4 ms10.6 ms
test_text_multiple_lines_of_text[list]
pygmt/tests/test_text.py
CodSpeed Performance Gauge
+35%
14.7 ms10.9 ms
test_text_multiple_lines_of_text[pyarrow]
pygmt/tests/test_text.py
CodSpeed Performance Gauge
+35%
14.8 ms11 ms
test_text_multiple_lines_of_text[numpy]
pygmt/tests/test_text.py
CodSpeed Performance Gauge
+35%
14.7 ms10.9 ms
test_histogram[Series]
pygmt/tests/test_histogram.py
CodSpeed Performance Gauge
+35%
15.1 ms11.2 ms
test_colorbar
pygmt/tests/test_colorbar.py
CodSpeed Performance Gauge
+34%
14.9 ms11.1 ms
test_histogram[list]
pygmt/tests/test_histogram.py
CodSpeed Performance Gauge
+34%
15.1 ms11.2 ms
test_wiggle_data_incols
pygmt/tests/test_wiggle.py
CodSpeed Performance Gauge
+34%
15 ms11.2 ms
test_plot_vectors
pygmt/tests/test_plot.py
CodSpeed Performance Gauge
+33%
15.7 ms11.8 ms
test_plot3d_vectors
pygmt/tests/test_plot3d.py
CodSpeed Performance Gauge
+32%
16.2 ms12.3 ms
test_rose_plot_data_using_cpt
pygmt/tests/test_rose.py
CodSpeed Performance Gauge
+29%
17.4 ms13.4 ms
test_grdcontour_labels
pygmt/tests/test_grdcontour.py
CodSpeed Performance Gauge
+27%
18.3 ms14.4 ms
test_grd2cpt
pygmt/tests/test_grd2cpt.py
CodSpeed Performance Gauge
+25%
37.8 ms30.2 ms
test_velo_pandas_dataframe
pygmt/tests/test_velo.py
CodSpeed Performance Gauge
+24%
19.7 ms15.8 ms
test_legend_entries
pygmt/tests/test_legend.py
CodSpeed Performance Gauge
+20%
116 ms96.5 ms
test_solar_set_terminator_datetime[terminator_datetime1]
pygmt/tests/test_solar.py
CodSpeed Performance Gauge
+19%
23.2 ms19.5 ms
test_solar_set_terminator_datetime[terminator_datetime_string]
pygmt/tests/test_solar.py
CodSpeed Performance Gauge
+19%
24.1 ms20.3 ms

Commits

Click on a commit to change the comparison range
Base
main
0ef29f8
+54.77%
Track current PyGMT figure to avoid calling the `figure` module repeatly
899997d
2 years ago
by seisman
+0.37%
Merge branch 'main' into states/figure
9f4839c
1 year ago
by seisman
+0.46%
Merge branch 'main' into states/figure
1ca4e46
1 year ago
by seisman
-0.09%
Merge branch 'main' into states/figure
2a9e706
8 months ago
by seisman
© 2026 CodSpeed Technology
Home Terms Privacy Docs