Avatar for the GenericMappingTools user
GenericMappingTools
pygmt
BlogDocsChangelog

Correctly reserve the grid data dtype by converting ctypes array to numpy array with np.ctypeslib.as_array

#3446Merged
Comparing
ctypesarray
(
09ac0a0
) with
main
(
2454aa6
)
CodSpeed Performance Gauge
+83%
Improvement
2
Untouched
99

Benchmarks

101 total
test_sphinterpolate_no_outgrid
pygmt/tests/test_sphinterpolate.py
CodSpeed Performance Gauge
+83%
71.2 ms39 ms
test_sph2grd_no_outgrid
pygmt/tests/test_sph2grd.py
CodSpeed Performance Gauge
+12%
323.6 ms289.1 ms
test_binstats_no_outgrid
pygmt/tests/test_binstats.py
CodSpeed Performance Gauge
+8%
22.6 ms21 ms
test_grdsample_dataarray_out
pygmt/tests/test_grdsample.py
CodSpeed Performance Gauge
+3%
10.6 ms10.3 ms
test_load_remote_dataset_benchmark_with_region
pygmt/tests/test_datasets_load_remote_datasets.py
CodSpeed Performance Gauge
+2%
52.7 ms51.4 ms
test_earth_relief_holes
pygmt/tests/test_datasets_samples.py
CodSpeed Performance Gauge
+1%
39.4 ms38.9 ms
test_grdfill_dataarray_out
pygmt/tests/test_grdfill.py
CodSpeed Performance Gauge
+1%
9.8 ms9.7 ms
test_surface_input_xyz
pygmt/tests/test_surface.py
CodSpeed Performance Gauge
+1%
10.5 ms10.4 ms
test_nearneighbor_input_xyz
pygmt/tests/test_nearneighbor.py
CodSpeed Performance Gauge
+1%
1.4 s1.4 s
test_dimfilter_no_outgrid
pygmt/tests/test_dimfilter.py
CodSpeed Performance Gauge
0%
10 ms9.9 ms
test_compute_bins_no_outfile
pygmt/tests/test_grdhisteq.py
CodSpeed Performance Gauge
0%
9.6 ms9.6 ms
test_subplot_basic_frame
pygmt/tests/test_subplot.py
CodSpeed Performance Gauge
0%
54.2 ms54.1 ms
test_figure_repr
pygmt/tests/test_figure.py
CodSpeed Performance Gauge
0%
32.2 ms32.1 ms
test_grdproject_no_outgrid[EPSG:3395 +width=10]
pygmt/tests/test_grdproject.py
CodSpeed Performance Gauge
0%
10.4 ms10.4 ms
test_grdcontour_labels
pygmt/tests/test_grdcontour.py
CodSpeed Performance Gauge
0%
17.7 ms17.7 ms
test_coast_region
pygmt/tests/test_coast.py
CodSpeed Performance Gauge
0%
481.7 ms481 ms
test_grdimage_grid_and_shading_with_xarray[png]
pygmt/tests/test_grdimage.py
CodSpeed Performance Gauge
0%
1.3 s1.3 s
test_put_vector_string_dtype
pygmt/tests/test_clib_put_vector.py
CodSpeed Performance Gauge
0%
25.1 ms25.1 ms
test_ternary_3_labels
pygmt/tests/test_ternary.py
CodSpeed Performance Gauge
0%
25.3 ms25.3 ms
test_which_multiple
pygmt/tests/test_which.py
CodSpeed Performance Gauge
0%
29.7 ms29.7 ms
test_grdcut_dataarray_in_dataarray_out
pygmt/tests/test_grdcut.py
CodSpeed Performance Gauge
0%
14.7 ms14.7 ms
test_dataarray_to_matrix_works
pygmt/tests/test_clib.py
CodSpeed Performance Gauge
0%
2.2 ms2.2 ms
test_filter1d
pygmt/tests/test_filter1d.py
CodSpeed Performance Gauge
0%
43.9 ms43.8 ms
test_grd2cpt
pygmt/tests/test_grd2cpt.py
CodSpeed Performance Gauge
0%
37.8 ms37.7 ms
test_contour_matrix[Dataset]
pygmt/tests/test_contour.py
CodSpeed Performance Gauge
0%
71.1 ms71 ms

Commits

Click on a commit to change the comparison range
Base
main
2454aa6
+83.87%
Fix the incorrect value due to floating number conversion in sphinterpolate
15b8d53
1 year ago
by seisman
-1.26%
Merge branch 'main' into ctypesarray
09ac0a0
1 year ago
by seisman
© 2026 CodSpeed Technology
Home Terms Privacy Docs