Skip to content

(Checking how ASV benchmarks look without any code changes) - #1710

Draft
Sevans711 wants to merge 12 commits into
mainfrom
sevans/asv-benchmarks-baseline
Draft

Sevans711 wants to merge 12 commits into
mainfrom
sevans/asv-benchmarks-baseline

Conversation

@Sevans711

Copy link
Copy Markdown
Collaborator

Not intended to be merged to main, just trying to check how ASV benchmarks look currently when the code is unchanged.

There's probably a better solution than having a draft PR for this, but this is the simplest/fastest way I could think of right now. I already attempted but struggled to generate ASV benchmark runs on my local machine with the same output format as what the run-benchmark label produces via github CI.

I originally created this with the intention of determining whether the reported benchmark performance degradation in #1705 is actually caused by the code changes there or not. Maybe this should be closed soon after that check, or maybe it should be open for a longer-term basis to repeat checks like this in the future? For example, it might have been useful to have something like this available for initially discovering #1605.

@Sevans711 Sevans711 added the run-benchmark Run ASV benchmark workflow label Aug 26, 2026
@cmdupuis3

Copy link
Copy Markdown
Collaborator

I did this too, actually. But an easier way to get the benchmarks running is to push your branch, then run ASV benchmarks directly in the Actions tab. That way you don't have to mess with a PR to get them running.

@github-actions

github-actions Bot commented Aug 26, 2026 •

Copy link
Copy Markdown

ASV Benchmarking

Benchmark Comparison Results

Benchmarks that have stayed the same:

Change Before [ad45eec] After [6d454b0] Ratio Benchmark (Parameter)
1.01±0.02ms 999±30μs 0.99 connectivity.Connectivity.time_edge_face('120km')
334±10μs 343±10μs 1.03 connectivity.Connectivity.time_edge_face('480km')
3.63±0.04ms 3.67±0.05ms 1.01 connectivity.Connectivity.time_edge_node('120km')
766±20μs 783±10μs 1.02 connectivity.Connectivity.time_edge_node('480km')
48.2±10μs 45.4±6μs 0.94 connectivity.Connectivity.time_face_edge('120km')
40.9±3μs 41.4±2μs 1.01 connectivity.Connectivity.time_face_edge('480km')
775±30μs 756±20μs 0.98 connectivity.Connectivity.time_face_face('120km')
304±8μs 300±3μs 0.99 connectivity.Connectivity.time_face_face('480km')
45.2±2μs 43.7±3μs 0.97 connectivity.Connectivity.time_face_node('120km')
44.5±7μs 42.0±2μs 0.94 connectivity.Connectivity.time_face_node('480km')
424±20μs 418±20μs 0.99 connectivity.Connectivity.time_n_nodes_per_face('120km')
292±10μs 279±20μs 0.96 connectivity.Connectivity.time_n_nodes_per_face('480km')
1.03±0.05ms 1.06±0.02ms 1.03 connectivity.Connectivity.time_node_edge('120km')
317±8μs 312±9μs 0.98 connectivity.Connectivity.time_node_edge('480km')
52.9±0.1ms 53.4±0.2ms 1.01 connectivity.Connectivity.time_node_face('120km')
3.41±0.03ms 3.43±0.03ms 1.01 connectivity.Connectivity.time_node_face('480km')
1.42M 1.42M 1.00 connectivity.ConnectivityTracemalloc.track_peakmem_edge_face('120km')
105k 105k 1.00 connectivity.ConnectivityTracemalloc.track_peakmem_edge_face('480km')
6.48M 6.48M 1.00 connectivity.ConnectivityTracemalloc.track_peakmem_edge_node('120km')
419k 419k 1.00 connectivity.ConnectivityTracemalloc.track_peakmem_edge_node('480km')
2.05k 2.05k 1.00 connectivity.ConnectivityTracemalloc.track_peakmem_face_edge('120km')
2.05k 2.05k 1.00 connectivity.ConnectivityTracemalloc.track_peakmem_face_edge('480km')
1.6M 1.6M 1.00 connectivity.ConnectivityTracemalloc.track_peakmem_face_face('120km')
101k 101k 1.00 connectivity.ConnectivityTracemalloc.track_peakmem_face_face('480km')
2.18k 2.18k 1.00 connectivity.ConnectivityTracemalloc.track_peakmem_face_node('120km')
2.18k 2.18k 1.00 connectivity.ConnectivityTracemalloc.track_peakmem_face_node('480km')
240k 240k 1.00 connectivity.ConnectivityTracemalloc.track_peakmem_n_nodes_per_face('120km')
26k 26k 1.00 connectivity.ConnectivityTracemalloc.track_peakmem_n_nodes_per_face('480km')
1.9M 1.9M 1.00 connectivity.ConnectivityTracemalloc.track_peakmem_node_edge('120km')
127k 127k 1.00 connectivity.ConnectivityTracemalloc.track_peakmem_node_edge('480km')
11.9M 11.9M 1.00 connectivity.ConnectivityTracemalloc.track_peakmem_node_face('120km')
747k 747k 1.00 connectivity.ConnectivityTracemalloc.track_peakmem_node_face('480km')
4.68±0.06ms 4.72±0.2ms 1.01 face_bounds.FaceBounds.time_face_bounds(PosixPath('/home/runner/work/uxarray/uxarray/test/meshfiles/mpas/QU/oQU480.231010.nc'))
1.40±0.3ms 1.40±0.05ms 1.00 face_bounds.FaceBounds.time_face_bounds(PosixPath('/home/runner/work/uxarray/uxarray/test/meshfiles/scrip/outCSne8/outCSne8.nc'))
5.89±0.2ms 5.78±0.2ms 0.98 face_bounds.FaceBounds.time_face_bounds(PosixPath('/home/runner/work/uxarray/uxarray/test/meshfiles/ugrid/geoflow-small/grid.nc'))
744±10μs 731±50μs 0.98 face_bounds.FaceBounds.time_face_bounds(PosixPath('/home/runner/work/uxarray/uxarray/test/meshfiles/ugrid/quad-hexagon/grid.nc'))
57.3k 57.3k 1.00 face_bounds.FaceBounds.track_nbytes_face_bounds(PosixPath('/home/runner/work/uxarray/uxarray/test/meshfiles/mpas/QU/oQU480.231010.nc'))
12.3k 12.3k 1.00 face_bounds.FaceBounds.track_nbytes_face_bounds(PosixPath('/home/runner/work/uxarray/uxarray/test/meshfiles/scrip/outCSne8/outCSne8.nc'))
123k 123k 1.00 face_bounds.FaceBounds.track_nbytes_face_bounds(PosixPath('/home/runner/work/uxarray/uxarray/test/meshfiles/ugrid/geoflow-small/grid.nc'))
128 128 1.00 face_bounds.FaceBounds.track_nbytes_face_bounds(PosixPath('/home/runner/work/uxarray/uxarray/test/meshfiles/ugrid/quad-hexagon/grid.nc'))
1.27M 1.27M 1.00 face_bounds.FaceBounds.track_nbytes_grid_with_bounds(PosixPath('/home/runner/work/uxarray/uxarray/test/meshfiles/mpas/QU/oQU480.231010.nc'))
50.1k 50.1k 1.00 face_bounds.FaceBounds.track_nbytes_grid_with_bounds(PosixPath('/home/runner/work/uxarray/uxarray/test/meshfiles/scrip/outCSne8/outCSne8.nc'))
516k 516k 1.00 face_bounds.FaceBounds.track_nbytes_grid_with_bounds(PosixPath('/home/runner/work/uxarray/uxarray/test/meshfiles/ugrid/geoflow-small/grid.nc'))
712 712 1.00 face_bounds.FaceBounds.track_nbytes_grid_with_bounds(PosixPath('/home/runner/work/uxarray/uxarray/test/meshfiles/ugrid/quad-hexagon/grid.nc'))
1.78M 1.78M 1.00 face_bounds.FaceBounds.track_peakmem_face_bounds(PosixPath('/home/runner/work/uxarray/uxarray/test/meshfiles/mpas/QU/oQU480.231010.nc'))
1.76M 1.76M 1.00 face_bounds.FaceBounds.track_peakmem_face_bounds(PosixPath('/home/runner/work/uxarray/uxarray/test/meshfiles/scrip/outCSne8/outCSne8.nc'))
1.92M 1.92M 1.00 face_bounds.FaceBounds.track_peakmem_face_bounds(PosixPath('/home/runner/work/uxarray/uxarray/test/meshfiles/ugrid/geoflow-small/grid.nc'))
35.3k 35.3k 1.00 face_bounds.FaceBounds.track_peakmem_face_bounds(PosixPath('/home/runner/work/uxarray/uxarray/test/meshfiles/ugrid/quad-hexagon/grid.nc'))
769±30ns 884±60ns ~1.15 geometry_kernels.AccucrossKernels.time_accucross
1.76±0.02μs 1.82±0.06μs 1.04 geometry_kernels.AccucrossKernels.time_accucross_pair
275±10ns 266±20ns 0.96 geometry_kernels.EFTPrimitives.time_acc_sqrt_re
265±10ns 261±5ns 0.98 geometry_kernels.EFTPrimitives.time_diff_of_products
230±20ns 231±10ns 1.00 geometry_kernels.EFTPrimitives.time_two_prod
220±20ns 220±9ns 1.00 geometry_kernels.EFTPrimitives.time_two_sum
350±5ns 360±8ns 1.03 geometry_kernels.GCAConstLatIntersection.time_accux_constlat_kernel
456±5ns 445±5ns 0.98 geometry_kernels.GCAConstLatIntersection.time_gca_const_lat_intersection
460±5ns 445±10ns 0.97 geometry_kernels.GCAConstLatIntersection.time_try_gca_const_lat_intersection
589±30ns 563±40ns 0.96 geometry_kernels.GCAGCAIntersection.time_accux_gca_kernel
796±20ns 808±30ns 1.01 geometry_kernels.GCAGCAIntersection.time_gca_gca_intersection
841±50ns 863±70ns 1.03 geometry_kernels.GCAGCAIntersection.time_try_gca_gca_intersection
21.2±0.1μs 22.0±0.2μs 1.04 geometry_kernels.OrientPredicates.time_on_minor_arc
20.3±0.4μs 22.3±0.5μs 1.10 geometry_kernels.OrientPredicates.time_orient3d_on_sphere
2.95±0ms 2.94±0.01ms 1.00 geometry_samebody.SameBodyConstLat.time_accux_dispatch
638±3μs 604±4μs 0.95 geometry_samebody.SameBodyConstLat.time_accux_kernel
2.81±0.01ms 2.83±0.02ms 1.01 geometry_samebody.SameBodyConstLat.time_fp64_dispatch
91.9±1μs 91.1±0.09μs 0.99 geometry_samebody.SameBodyConstLat.time_fp64_kernel
38.3±0.02ms 38.4±0.04ms 1.00 geometry_samebody_gcagca.SameBodyGcaGca.time_accux_dispatch
4.13±0.01ms 4.15±0.04ms 1.01 geometry_samebody_gcagca.SameBodyGcaGca.time_accux_kernel
34.9±0.08ms 35.1±0.04ms 1.01 geometry_samebody_gcagca.SameBodyGcaGca.time_fp64_dispatch
525±8μs 492±7μs 0.94 geometry_samebody_gcagca.SameBodyGcaGca.time_fp64_kernel
664±10ms 635±8ms 0.96 import.Imports.timeraw_import_uxarray
1 1 1.00 lazy_grid_construction.LazyGridConstruction.track_computes_isel
2 2 1.00 lazy_grid_construction.LazyGridConstruction.track_computes_open_grid_chunked
69.6±0.5ms 69.5±0.6ms 1.00 lazy_grid_construction.OpenGridChunked.time_open_grid('120km')
93.1±0.8ms 93.8±2ms 1.01 lazy_grid_construction.OpenGridChunked.time_open_grid('480km')
1.99M 2.01M 1.01 lazy_grid_construction.OpenGridChunked.track_peakmem_open_grid('120km')
2.28M 2.32M 1.02 lazy_grid_construction.OpenGridChunked.track_peakmem_open_grid('480km')
1.68±0.1ms 1.71±0.1ms 1.02 mpas_ocean.AzimuthalAverage.time_azimuthal_average('120km')
595±20μs 586±9μs 0.99 mpas_ocean.AzimuthalAverage.time_azimuthal_average('480km')
1.27±0.03ms 1.28±0.09ms 1.01 mpas_ocean.CheckNorm.time_check_norm('120km')
860±10μs 840±50μs 0.98 mpas_ocean.CheckNorm.time_check_norm('480km')
631±50μs 633±60μs 1.00 mpas_ocean.ConnectivityConstruction.time_face_face_connectivity('120km')
294±5μs 286±5μs 0.97 mpas_ocean.ConnectivityConstruction.time_face_face_connectivity('480km')
476±20μs 440±40μs 0.93 mpas_ocean.ConnectivityConstruction.time_n_nodes_per_face('120km')
322±10μs 312±4μs 0.97 mpas_ocean.ConnectivityConstruction.time_n_nodes_per_face('480km')
2.60±0.06ms 2.54±0.04ms 0.98 mpas_ocean.ConstructFaceLatLon.time_cartesian_averaging('120km')
1.85±0.01ms 1.79±0.05ms 0.97 mpas_ocean.ConstructFaceLatLon.time_cartesian_averaging('480km')
73.3±0.2ms 72.1±2ms 0.98 mpas_ocean.ConstructFaceLatLon.time_welzl('120km')
6.42±0.07ms 6.21±0.04ms 0.97 mpas_ocean.ConstructFaceLatLon.time_welzl('480km')
9.73±0.04ms 9.76±0.05ms 1.00 mpas_ocean.ConstructTreeStructures.time_ball_tree('120km')
587±10μs 601±10μs 1.02 mpas_ocean.ConstructTreeStructures.time_ball_tree('480km')
7.11±0.03ms 7.18±0.06ms 1.01 mpas_ocean.ConstructTreeStructures.time_kd_tree('120km')
423±10μs 434±6μs 1.03 mpas_ocean.ConstructTreeStructures.time_kd_tree('480km')
459±0.9ms 446±1ms 0.97 mpas_ocean.CrossSections.time_const_lat('120km', 1)
234±1ms 226±0.7ms 0.97 mpas_ocean.CrossSections.time_const_lat('120km', 2)
119±0.3ms 117±0.8ms 0.98 mpas_ocean.CrossSections.time_const_lat('120km', 4)
396±1ms 387±1ms 0.98 mpas_ocean.CrossSections.time_const_lat('480km', 1)
199±1ms 193±0.4ms 0.97 mpas_ocean.CrossSections.time_const_lat('480km', 2)
101±0.5ms 99.0±0.1ms 0.98 mpas_ocean.CrossSections.time_const_lat('480km', 4)
19.8±0.1ms 20.0±0.4ms 1.01 mpas_ocean.DualMesh.time_dual_mesh_construction('120km')
2.16±0.1ms 2.18±0.02ms 1.01 mpas_ocean.DualMesh.time_dual_mesh_construction('480km')
7.76±0.1ms 7.67±0.1ms 0.99 mpas_ocean.FaceAreas.time_face_areas('120km')
2.47±0.09ms 2.51±0.1ms 1.01 mpas_ocean.FaceAreas.time_face_areas('480km')
229k 229k 1.00 mpas_ocean.FaceAreas.track_nbytes_face_areas('120km')
14.3k 14.3k 1.00 mpas_ocean.FaceAreas.track_nbytes_face_areas('480km')
2.12M 2.12M 1.00 mpas_ocean.FaceAreas.track_peakmem_face_areas('120km')
679k 679k 1.00 mpas_ocean.FaceAreas.track_peakmem_face_areas('480km')
30.5±0.3ms 32.2±0.3ms 1.06 mpas_ocean.GeoDataFrame.time_to_geodataframe('120km', 'exclude')
80.3±1ms 83.3±0.3ms 1.04 mpas_ocean.GeoDataFrame.time_to_geodataframe('120km', 'split')
2.94±0.4ms 3.04±0.3ms 1.03 mpas_ocean.GeoDataFrame.time_to_geodataframe('480km', 'exclude')
15.0±0.3ms 15.4±0.2ms 1.03 mpas_ocean.GeoDataFrame.time_to_geodataframe('480km', 'split')
9.45±0.1ms 8.66±0.4ms 0.92 mpas_ocean.Gradient.time_gradient('120km')
1.44±0.01ms 1.38±0ms 0.95 mpas_ocean.Gradient.time_gradient('480km')
457k 457k 1.00 mpas_ocean.Gradient.track_nbytes_gradient('120km')
28.7k 28.7k 1.00 mpas_ocean.Gradient.track_nbytes_gradient('480km')
3.44M 3.44M 1.00 mpas_ocean.Gradient.track_peakmem_gradient('120km')
226k 226k 1.00 mpas_ocean.Gradient.track_peakmem_gradient('480km')
261±8μs 325±20μs ~1.25 mpas_ocean.HoleEdgeIndices.time_construct_hole_edge_indices('120km')
118±2μs 118±3μs 1.00 mpas_ocean.HoleEdgeIndices.time_construct_hole_edge_indices('480km')
138±0.9μs 135±0.8μs 0.98 mpas_ocean.Integrate.time_integrate('120km')
122±7μs 116±2μs 0.95 mpas_ocean.Integrate.time_integrate('480km')
18.4M 18.4M 1.00 mpas_ocean.Integrate.track_nbytes_integrate('120km')
1.2M 1.2M 1.00 mpas_ocean.Integrate.track_nbytes_integrate('480km')
81.9±0.7ms 80.5±0.6ms 0.98 mpas_ocean.MatplotlibConversion.time_dataarray_to_polycollection('120km', 'exclude')
82.2±1ms 79.9±1ms 0.97 mpas_ocean.MatplotlibConversion.time_dataarray_to_polycollection('120km', 'include')
82.7±0.7ms 80.3±0.8ms 0.97 mpas_ocean.MatplotlibConversion.time_dataarray_to_polycollection('120km', 'split')
5.70±0.05ms 5.42±0.02ms 0.95 mpas_ocean.MatplotlibConversion.time_dataarray_to_polycollection('480km', 'exclude')
5.74±0.1ms 5.44±0.04ms 0.95 mpas_ocean.MatplotlibConversion.time_dataarray_to_polycollection('480km', 'include')
5.65±0.04ms 5.53±0.08ms 0.98 mpas_ocean.MatplotlibConversion.time_dataarray_to_polycollection('480km', 'split')
169±0.4ms 168±0.8ms 0.99 mpas_ocean.NeighborhoodBuild.time_build('120km', 1.0)
357±5ms 354±3ms 0.99 mpas_ocean.NeighborhoodBuild.time_build('120km', 5.0)
9.11±0.05ms 9.26±0.1ms 1.02 mpas_ocean.NeighborhoodBuild.time_build('480km', 1.0)
11.5±0.07ms 11.4±0.07ms 0.99 mpas_ocean.NeighborhoodBuild.time_build('480km', 5.0)
164±1ms 166±0.5ms 1.01 mpas_ocean.NeighborhoodBuild.time_query_radius('120km', 1.0)
356±5ms 349±1ms 0.98 mpas_ocean.NeighborhoodBuild.time_query_radius('120km', 5.0)
8.94±0.04ms 8.89±0.05ms 0.99 mpas_ocean.NeighborhoodBuild.time_query_radius('480km', 1.0)
11.2±0.09ms 11.2±0.07ms 1.00 mpas_ocean.NeighborhoodBuild.time_query_radius('480km', 5.0)
612.76 612.76 1.00 mpas_ocean.NeighborhoodBuild.track_mean_neighbors('120km', 15.0)
74.17 74.17 1.00 mpas_ocean.NeighborhoodBuild.track_mean_neighbors('120km', 5.0)
37.29 37.29 1.00 mpas_ocean.NeighborhoodBuild.track_mean_neighbors('480km', 15.0)
6.57 6.57 1.00 mpas_ocean.NeighborhoodBuild.track_mean_neighbors('480km', 5.0)
141M 141M 1.00 mpas_ocean.NeighborhoodBuild.track_nbytes_neighbors('120km', 15.0)
17.4M 17.4M 1.00 mpas_ocean.NeighborhoodBuild.track_nbytes_neighbors('120km', 5.0)
563k 563k 1.00 mpas_ocean.NeighborhoodBuild.track_nbytes_neighbors('480km', 15.0)
123k 123k 1.00 mpas_ocean.NeighborhoodBuild.track_nbytes_neighbors('480km', 5.0)
145M 145M 1.00 mpas_ocean.NeighborhoodBuild.track_peakmem_build('120km', 15.0)
21.5M 21.5M 1.00 mpas_ocean.NeighborhoodBuild.track_peakmem_build('120km', 5.0)
824k 824k 1.00 mpas_ocean.NeighborhoodBuild.track_peakmem_build('480km', 15.0)
384k 384k 1.00 mpas_ocean.NeighborhoodBuild.track_peakmem_build('480km', 5.0)
26.9±0.6ms 27.3±0.2ms 1.01 mpas_ocean.NeighborhoodDask.time_mean('120km', 'grid_chunks')
11.4±0.07ms 11.3±0.03ms 0.99 mpas_ocean.NeighborhoodDask.time_mean('120km', 'numpy')
24.3±0.7ms 24.5±0.4ms 1.01 mpas_ocean.NeighborhoodDask.time_mean('120km', 'time_chunks')
5.81±0.08ms 5.75±0.05ms 0.99 mpas_ocean.NeighborhoodDask.time_mean('480km', 'grid_chunks')
337±4μs 342±7μs 1.01 mpas_ocean.NeighborhoodDask.time_mean('480km', 'numpy')
3.85±0.04ms 3.91±0.05ms 1.02 mpas_ocean.NeighborhoodDask.time_mean('480km', 'time_chunks')
5.82M 5.75M 0.99 mpas_ocean.NeighborhoodDask.track_peakmem_mean('120km', 'grid_chunks')
2.75M 2.75M 1.00 mpas_ocean.NeighborhoodDask.track_peakmem_mean('120km', 'numpy')
5.67M 5.68M 1.00 mpas_ocean.NeighborhoodDask.track_peakmem_mean('120km', 'time_chunks')
744k 688k 0.92 mpas_ocean.NeighborhoodDask.track_peakmem_mean('480km', 'grid_chunks')
177k 177k 1.00 mpas_ocean.NeighborhoodDask.track_peakmem_mean('480km', 'numpy')
528k 528k 1.00 mpas_ocean.NeighborhoodDask.track_peakmem_mean('480km', 'time_chunks')
3.20±0.02s 3.18±0.01s 0.99 mpas_ocean.NeighborhoodReduce.time_dataset_reduce('120km', 'mean')
3.28±0.02s 3.28±0.02s 1.00 mpas_ocean.NeighborhoodReduce.time_dataset_reduce('120km', 'median')
84.0±1ms 84.0±2ms 1.00 mpas_ocean.NeighborhoodReduce.time_dataset_reduce('480km', 'mean')
85.3±0.6ms 85.5±2ms 1.00 mpas_ocean.NeighborhoodReduce.time_dataset_reduce('480km', 'median')
366±4ms 361±2ms 0.99 mpas_ocean.NeighborhoodReduce.time_neighborhood_reduce('120km', 'mean')
383±3ms 384±1ms 1.00 mpas_ocean.NeighborhoodReduce.time_neighborhood_reduce('120km', 'median')
11.6±0.03ms 11.7±0.2ms 1.01 mpas_ocean.NeighborhoodReduce.time_neighborhood_reduce('480km', 'mean')
11.9±0.2ms 11.8±0.03ms 0.99 mpas_ocean.NeighborhoodReduce.time_neighborhood_reduce('480km', 'median')
2.65±0.08ms 2.43±0.04ms 0.92 mpas_ocean.NeighborhoodReduce.time_reduce('120km', 'mean')
27.8±0.2ms 27.7±0.4ms 1.00 mpas_ocean.NeighborhoodReduce.time_reduce('120km', 'median')
118±3μs 111±0.5μs 0.94 mpas_ocean.NeighborhoodReduce.time_reduce('480km', 'mean')
348±3μs 339±4μs 0.97 mpas_ocean.NeighborhoodReduce.time_reduce('480km', 'median')
234k 234k 1.00 mpas_ocean.NeighborhoodReduce.track_peakmem_reduce('120km', 'mean')
235k 235k 1.00 mpas_ocean.NeighborhoodReduce.track_peakmem_reduce('120km', 'median')
19.5k 19.5k 1.00 mpas_ocean.NeighborhoodReduce.track_peakmem_reduce('480km', 'mean')
19.6k 19.6k 1.00 mpas_ocean.NeighborhoodReduce.track_peakmem_reduce('480km', 'median')
248±10μs 268±20μs 1.08 mpas_ocean.PointInPolygon.time_face_search_lonlat('120km')
178±8μs 177±10μs 0.99 mpas_ocean.PointInPolygon.time_face_search_lonlat('480km')
246±20μs 243±9μs 0.99 mpas_ocean.PointInPolygon.time_face_search_xyz('120km')
166±10μs 163±9μs 0.99 mpas_ocean.PointInPolygon.time_face_search_xyz('480km')
64.1±0.4ms 63.9±0.1ms 1.00 mpas_ocean.RemapDownsample.time_bilinear_remapping
10.9±0.7ms 10.9±0.2ms 1.00 mpas_ocean.RemapDownsample.time_inverse_distance_weighted_remapping
9.89±0.1ms 9.84±0.08ms 1.00 mpas_ocean.RemapDownsample.time_nearest_neighbor_remapping
565±4ms 568±7ms 1.00 mpas_ocean.RemapUpsample.time_bilinear_remapping
17.2±0.07ms 16.8±0.1ms 0.98 mpas_ocean.RemapUpsample.time_inverse_distance_weighted_remapping
7.87±0.05ms 7.79±0.06ms 0.99 mpas_ocean.RemapUpsample.time_nearest_neighbor_remapping
4.96±0.09ms 4.72±0.07ms 0.95 mpas_ocean.ZonalAverage.time_zonal_average('120km')
2.46±0.06ms 2.43±0.03ms 0.98 mpas_ocean.ZonalAverage.time_zonal_average('480km')
1.0280767269915225 1.0268296312988203 1.00 nogil_scaling.GILScaling.track_gil_scaling
785±40μs 794±20μs 1.01 open_dataset.OpenDataset.time_open_dataset('dataset', 'dataset')
1.43±0.02ms 1.44±0.02ms 1.01 open_dataset.OpenDataset.time_open_dataset('dataset', 'file')
2.91±0.05ms 3.15±0.2ms 1.08 open_dataset.OpenDataset.time_open_dataset('file', 'dataset')
3.60±0.08ms 3.71±0.2ms 1.03 open_dataset.OpenDataset.time_open_dataset('file', 'file')
120±1μs 123±4μs 1.03 open_dataset.OpenDataset.time_open_dataset('grid', 'dataset')
722±5μs 752±10μs 1.04 open_dataset.OpenDataset.time_open_dataset('grid', 'file')
1.18±0.02s 1.18±0.02s 1.00 plots.PlotContour.time_contour_projected
227±2ms 226±2ms 1.00 plots.PlotHealpix.time_default_plot(6)
2.15±0.01s 2.18±0.01s 1.01 plots.PlotHealpix.time_default_plot(8)
28M 28M 1.00 plots.PlotHealpix.track_peakmem_default_plot(6)
443M 443M 1.00 plots.PlotHealpix.track_peakmem_default_plot(8)
4.83±0.8ms 4.71±0.08ms 0.98 quad_hexagon.QuadHexagon.time_open_dataset
3.99±0.04ms 4.11±0.09ms 1.03 quad_hexagon.QuadHexagon.time_open_grid
408 408 1.00 quad_hexagon.QuadHexagon.track_nbytes_open_dataset
392 392 1.00 quad_hexagon.QuadHexagon.track_nbytes_open_grid
71.7k 71.8k 1.00 quad_hexagon.QuadHexagon.track_peakmem_open_dataset
71.5k 71.5k 1.00 quad_hexagon.QuadHexagon.track_peakmem_open_grid
7.59±0.2ms 7.51±0.1ms 0.99 subset.BoundingBox.time_bounding_box('120km')
3.79±0.09ms 3.88±0.08ms 1.02 subset.BoundingBox.time_bounding_box('480km')
2.38M 2.38M 1.00 subset.BoundingBox.track_peakmem_bounding_box('120km')
203k 203k 1.00 subset.BoundingBox.track_peakmem_bounding_box('480km')
2.88±0.02ms 2.92±6ms 1.01 subset.BoundingBoxHealpix.time_bounding_box(6)
11.8±0.3ms 11.9±1ms 1.01 subset.BoundingBoxHealpix.time_bounding_box(8)
2.19M 2.19M 1.00 subset.BoundingBoxHealpix.track_peakmem_bounding_box(6)
13.1M 13.2M 1.00 subset.BoundingBoxHealpix.track_peakmem_bounding_box(8)
504±3ms 505±5ms 1.00 to_raster.ToRaster.time_to_raster((10000.0, 10.0))
1.08±0.02s 1.08±0.01s 1.00 to_raster.ToRaster.time_to_raster((10000.0, 100.0))
1.27±0.01s 1.27±0.01s 1.00 to_raster.ToRaster.time_to_raster((100000.0, 100.0))
270M 270M 1.00 to_raster.ToRaster.track_peakmem((10000.0, 10.0))
680M 680M 1.00 to_raster.ToRaster.track_peakmem((10000.0, 100.0))
765M 765M 1.00 to_raster.ToRaster.track_peakmem((100000.0, 100.0))
72.2±2μs 71.9±2μs 1.00 to_xarray.UxDataArrayToXarray.time_to_xarray(10)
195±6μs 188±6μs 0.96 to_xarray.UxDatasetToXarray.time_to_xarray((100, 10))
1.74±0.03ms 1.69±0.03ms 0.97 to_xarray.UxDatasetToXarray.time_to_xarray((1000, 100))
441±8μs 443±10μs 1.00 to_xarray.UxDatasetToXarray.time_to_xarray_healpix((100, 10))
3.93±0.02ms 4.07±0.04ms 1.04 to_xarray.UxDatasetToXarray.time_to_xarray_healpix((1000, 100))

Benchmarks that have got worse:

Change Before [ad45eec] After [6d454b0] Ratio Benchmark (Parameter)
+ 304M 389M 1.28 face_bounds.FaceBoundsColdStartRss.track_peakmem_open_and_bounds(PosixPath('/home/runner/work/uxarray/uxarray/test/meshfiles/mpas/QU/oQU480.231010.nc'))
+ 305M 389M 1.28 face_bounds.FaceBoundsColdStartRss.track_peakmem_open_and_bounds(PosixPath('/home/runner/work/uxarray/uxarray/test/meshfiles/scrip/outCSne8/outCSne8.nc'))
+ 307M 389M 1.27 face_bounds.FaceBoundsColdStartRss.track_peakmem_open_and_bounds(PosixPath('/home/runner/work/uxarray/uxarray/test/meshfiles/ugrid/geoflow-small/grid.nc'))
+ 305M 389M 1.28 face_bounds.FaceBoundsColdStartRss.track_peakmem_open_and_bounds(PosixPath('/home/runner/work/uxarray/uxarray/test/meshfiles/ugrid/quad-hexagon/grid.nc'))
+ 279M 391M 1.4 import.Imports.track_peakmem_import_uxarray
+ 328M 389M 1.19 mpas_ocean.CrossSectionsPeakMem.track_peakmem_const_lat('120km', 1)
+ 328M 389M 1.19 mpas_ocean.CrossSectionsPeakMem.track_peakmem_const_lat('120km', 2)
+ 327M 389M 1.19 mpas_ocean.CrossSectionsPeakMem.track_peakmem_const_lat('120km', 4)
+ 307M 389M 1.27 mpas_ocean.CrossSectionsPeakMem.track_peakmem_const_lat('480km', 1)
+ 307M 389M 1.27 mpas_ocean.CrossSectionsPeakMem.track_peakmem_const_lat('480km', 2)
+ 307M 389M 1.27 mpas_ocean.CrossSectionsPeakMem.track_peakmem_const_lat('480km', 4)
+ 328M 389M 1.19 mpas_ocean.GradientColdStartRss.track_peakmem_gradient('120km')
+ 301M 389M 1.29 mpas_ocean.GradientColdStartRss.track_peakmem_gradient('480km')
+ 328M 389M 1.19 mpas_ocean.ZonalAveragePeakMem.track_peakmem_zonal_average('120km')
+ 308M 389M 1.26 mpas_ocean.ZonalAveragePeakMem.track_peakmem_zonal_average('480km')

@Sevans711

Copy link
Copy Markdown
Collaborator Author

I did this too, actually. But an easier way to get the benchmarks running is to push your branch, then run ASV benchmarks directly in the Actions tab. That way you don't have to mess with a PR to get them running.

Ah, that makes sense! Does that lead to a nice comment with the benchmark results too? I suppose even if there isn't a comment it's definitely less noisy than making a draft PR

@Sevans711 Sevans711 mentioned this pull request Aug 26, 2026
7 tasks done
@cmdupuis3

Copy link
Copy Markdown
Collaborator

Nah, you'd have to dig. I've been mostly looking at total time though, so for me it doesn't matter.

@dylannelson

Copy link
Copy Markdown
Member

Leaving a note here in case it gets solved and disappears in the above benchmark run, we have been seeing a *1000 or so speedup on a test even when nothing changes, it appears as "no change". Very odd:

image

This appears in this PR and others as well (at the time of writing).

@Sevans711

Sevans711 commented Sep 30, 2026 •

Copy link
Copy Markdown
Collaborator Author

@cmdupuis3 I've been noticing that the "import uxarray" benchmark is always showing an improvement, and the mpas_ocean.NeighborhoodDask.track_peakmem_mean('480km', 'grid_chunks') is always showing things getting worse. Do you have any guesses about what is causing these quirks?

EDIT: Ah, I agree now I was wrong about the latter… I felt like I've been seeing NeighborhoodDask benchmarks in that category in a few different PRs, but now I can see that it isn't actually always showing up as "got worse", only sometimes!

@cmdupuis3

Copy link
Copy Markdown
Collaborator

@Sevans711 If it's around 300M on a memory benchmark, that usually indicates caching behavior. I think the pure import is pretty indicative. It can be hard to measure consistently under caching conditions, so for the other benchmarks, maybe they aren't rigorous enough.

The other one seems like a one-off, you can just compare it with previous benchmark runs and if there's no pattern, I wouldn't worry about it much.

@Sevans711 Sevans711 mentioned this pull request Oct 12, 2026
8 tasks done
@dylannelson

dylannelson commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

Because of the large number of test that consistently show up in the "worse" tab, it's a bit hard to read through the benchmarks. Seems like the peakmem benchmarks and a few others still consistently appear worse across this PR and a few others, which can be a bit confusing when looking at benchmarking PR's like the one below:

Another PR on benchmarking
image

The work I'm doing with grid cleaning
image

Here:
image

Since ~15 tests are giving us likely wrong results, should we think about removing them so we can actually see what the real slowdowns are? A bit hard to read in it's current state

@Sevans711

Copy link
Copy Markdown
Collaborator Author

Because of the large number of test that consistently show up in the "worse" tab, it's a bit hard to read through the benchmarks. Seems like the peakmem benchmarks and a few others still consistently appear worse across this PR and a few others, which can be a bit confusing when looking at benchmarking PR's like the one below

I agree, it would be nice to get this fixed. Would you be willing to open an issue report for it, so that it ends up going onto the iteration boards at some point? (Sidenote: I originally commented about this during the PR which introduced it, see #1813 (review).)

My preferred solution would be to fix the benchmarking suite instead of to remove the tests altogether; anecdotally I recall that in at least one of my PRs since #1813 merged, I would have accidentally introduced a memory usage degradation if not for these tests. Fixing the underlying problem would be great, though if that is too difficult, maybe a temporary workaround could be to increase the "noise" threshold ASV uses to decide whether to report something as a degradation, for these benchmarks in particular.

@Sevans711 Sevans711 added the benchmarking Related to benchmarks, memory usage, and/or time profiling label Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

benchmarking Related to benchmarks, memory usage, and/or time profiling run-benchmark Run ASV benchmark workflow

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants