Avatar for the GenericMappingTools user
GenericMappingTools
pygmt
BlogDocsChangelog

Refactor clib to avoid checking GMT version repeatedly and only check once when loading the GMT library

#3254Merged
Comparing
clib/check-version
(
00ee9b4
) with
main
(
81e12d9
)
CodSpeed Performance Gauge
0%
Untouched
101

Benchmarks

101 total
test_grdlandmask_no_outgrid
pygmt/tests/test_grdlandmask.py
CodSpeed Performance Gauge
-3%
137.9 ms142.7 ms
test_sph2grd_no_outgrid
pygmt/tests/test_sph2grd.py
CodSpeed Performance Gauge
+3%
410.3 ms398.7 ms
test_grdsample_dataarray_out
pygmt/tests/test_grdsample.py
CodSpeed Performance Gauge
-2%
10.9 ms11.2 ms
test_accessor_set_geographic_cartesian_roundtrip
pygmt/tests/test_accessor.py
CodSpeed Performance Gauge
-1%
311.1 µs314.7 µs
test_surface_input_xyz
pygmt/tests/test_surface.py
CodSpeed Performance Gauge
0%
10.5 ms10.6 ms
test_x2sys_init_units_gap
pygmt/tests/test_x2sys_init.py
CodSpeed Performance Gauge
0%
8.5 ms8.5 ms
test_info_pandas_dataframe_date_column[date64[ms][pyarrow]]
pygmt/tests/test_info.py
CodSpeed Performance Gauge
0%
9.6 ms9.7 ms
test_load_libgmt
pygmt/tests/test_clib_loading.py
CodSpeed Performance Gauge
0%
528.2 µs526.6 µs
test_virtualfile_in_required_z_matrix[Dataset-vector]
pygmt/tests/test_clib_virtualfiles.py
CodSpeed Performance Gauge
0%
11.8 ms11.8 ms
test_grdproject_no_outgrid[EPSG:3395 +width=10]
pygmt/tests/test_grdproject.py
CodSpeed Performance Gauge
0%
10.5 ms10.5 ms
test_grdfill_dataarray_out
pygmt/tests/test_grdfill.py
CodSpeed Performance Gauge
0%
9.8 ms9.9 ms
test_compute_bins_no_outfile
pygmt/tests/test_grdhisteq.py
CodSpeed Performance Gauge
0%
9.7 ms9.7 ms
test_coast_region
pygmt/tests/test_coast.py
CodSpeed Performance Gauge
0%
481.3 ms480 ms
test_geopandas_info_geodataframe
pygmt/tests/test_geopandas.py
CodSpeed Performance Gauge
0%
13.4 ms13.3 ms
test_figure_repr
pygmt/tests/test_figure.py
CodSpeed Performance Gauge
0%
32.1 ms32.2 ms
test_grdcontour_labels
pygmt/tests/test_grdcontour.py
CodSpeed Performance Gauge
0%
17.7 ms17.7 ms
test_text_multiple_lines_of_text
pygmt/tests/test_text.py
CodSpeed Performance Gauge
0%
14.2 ms14.2 ms
test_grdfilter_dataarray_in_dataarray_out
pygmt/tests/test_grdfilter.py
CodSpeed Performance Gauge
0%
9.9 ms10 ms
test_histogram[list]
pygmt/tests/test_histogram.py
CodSpeed Performance Gauge
0%
14.6 ms14.6 ms
test_grd2cpt
pygmt/tests/test_grd2cpt.py
CodSpeed Performance Gauge
0%
37.7 ms37.7 ms
test_xyz2grd_input_array[Dataset]
pygmt/tests/test_xyz2grd.py
CodSpeed Performance Gauge
0%
31.2 ms31.3 ms
test_rose_plot_data_using_cpt
pygmt/tests/test_rose.py
CodSpeed Performance Gauge
0%
17 ms17 ms
test_put_vector_string_dtype
pygmt/tests/test_clib_put_vector.py
CodSpeed Performance Gauge
0%
25.2 ms25.3 ms
test_dataarray_to_matrix_works
pygmt/tests/test_clib.py
CodSpeed Performance Gauge
0%
2.2 ms2.2 ms
test_info_pandas_dataframe_date_column[datetime64[ns]]
pygmt/tests/test_info.py
CodSpeed Performance Gauge
0%
9.5 ms9.5 ms

Commits

Click on a commit to change the comparison range
Base
clib/check-version
81e12d9
+2.07%
clib: Refactor to check the GMT version only once
f55d5d4
3 years ago
by seisman
+0.06%
Merge branch 'main' into clib/check-version
81e12d9
2 years ago
by seisman
-2.19%
Apply suggestions from code review
00ee9b4
2 years ago
by seisman
© 2026 CodSpeed Technology
Home Terms Privacy Docs