Connectivity benchmarks cold-start - #1633
Conversation
ASV BenchmarkingBenchmark Comparison ResultsBenchmarks that have improved:
Benchmarks that have stayed the same:
|
Sevans711
left a comment
There was a problem hiding this comment.
Looks like a clean fix for these benchmarks. The run-benchmark results, along with the results reported in original message in PR thread, now all show expected scaling with grid size, rather than microsecond times regardless of grid size.
I considered whether it would make more sense to use Grid.__init__ with a dataset made up of just source_grid.node_lon, source_grid.node_lat, source_grid.face_node_connectivity, instead of using Grid.from_topology(), but then I realized that it shouldn't affect the timing of the benchmarks themselves, because that all happens directly in setup(), anyways.
So, looks good to me, no notes, my recommendation is to merge to main!
Closes #1632
Overview
This fix provides a bare-bones
Gridthat allows for properly cold timing of the connectivity benchmarks, aside from a numba warmup to remove that from timing results.Example:
PR Checklist
General
Testing & Benchmarking
Documentation