Avatar for the GenericMappingTools user
GenericMappingTools
pygmt
BlogDocsChangelog

Improve performance by avoiding loading the GMT library repeatedly

#2930Merged
Comparing
clib/load-libgmt
(
11cb76b
) with
main
(
88ab1ca
)
CodSpeed Performance Gauge
+1%
Untouched
64

Benchmarks

64 total
test_grdinfo
pygmt/tests/test_grdinfo.py
CodSpeed Performance Gauge
+3%
8.2 ms8 ms
test_histogram[list]
pygmt/tests/test_histogram.py
CodSpeed Performance Gauge
+3%
16.5 ms16 ms
test_histogram[Series]
pygmt/tests/test_histogram.py
CodSpeed Performance Gauge
+3%
16.5 ms16.1 ms
test_psconvert
pygmt/tests/test_psconvert.py
CodSpeed Performance Gauge
+2%
26.5 ms25.9 ms
test_plot_vectors
pygmt/tests/test_plot.py
CodSpeed Performance Gauge
+2%
17.1 ms16.7 ms
test_timestamp_font
pygmt/tests/test_timestamp.py
CodSpeed Performance Gauge
+2%
16.1 ms15.7 ms
test_wiggle_data_incols
pygmt/tests/test_wiggle.py
CodSpeed Performance Gauge
+2%
16.7 ms16.3 ms
test_rose_plot_data_using_cpt
pygmt/tests/test_rose.py
CodSpeed Performance Gauge
+2%
18.7 ms18.2 ms
test_basemap
pygmt/tests/test_basemap.py
CodSpeed Performance Gauge
+2%
16 ms15.6 ms
test_plot3d_vectors
pygmt/tests/test_plot3d.py
CodSpeed Performance Gauge
+2%
17.6 ms17.2 ms
test_grdtrack_input_dataframe_and_dataarray
pygmt/tests/test_grdtrack.py
CodSpeed Performance Gauge
+2%
10.1 ms9.9 ms
test_grdcontour_labels
pygmt/tests/test_grdcontour.py
CodSpeed Performance Gauge
+2%
19.6 ms19.2 ms
test_project_input_matrix[array]
pygmt/tests/test_project.py
CodSpeed Performance Gauge
+2%
9.4 ms9.2 ms
test_meca_spec_multiple_focalmecha[dataframe]
pygmt/tests/test_meca.py
CodSpeed Performance Gauge
+2%
32.4 ms31.8 ms
test_grdvolume_no_outgrid
pygmt/tests/test_grdvolume.py
CodSpeed Performance Gauge
+2%
9.7 ms9.5 ms
test_text_multiple_lines_of_text
pygmt/tests/test_text.py
CodSpeed Performance Gauge
+2%
19.9 ms19.5 ms
test_meca_spec_multiple_focalmecha[dict_mecha_mixed]
pygmt/tests/test_meca.py
CodSpeed Performance Gauge
+2%
33 ms32.3 ms
test_project_input_matrix[DataFrame]
pygmt/tests/test_project.py
CodSpeed Performance Gauge
+2%
9.7 ms9.5 ms
test_meca_spec_multiple_focalmecha[dict_mecha]
pygmt/tests/test_meca.py
CodSpeed Performance Gauge
+2%
32.9 ms32.3 ms
test_meca_spec_multiple_focalmecha[array2d]
pygmt/tests/test_meca.py
CodSpeed Performance Gauge
+2%
31.7 ms31.1 ms
test_grdsample_dataarray_out
pygmt/tests/test_grdsample.py
CodSpeed Performance Gauge
+2%
21.3 ms20.9 ms
test_grd2cpt
pygmt/tests/test_grd2cpt.py
CodSpeed Performance Gauge
+2%
42.4 ms41.6 ms
test_subplot_basic_frame
pygmt/tests/test_subplot.py
CodSpeed Performance Gauge
+2%
64.3 ms63.2 ms
test_grd2xyz
pygmt/tests/test_grd2xyz.py
CodSpeed Performance Gauge
+2%
9.9 ms9.7 ms
test_begin_end
pygmt/tests/test_session_management.py
CodSpeed Performance Gauge
+2%
36 ms35.4 ms

Commits

Click on a commit to change the comparison range
Base
main
88ab1ca
+1.54%
clib: Search and load the GMT library only one time
51f3943
2 years ago
by seisman
-0.12%
Merge branch 'main' into clib/load-libgmt
6936f59
2 years ago
by seisman
0%
Add a unittest
f589ff8
2 years ago
by seisman
-0.27%
Apply suggestions from code review
401a0f8
2 years ago
by seisman
+0.16%
Add a test to check multiprocessing support
48c00ae
2 years ago
by seisman
+0.19%
Mark the test as xfail on Windows
b31fe19
2 years ago
by seisman
-0.22%
Merge branch 'main' into clib/load-libgmt
ce263ec
2 years ago
by seisman
+0.17%
Improve tests
820e11b
2 years ago
by seisman
+12.7%
Remove the multiprocessing test
7a2d96d
2 years ago
by seisman
-12.94%
Merge branch 'main' into clib/load-libgmt
bf6083f
2 years ago
by seisman
+0.19%
Merge branch 'main' into clib/load-libgmt
11cb76b
2 years ago
by seisman
© 2026 CodSpeed Technology
Home Terms Privacy Docs