GenericMappingTools
pygmt
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
_check_encoding: Improve efficiency by creating dict outside the for loop
#3648
Merged
Comparing
improve/_check_encoding
(
7cf0eb9
) with
main
(
bad7943
)
CodSpeed Performance Gauge
0%
Improvements
0
Regressions
0
Untouched
104
New
0
Dropped
0
Ignored
0
Benchmarks
Passed
test_virtualfile_from_vectors_one_string_or_object_column[object]
pygmt/tests/test_clib_virtualfile_from_vectors.py::test_virtualfile_from_vectors_one_string_or_object_column[object]
CodSpeed Performance Gauge
+1%
8.4 ms
8.3 ms
test_virtualfile_from_vectors_one_string_or_object_column[pyarrow]
pygmt/tests/test_clib_virtualfile_from_vectors.py::test_virtualfile_from_vectors_one_string_or_object_column[pyarrow]
CodSpeed Performance Gauge
+1%
8.4 ms
8.4 ms
test_virtualfile_in_required_z_matrix[array-matrix]
pygmt/tests/test_clib_virtualfile_in.py::test_virtualfile_in_required_z_matrix[array-matrix]
CodSpeed Performance Gauge
0%
8.9 ms
8.9 ms
test_histogram[list]
pygmt/tests/test_histogram.py::test_histogram[list]
CodSpeed Performance Gauge
0%
14.6 ms
14.6 ms
test_virtualfile_from_vectors
pygmt/tests/test_clib_virtualfile_from_vectors.py::test_virtualfile_from_vectors
CodSpeed Performance Gauge
0%
76.2 ms
75.9 ms
test_call_module
pygmt/tests/test_clib_call_module.py::test_call_module
CodSpeed Performance Gauge
0%
8.3 ms
8.3 ms
test_virtualfile_from_matrix
pygmt/tests/test_clib_virtualfile_from_matrix.py::test_virtualfile_from_matrix
CodSpeed Performance Gauge
0%
75.5 ms
75.2 ms
test_info_pandas_dataframe_date_column[date64[ms][pyarrow]]
pygmt/tests/test_info.py::test_info_pandas_dataframe_date_column[date64[ms][pyarrow]]
CodSpeed Performance Gauge
0%
9.8 ms
9.8 ms
test_open_virtualfile
pygmt/tests/test_clib_virtualfiles.py::test_open_virtualfile
CodSpeed Performance Gauge
0%
74.8 ms
74.6 ms
test_x2sys_init_units_gap
pygmt/tests/test_x2sys_init.py::test_x2sys_init_units_gap
CodSpeed Performance Gauge
0%
8.5 ms
8.4 ms
test_begin_end
pygmt/tests/test_session_management.py::test_begin_end
CodSpeed Performance Gauge
0%
31.5 ms
31.4 ms
test_put_matrix_grid
pygmt/tests/test_clib_put_matrix.py::test_put_matrix_grid
CodSpeed Performance Gauge
0%
71.3 ms
71.1 ms
test_virtualfile_in_required_z_matrix[DataFrame-vector]
pygmt/tests/test_clib_virtualfile_in.py::test_virtualfile_in_required_z_matrix[DataFrame-vector]
CodSpeed Performance Gauge
0%
9.6 ms
9.6 ms
test_config_format_date_map
pygmt/tests/test_config.py::test_config_format_date_map
CodSpeed Performance Gauge
0%
36.8 ms
36.7 ms
test_text_multiple_lines_of_text[numpy]
pygmt/tests/test_text.py::test_text_multiple_lines_of_text[numpy]
CodSpeed Performance Gauge
0%
14.2 ms
14.1 ms
test_grdfill_dataarray_out
pygmt/tests/test_grdfill.py::test_grdfill_dataarray_out
CodSpeed Performance Gauge
0%
10.2 ms
10.1 ms
test_virtualfile_from_vectors_one_string_or_object_column[str]
pygmt/tests/test_clib_virtualfile_from_vectors.py::test_virtualfile_from_vectors_one_string_or_object_column[str]
CodSpeed Performance Gauge
0%
8.4 ms
8.3 ms
test_info_pandas_dataframe_date_column[datetime64[ns]]
pygmt/tests/test_info.py::test_info_pandas_dataframe_date_column[datetime64[ns]]
CodSpeed Performance Gauge
0%
9.7 ms
9.7 ms
test_psconvert
pygmt/tests/test_psconvert.py::test_psconvert
CodSpeed Performance Gauge
0%
23.2 ms
23.2 ms
test_grdproject_no_outgrid[EPSG:3395 +width=10]
pygmt/tests/test_grdproject.py::test_grdproject_no_outgrid[EPSG:3395 +width=10]
CodSpeed Performance Gauge
0%
10.9 ms
10.9 ms
test_velo_pandas_dataframe
pygmt/tests/test_velo.py::test_velo_pandas_dataframe
CodSpeed Performance Gauge
0%
19.2 ms
19.2 ms
test_compute_bins_no_outfile
pygmt/tests/test_grdhisteq.py::test_compute_bins_no_outfile
CodSpeed Performance Gauge
0%
9.8 ms
9.8 ms
test_xyz2grd_input_array[array]
pygmt/tests/test_xyz2grd.py::test_xyz2grd_input_array[array]
CodSpeed Performance Gauge
0%
32.7 ms
32.6 ms
test_grdinfo
pygmt/tests/test_grdinfo.py::test_grdinfo
CodSpeed Performance Gauge
0%
6.7 ms
6.7 ms
test_figure_repr
pygmt/tests/test_figure.py::test_figure_repr
CodSpeed Performance Gauge
0%
32.1 ms
32.1 ms
test_timestamp_font
pygmt/tests/test_timestamp.py::test_timestamp_font
CodSpeed Performance Gauge
0%
14.1 ms
14.1 ms
test_meca_spec_multiple_focalmecha[dict_mecha]
pygmt/tests/test_meca.py::test_meca_spec_multiple_focalmecha[dict_mecha]
CodSpeed Performance Gauge
0%
28.3 ms
28.2 ms
test_meca_spec_multiple_focalmecha[array2d]
pygmt/tests/test_meca.py::test_meca_spec_multiple_focalmecha[array2d]
CodSpeed Performance Gauge
0%
27.2 ms
27.2 ms
test_meca_spec_multiple_focalmecha[dict_mecha_mixed]
pygmt/tests/test_meca.py::test_meca_spec_multiple_focalmecha[dict_mecha_mixed]
CodSpeed Performance Gauge
0%
28.4 ms
28.4 ms
test_info_xarray_dataset_time_column
pygmt/tests/test_info.py::test_info_xarray_dataset_time_column
CodSpeed Performance Gauge
0%
9.7 ms
9.7 ms
test_basemap
pygmt/tests/test_basemap.py::test_basemap
CodSpeed Performance Gauge
0%
14.2 ms
14.1 ms
test_solar_set_terminator_datetime[terminator_datetime1]
pygmt/tests/test_solar.py::test_solar_set_terminator_datetime[terminator_datetime1]
CodSpeed Performance Gauge
0%
23.6 ms
23.6 ms
test_grdfilter_dataarray_in_dataarray_out
pygmt/tests/test_grdfilter.py::test_grdfilter_dataarray_in_dataarray_out
CodSpeed Performance Gauge
0%
10.3 ms
10.3 ms
test_logo
pygmt/tests/test_logo.py::test_logo
CodSpeed Performance Gauge
0%
176.1 ms
175.9 ms
test_text_multiple_lines_of_text[list]
pygmt/tests/test_text.py::test_text_multiple_lines_of_text[list]
CodSpeed Performance Gauge
0%
14.1 ms
14.1 ms
test_grd2cpt
pygmt/tests/test_grd2cpt.py::test_grd2cpt
CodSpeed Performance Gauge
0%
37.9 ms
37.8 ms
test_grdcut_dataarray_in_dataarray_out
pygmt/tests/test_grdcut.py::test_grdcut_dataarray_in_dataarray_out
CodSpeed Performance Gauge
0%
15.2 ms
15.2 ms
test_plot3d_vectors
pygmt/tests/test_plot3d.py::test_plot3d_vectors
CodSpeed Performance Gauge
0%
15.6 ms
15.6 ms
test_solar_set_terminator_datetime[terminator_datetime_string]
pygmt/tests/test_solar.py::test_solar_set_terminator_datetime[terminator_datetime_string]
CodSpeed Performance Gauge
0%
24.4 ms
24.4 ms
test_grdproject_no_outgrid[M10c]
pygmt/tests/test_grdproject.py::test_grdproject_no_outgrid[M10c]
CodSpeed Performance Gauge
0%
10.3 ms
10.3 ms
test_grdcontour_labels
pygmt/tests/test_grdcontour.py::test_grdcontour_labels
CodSpeed Performance Gauge
0%
17.8 ms
17.8 ms
test_ternary_3_labels
pygmt/tests/test_ternary.py::test_ternary_3_labels
CodSpeed Performance Gauge
0%
25.3 ms
25.3 ms
test_xyz2grd_input_array[Dataset]
pygmt/tests/test_xyz2grd.py::test_xyz2grd_input_array[Dataset]
CodSpeed Performance Gauge
0%
31.6 ms
31.5 ms
test_contour_matrix[array]
pygmt/tests/test_contour.py::test_contour_matrix[array]
CodSpeed Performance Gauge
0%
68.1 ms
68.1 ms
test_which_multiple
pygmt/tests/test_which.py::test_which_multiple
CodSpeed Performance Gauge
0%
29.7 ms
29.7 ms
test_grdimage_grid_and_shading_with_xarray[png]
pygmt/tests/test_grdimage.py::test_grdimage_grid_and_shading_with_xarray[png]
CodSpeed Performance Gauge
0%
1.3 s
1.3 s
test_dataset
pygmt/tests/test_datatypes_dataset.py::test_dataset
CodSpeed Performance Gauge
0%
82.6 ms
82.6 ms
test_blockmode_input_dataframe
pygmt/tests/test_blockm.py::test_blockmode_input_dataframe
CodSpeed Performance Gauge
0%
127.2 ms
127.1 ms
test_contour_matrix[DataFrame]
pygmt/tests/test_contour.py::test_contour_matrix[DataFrame]
CodSpeed Performance Gauge
0%
68.9 ms
68.9 ms
test_grdproject_no_outgrid[+proj=merc +ellps=WGS84 +units=m +width=10]
pygmt/tests/test_grdproject.py::test_grdproject_no_outgrid[+proj=merc +ellps=WGS84 +units=m +width=10]
CodSpeed Performance Gauge
0%
12.3 ms
12.3 ms
test_meca_spec_multiple_focalmecha[dataframe]
pygmt/tests/test_meca.py::test_meca_spec_multiple_focalmecha[dataframe]
CodSpeed Performance Gauge
0%
27.9 ms
27.9 ms
test_wiggle_data_incols
pygmt/tests/test_wiggle.py::test_wiggle_data_incols
CodSpeed Performance Gauge
0%
14.7 ms
14.7 ms
test_x2sys_cross_input_dataframe_output_dataframe[o]
pygmt/tests/test_x2sys_cross.py::test_x2sys_cross_input_dataframe_output_dataframe[o]
CodSpeed Performance Gauge
0%
241.5 ms
241.4 ms
test_text_multiple_lines_of_text[pyarrow]
pygmt/tests/test_text.py::test_text_multiple_lines_of_text[pyarrow]
CodSpeed Performance Gauge
0%
14.2 ms
14.2 ms
test_load_libgmt
pygmt/tests/test_clib_loading.py::test_load_libgmt
CodSpeed Performance Gauge
0%
506.9 µs
506.7 µs
test_colorbar
pygmt/tests/test_colorbar.py::test_colorbar
CodSpeed Performance Gauge
0%
14.5 ms
14.5 ms
test_makecpt_output_cpt_file
pygmt/tests/test_makecpt.py::test_makecpt_output_cpt_file
CodSpeed Performance Gauge
0%
10.7 ms
10.7 ms
test_earth_relief_holes
pygmt/tests/test_datasets_samples.py::test_earth_relief_holes
CodSpeed Performance Gauge
0%
38.9 ms
38.9 ms
test_contour_matrix[Dataset]
pygmt/tests/test_contour.py::test_contour_matrix[Dataset]
CodSpeed Performance Gauge
0%
71 ms
71 ms
test_rose_plot_data_using_cpt
pygmt/tests/test_rose.py::test_rose_plot_data_using_cpt
CodSpeed Performance Gauge
0%
17 ms
17 ms
test_grdgradient_no_outgrid
pygmt/tests/test_grdgradient.py::test_grdgradient_no_outgrid
CodSpeed Performance Gauge
0%
10.3 ms
10.3 ms
test_select_input_dataframe
pygmt/tests/test_select.py::test_select_input_dataframe
CodSpeed Performance Gauge
0%
84.4 ms
84.3 ms
test_equalize_grid_no_outgrid
pygmt/tests/test_grdhisteq.py::test_equalize_grid_no_outgrid
CodSpeed Performance Gauge
0%
10.2 ms
10.2 ms
test_x2sys_cross_input_dataframe_output_dataframe[y]
pygmt/tests/test_x2sys_cross.py::test_x2sys_cross_input_dataframe_output_dataframe[y]
CodSpeed Performance Gauge
0%
241.5 ms
241.4 ms
test_virtualfile_in_required_z_matrix[Dataset-vector]
pygmt/tests/test_clib_virtualfile_in.py::test_virtualfile_in_required_z_matrix[Dataset-vector]
CodSpeed Performance Gauge
0%
11.8 ms
11.8 ms
test_blockmedian_input_table_matrix
pygmt/tests/test_blockmedian.py::test_blockmedian_input_table_matrix
CodSpeed Performance Gauge
0%
124.3 ms
124.3 ms
test_grdtrack_input_dataframe_and_dataarray
pygmt/tests/test_grdtrack.py::test_grdtrack_input_dataframe_and_dataarray
CodSpeed Performance Gauge
0%
60.8 ms
60.8 ms
test_x2sys_cross_input_dataframe_output_dataframe[s]
pygmt/tests/test_x2sys_cross.py::test_x2sys_cross_input_dataframe_output_dataframe[s]
CodSpeed Performance Gauge
0%
241.5 ms
241.5 ms
test_histogram[Series]
pygmt/tests/test_histogram.py::test_histogram[Series]
CodSpeed Performance Gauge
0%
14.6 ms
14.6 ms
test_project_input_matrix[Dataset]
pygmt/tests/test_project.py::test_project_input_matrix[Dataset]
CodSpeed Performance Gauge
0%
112.9 ms
112.9 ms
test_legend_entries
pygmt/tests/test_legend.py::test_legend_entries
CodSpeed Performance Gauge
0%
123.5 ms
123.5 ms
test_put_matrix
pygmt/tests/test_clib_put_matrix.py::test_put_matrix
CodSpeed Performance Gauge
0%
26.5 ms
26.5 ms
test_plot_vectors
pygmt/tests/test_plot.py::test_plot_vectors
CodSpeed Performance Gauge
0%
15.2 ms
15.1 ms
test_delaunay_triples_input_xyz
pygmt/tests/test_triangulate.py::test_delaunay_triples_input_xyz
CodSpeed Performance Gauge
0%
94.1 ms
94.1 ms
test_project_input_matrix[array]
pygmt/tests/test_project.py::test_project_input_matrix[array]
CodSpeed Performance Gauge
0%
110.9 ms
110.9 ms
test_nearneighbor_input_xyz
pygmt/tests/test_nearneighbor.py::test_nearneighbor_input_xyz
CodSpeed Performance Gauge
0%
1.3 s
1.3 s
test_filter1d
pygmt/tests/test_filter1d.py::test_filter1d
CodSpeed Performance Gauge
0%
44 ms
44 ms
test_project_input_matrix[DataFrame]
pygmt/tests/test_project.py::test_project_input_matrix[DataFrame]
CodSpeed Performance Gauge
0%
111.4 ms
111.4 ms
test_grdvolume
pygmt/tests/test_grdvolume.py::test_grdvolume
CodSpeed Performance Gauge
0%
77.2 ms
77.2 ms
test_regular_grid_no_outgrid
pygmt/tests/test_triangulate.py::test_regular_grid_no_outgrid
CodSpeed Performance Gauge
0%
62 ms
62 ms
test_grdview_drapegrid_dataarray
pygmt/tests/test_grdview.py::test_grdview_drapegrid_dataarray
CodSpeed Performance Gauge
0%
1.3 s
1.3 s
test_sphdistance_no_outgrid
pygmt/tests/test_sphdistance.py::test_sphdistance_no_outgrid
CodSpeed Performance Gauge
0%
132 ms
132 ms
test_binstats_no_outgrid
pygmt/tests/test_binstats.py::test_binstats_no_outgrid
CodSpeed Performance Gauge
0%
20.9 ms
20.9 ms
test_dataarray_to_matrix_works
pygmt/tests/test_clib_dataarray_to_matrix.py::test_dataarray_to_matrix_works
CodSpeed Performance Gauge
0%
2.3 ms
2.3 ms
test_blockmean_input_xyz
pygmt/tests/test_blockm.py::test_blockmean_input_xyz
CodSpeed Performance Gauge
0%
84.2 ms
84.2 ms
test_sphinterpolate_no_outgrid
pygmt/tests/test_sphinterpolate.py::test_sphinterpolate_no_outgrid
CodSpeed Performance Gauge
0%
38.4 ms
38.4 ms
test_grd2xyz
pygmt/tests/test_grd2xyz.py::test_grd2xyz
CodSpeed Performance Gauge
0%
61.2 ms
61.2 ms
test_dimfilter_no_outgrid
pygmt/tests/test_dimfilter.py::test_dimfilter_no_outgrid
CodSpeed Performance Gauge
0%
10.4 ms
10.4 ms
test_put_vector
pygmt/tests/test_clib_put_vector.py::test_put_vector
CodSpeed Performance Gauge
0%
30.9 ms
30.9 ms
test_load_remote_dataset_benchmark_with_region
pygmt/tests/test_datasets_load_remote_datasets.py::test_load_remote_dataset_benchmark_with_region
CodSpeed Performance Gauge
0%
51.6 ms
51.6 ms
test_io_load_dataarray
pygmt/tests/test_io.py::test_io_load_dataarray
CodSpeed Performance Gauge
0%
24.1 ms
24.1 ms
test_info_pandas_dataframe_date_column[date32[day][pyarrow]]
pygmt/tests/test_info.py::test_info_pandas_dataframe_date_column[date32[day][pyarrow]]
CodSpeed Performance Gauge
0%
9.8 ms
9.8 ms
test_subplot_basic_frame
pygmt/tests/test_subplot.py::test_subplot_basic_frame
CodSpeed Performance Gauge
0%
54.2 ms
54.2 ms
test_put_vector_string_dtype
pygmt/tests/test_clib_put_vector.py::test_put_vector_string_dtype
CodSpeed Performance Gauge
0%
25.1 ms
25.1 ms
test_surface_input_xyz
pygmt/tests/test_surface.py::test_surface_input_xyz
CodSpeed Performance Gauge
0%
11 ms
11 ms
test_inset_aliases
pygmt/tests/test_inset.py::test_inset_aliases
CodSpeed Performance Gauge
0%
571.3 ms
571.9 ms
test_geopandas_info_geodataframe
pygmt/tests/test_geopandas.py::test_geopandas_info_geodataframe
CodSpeed Performance Gauge
0%
13.3 ms
13.3 ms
test_put_strings
pygmt/tests/test_clib_put_strings.py::test_put_strings
CodSpeed Performance Gauge
0%
3.4 ms
3.5 ms
test_coast_region
pygmt/tests/test_coast.py::test_coast_region
CodSpeed Performance Gauge
0%
480.7 ms
482.1 ms
test_grdclip_no_outgrid
pygmt/tests/test_grdclip.py::test_grdclip_no_outgrid
CodSpeed Performance Gauge
0%
10.2 ms
10.2 ms
test_accessor_set_geographic_cartesian_roundtrip
pygmt/tests/test_accessor.py::test_accessor_set_geographic_cartesian_roundtrip
CodSpeed Performance Gauge
-1%
293.1 µs
295.5 µs
test_sph2grd_no_outgrid
pygmt/tests/test_sph2grd.py::test_sph2grd_no_outgrid
CodSpeed Performance Gauge
-2%
370 ms
378.4 ms
test_grdlandmask_no_outgrid
pygmt/tests/test_grdlandmask.py::test_grdlandmask_no_outgrid
CodSpeed Performance Gauge
-2%
136.4 ms
139.7 ms
test_grdsample_dataarray_out
pygmt/tests/test_grdsample.py::test_grdsample_dataarray_out
CodSpeed Performance Gauge
-9%
11 ms
12.1 ms
Commits
Click on a commit to change the comparison range
Base
main
bad7943
0%
_check_encoding: Avoid creating dict in for loop to improve efficiency
7cf0eb9
28 days ago
by seisman
© 2024 CodSpeed Technology
Home
Terms
Privacy
Docs