Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use custom tokenization function for NetCDFDataProxy objects #6231

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

bouweandela
Copy link
Member

@bouweandela bouweandela commented Nov 15, 2024

🚀 Pull Request

Description

Use custom tokenization function for NetCDFDataProxy objects. This speeds up loading small NetCDF files. With the multiple_cubes.nc file from #6223, the speedup is 10 to 20 %, though in the benchmarks below it is not really significant.


Consult Iris pull request check list


Add any of the below labels to trigger actions on this PR:

  • benchmark_this Request that this pull request be benchmarked to check if it introduces performance shifts

@bouweandela bouweandela added the benchmark_this Request that this pull request be benchmarked to check if it introduces performance shifts label Nov 15, 2024
Copy link

codecov bot commented Nov 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.83%. Comparing base (5bd3351) to head (bfbd625).
Report is 10 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6231   +/-   ##
=======================================
  Coverage   89.83%   89.83%           
=======================================
  Files          88       88           
  Lines       23315    23317    +2     
  Branches     4338     4338           
=======================================
+ Hits        20945    20947    +2     
  Misses       1644     1644           
  Partials      726      726           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

⏱️ Performance Benchmark Report: 3fc5893

Performance shifts

Full benchmark results

Benchmarks that have stayed the same:

| Change   | Before [5bd33511]    | After [3fc58933]    |   Ratio | Benchmark (Parameter)                                                                       |
|----------|----------------------|---------------------|---------|---------------------------------------------------------------------------------------------|
|          | 59.9±0.6ms           | 60.9±2ms            |    1.02 | aggregate_collapse.Aggregation.time_aggregated_by_COUNT(False)                              |
|          | 61.1±1ms             | 61.8±1ms            |    1.01 | aggregate_collapse.Aggregation.time_aggregated_by_COUNT(True)                               |
|          | 220±6ms              | 221±4ms             |    1.01 | aggregate_collapse.Aggregation.time_aggregated_by_FAST_PERCENTILE(False)                    |
|          | 221±4ms              | 223±3ms             |    1.01 | aggregate_collapse.Aggregation.time_aggregated_by_FAST_PERCENTILE(True)                     |
|          | 40.0±0.9ms           | 39.3±0.6ms          |    0.98 | aggregate_collapse.Aggregation.time_aggregated_by_GMEAN(False)                              |
|          | 40.6±0.8ms           | 40.3±0.4ms          |    0.99 | aggregate_collapse.Aggregation.time_aggregated_by_GMEAN(True)                               |
|          | 40.1±0.6ms           | 40.0±0.6ms          |    1    | aggregate_collapse.Aggregation.time_aggregated_by_HMEAN(False)                              |
|          | 40.5±1ms             | 40.5±0.5ms          |    1    | aggregate_collapse.Aggregation.time_aggregated_by_HMEAN(True)                               |
|          | 52.7±0.9ms           | 52.5±2ms            |    1    | aggregate_collapse.Aggregation.time_aggregated_by_MAX(False)                                |
|          | 54.0±2ms             | 53.9±0.9ms          |    1    | aggregate_collapse.Aggregation.time_aggregated_by_MAX(True)                                 |
|          | 138±2ms              | 140±2ms             |    1.01 | aggregate_collapse.Aggregation.time_aggregated_by_MAX_RUN(False)                            |
|          | 138±2ms              | 139±2ms             |    1    | aggregate_collapse.Aggregation.time_aggregated_by_MAX_RUN(True)                             |
|          | 57.9±0.8ms           | 58.4±0.9ms          |    1.01 | aggregate_collapse.Aggregation.time_aggregated_by_MEAN(False)                               |
|          | 58.8±1ms             | 58.0±0.4ms          |    0.99 | aggregate_collapse.Aggregation.time_aggregated_by_MEAN(True)                                |
|          | 39.6±0.7ms           | 39.3±0.4ms          |    0.99 | aggregate_collapse.Aggregation.time_aggregated_by_MEDIAN(False)                             |
|          | 40.8±0.8ms           | 40.3±0.7ms          |    0.99 | aggregate_collapse.Aggregation.time_aggregated_by_MEDIAN(True)                              |
|          | 52.3±0.8ms           | 51.9±0.9ms          |    0.99 | aggregate_collapse.Aggregation.time_aggregated_by_MIN(False)                                |
|          | 53.0±0.6ms           | 53.5±1ms            |    1.01 | aggregate_collapse.Aggregation.time_aggregated_by_MIN(True)                                 |
|          | 1.08±0.01s           | 1.08±0.01s          |    1    | aggregate_collapse.Aggregation.time_aggregated_by_PEAK(False)                               |
|          | 1.08±0.01s           | 1.09±0.01s          |    1.01 | aggregate_collapse.Aggregation.time_aggregated_by_PEAK(True)                                |
|          | 495±10ms             | 510±20ms            |    1.03 | aggregate_collapse.Aggregation.time_aggregated_by_PERCENTILE(False)                         |
|          | 500±20ms             | 504±10ms            |    1.01 | aggregate_collapse.Aggregation.time_aggregated_by_PERCENTILE(True)                          |
|          | 37.6±0.7ms           | 37.9±0.6ms          |    1.01 | aggregate_collapse.Aggregation.time_aggregated_by_PROPORTION(False)                         |
|          | 39.0±0.6ms           | 38.7±0.5ms          |    0.99 | aggregate_collapse.Aggregation.time_aggregated_by_PROPORTION(True)                          |
|          | 69.6±0.7ms           | 69.1±1ms            |    0.99 | aggregate_collapse.Aggregation.time_aggregated_by_RMS(False)                                |
|          | 70.6±0.6ms           | 70.2±0.8ms          |    0.99 | aggregate_collapse.Aggregation.time_aggregated_by_RMS(True)                                 |
|          | 71.7±1ms             | 71.6±0.8ms          |    1    | aggregate_collapse.Aggregation.time_aggregated_by_STD_DEV(False)                            |
|          | 72.0±1ms             | 72.2±0.9ms          |    1    | aggregate_collapse.Aggregation.time_aggregated_by_STD_DEV(True)                             |
|          | 66.5±1ms             | 66.9±0.8ms          |    1.01 | aggregate_collapse.Aggregation.time_aggregated_by_VARIANCE(False)                           |
|          | 68.0±1ms             | 68.4±1ms            |    1.01 | aggregate_collapse.Aggregation.time_aggregated_by_VARIANCE(True)                            |
|          | 26.4±0.6ms           | 26.5±0.6ms          |    1    | aggregate_collapse.Aggregation.time_collapsed_by_COUNT(False)                               |
|          | 30.5±0.7ms           | 30.7±0.4ms          |    1.01 | aggregate_collapse.Aggregation.time_collapsed_by_COUNT(True)                                |
|          | 152±3ms              | 152±2ms             |    1    | aggregate_collapse.Aggregation.time_collapsed_by_FAST_PERCENTILE(False)                     |
|          | 165±4ms              | 169±2ms             |    1.02 | aggregate_collapse.Aggregation.time_collapsed_by_FAST_PERCENTILE(True)                      |
|          | 24.2±0.4ms           | 24.4±0.4ms          |    1.01 | aggregate_collapse.Aggregation.time_collapsed_by_GMEAN(False)                               |
|          | 28.4±0.5ms           | 28.6±0.3ms          |    1.01 | aggregate_collapse.Aggregation.time_collapsed_by_GMEAN(True)                                |
|          | 24.7±0.5ms           | 24.6±0.6ms          |    1    | aggregate_collapse.Aggregation.time_collapsed_by_HMEAN(False)                               |
|          | 28.6±0.5ms           | 28.4±0.4ms          |    0.99 | aggregate_collapse.Aggregation.time_collapsed_by_HMEAN(True)                                |
|          | 25.0±0.6ms           | 25.5±0.6ms          |    1.02 | aggregate_collapse.Aggregation.time_collapsed_by_MAX(False)                                 |
|          | 29.2±0.6ms           | 29.1±0.4ms          |    1    | aggregate_collapse.Aggregation.time_collapsed_by_MAX(True)                                  |
|          | 38.7±0.6ms           | 38.2±0.8ms          |    0.99 | aggregate_collapse.Aggregation.time_collapsed_by_MAX_RUN(False)                             |
|          | 42.8±0.9ms           | 42.7±0.7ms          |    1    | aggregate_collapse.Aggregation.time_collapsed_by_MAX_RUN(True)                              |
|          | 25.8±0.6ms           | 25.9±0.5ms          |    1    | aggregate_collapse.Aggregation.time_collapsed_by_MEAN(False)                                |
|          | 29.8±1ms             | 30.0±0.5ms          |    1.01 | aggregate_collapse.Aggregation.time_collapsed_by_MEAN(True)                                 |
|          | 25.6±0.5ms           | 25.8±0.6ms          |    1.01 | aggregate_collapse.Aggregation.time_collapsed_by_MEDIAN(False)                              |
|          | 30.9±0.9ms           | 30.3±0.7ms          |    0.98 | aggregate_collapse.Aggregation.time_collapsed_by_MEDIAN(True)                               |
|          | 25.2±0.3ms           | 24.9±0.8ms          |    0.99 | aggregate_collapse.Aggregation.time_collapsed_by_MIN(False)                                 |
|          | 29.2±0.6ms           | 29.6±0.5ms          |    1.01 | aggregate_collapse.Aggregation.time_collapsed_by_MIN(True)                                  |
|          | 543±3ms              | 541±6ms             |    1    | aggregate_collapse.Aggregation.time_collapsed_by_PEAK(False)                                |
|          | 548±3ms              | 552±5ms             |    1.01 | aggregate_collapse.Aggregation.time_collapsed_by_PEAK(True)                                 |
|          | 168±3ms              | 168±2ms             |    1    | aggregate_collapse.Aggregation.time_collapsed_by_PERCENTILE(False)                          |
|          | 185±5ms              | 188±3ms             |    1.01 | aggregate_collapse.Aggregation.time_collapsed_by_PERCENTILE(True)                           |
|          | 24.3±0.5ms           | 24.1±0.3ms          |    0.99 | aggregate_collapse.Aggregation.time_collapsed_by_PROPORTION(False)                          |
|          | 28.6±0.6ms           | 28.3±0.3ms          |    0.99 | aggregate_collapse.Aggregation.time_collapsed_by_PROPORTION(True)                           |
|          | 27.9±0.8ms           | 28.2±0.5ms          |    1.01 | aggregate_collapse.Aggregation.time_collapsed_by_RMS(False)                                 |
|          | 32.4±0.7ms           | 31.7±0.3ms          |    0.98 | aggregate_collapse.Aggregation.time_collapsed_by_RMS(True)                                  |
|          | 27.5±0.4ms           | 27.1±0.5ms          |    0.99 | aggregate_collapse.Aggregation.time_collapsed_by_STD_DEV(False)                             |
|          | 31.6±0.8ms           | 31.9±0.6ms          |    1.01 | aggregate_collapse.Aggregation.time_collapsed_by_STD_DEV(True)                              |
|          | 27.2±0.6ms           | 26.8±0.5ms          |    0.99 | aggregate_collapse.Aggregation.time_collapsed_by_VARIANCE(False)                            |
|          | 31.2±0.4ms           | 31.1±0.8ms          |    1    | aggregate_collapse.Aggregation.time_collapsed_by_VARIANCE(True)                             |
|          | 94.2±1ms             | 94.8±1ms            |    1.01 | aggregate_collapse.WeightedAggregation.time_w_aggregated_by_MEAN(False)                     |
|          | 95.8±2ms             | 95.9±0.5ms          |    1    | aggregate_collapse.WeightedAggregation.time_w_aggregated_by_MEAN(True)                      |
|          | 109±2ms              | 108±1ms             |    0.99 | aggregate_collapse.WeightedAggregation.time_w_aggregated_by_RMS(False)                      |
|          | 109±2ms              | 110±1ms             |    1.01 | aggregate_collapse.WeightedAggregation.time_w_aggregated_by_RMS(True)                       |
|          | 65.4±1ms             | 65.8±1ms            |    1.01 | aggregate_collapse.WeightedAggregation.time_w_aggregated_by_SUM(False)                      |
|          | 65.7±0.8ms           | 66.0±0.9ms          |    1    | aggregate_collapse.WeightedAggregation.time_w_aggregated_by_SUM(True)                       |
|          | 30.7±2ms             | 32.3±1ms            |    1.05 | aggregate_collapse.WeightedAggregation.time_w_collapsed_by_MEAN(False)                      |
|          | 36.2±0.6ms           | 36.2±0.9ms          |    1    | aggregate_collapse.WeightedAggregation.time_w_collapsed_by_MEAN(True)                       |
|          | 33.5±0.5ms           | 34.0±1ms            |    1.01 | aggregate_collapse.WeightedAggregation.time_w_collapsed_by_RMS(False)                       |
|          | 38.4±1ms             | 38.5±0.8ms          |    1    | aggregate_collapse.WeightedAggregation.time_w_collapsed_by_RMS(True)                        |
|          | 27.6±0.5ms           | 27.6±0.7ms          |    1    | aggregate_collapse.WeightedAggregation.time_w_collapsed_by_SUM(False)                       |
|          | 31.8±0.5ms           | 31.5±0.5ms          |    0.99 | aggregate_collapse.WeightedAggregation.time_w_collapsed_by_SUM(True)                        |
|          | 345±2ms              | 338±3ms             |    0.98 | aggregate_collapse.WeightedAggregation.time_w_collapsed_by_WPERCENTILE(False)               |
|          | 355±4ms              | 357±4ms             |    1    | aggregate_collapse.WeightedAggregation.time_w_collapsed_by_WPERCENTILE(True)                |
|          | 1.11±0.02ms          | 1.13±0.02ms         |    1.02 | cube.CubeCreation.time_create(False, 'construct')                                           |
|          | 400±5μs              | 395±7μs             |    0.99 | cube.CubeCreation.time_create(False, 'instantiate')                                         |
|          | 945±20μs             | 955±10μs            |    1.01 | cube.CubeCreation.time_create(True, 'construct')                                            |
|          | 583±6μs              | 591±5μs             |    1.01 | cube.CubeCreation.time_create(True, 'instantiate')                                          |
|          | 244±4ms              | 241±4ms             |    0.99 | cube.CubeEquality.time_equality(False, False, 'all_equal')                                  |
|          | 130±2ms              | 133±2ms             |    1.02 | cube.CubeEquality.time_equality(False, False, 'coord_inequality')                           |
|          | 268±3ms              | 272±2ms             |    1.02 | cube.CubeEquality.time_equality(False, False, 'data_inequality')                            |
|          | 16.4±0.2μs           | 16.8±0.4μs          |    1.03 | cube.CubeEquality.time_equality(False, False, 'metadata_inequality')                        |
|          | 349±6ms              | 344±4ms             |    0.99 | cube.CubeEquality.time_equality(False, True, 'all_equal')                                   |
|          | 237±7ms              | 237±6ms             |    1    | cube.CubeEquality.time_equality(False, True, 'coord_inequality')                            |
|          | 373±4ms              | 375±5ms             |    1    | cube.CubeEquality.time_equality(False, True, 'data_inequality')                             |
|          | 16.7±0.2μs           | 17.3±0.2μs          |    1.04 | cube.CubeEquality.time_equality(False, True, 'metadata_inequality')                         |
|          | 243±4ms              | 242±2ms             |    1    | cube.CubeEquality.time_equality(True, False, 'all_equal')                                   |
|          | 130±1ms              | 131±3ms             |    1.01 | cube.CubeEquality.time_equality(True, False, 'coord_inequality')                            |
|          | 270±3ms              | 270±4ms             |    1    | cube.CubeEquality.time_equality(True, False, 'data_inequality')                             |
|          | 52.3±0.7μs           | 53.8±1μs            |    1.03 | cube.CubeEquality.time_equality(True, False, 'metadata_inequality')                         |
|          | 344±4ms              | 346±8ms             |    1.01 | cube.CubeEquality.time_equality(True, True, 'all_equal')                                    |
|          | 235±4ms              | 235±3ms             |    1    | cube.CubeEquality.time_equality(True, True, 'coord_inequality')                             |
|          | 379±5ms              | 374±4ms             |    0.99 | cube.CubeEquality.time_equality(True, True, 'data_inequality')                              |
|          | 54.4±0.4μs           | 54.9±1μs            |    1.01 | cube.CubeEquality.time_equality(True, True, 'metadata_inequality')                          |
|          | 797±10μs             | 805±10μs            |    1.01 | import_iris.Iris.time__concatenate                                                          |
|          | 181±1μs              | 186±3μs             |    1.03 | import_iris.Iris.time__constraints                                                          |
|          | 109±2μs              | 111±2μs             |    1.02 | import_iris.Iris.time__data_manager                                                         |
|          | 95.2±1μs             | 95.9±1μs            |    1.01 | import_iris.Iris.time__deprecation                                                          |
|          | 138±1μs              | 140±0.9μs           |    1.01 | import_iris.Iris.time__lazy_data                                                            |
|          | 924±10μs             | 924±9μs             |    1    | import_iris.Iris.time__merge                                                                |
|          | 77.4±0.6μs           | 77.5±1μs            |    1    | import_iris.Iris.time__representation                                                       |
|          | 593±5μs              | 615±20μs            |    1.04 | import_iris.Iris.time_analysis                                                              |
|          | 144±3μs              | 142±2μs             |    0.98 | import_iris.Iris.time_analysis__area_weighted                                               |
|          | 111±1μs              | 112±0.8μs           |    1.01 | import_iris.Iris.time_analysis__grid_angles                                                 |
|          | 243±2μs              | 246±0.9μs           |    1.01 | import_iris.Iris.time_analysis__interpolation                                               |
|          | 188±2μs              | 193±2μs             |    1.03 | import_iris.Iris.time_analysis__regrid                                                      |
|          | 113±2μs              | 113±1μs             |    1    | import_iris.Iris.time_analysis__scipy_interpolate                                           |
|          | 138±1μs              | 143±0.9μs           |    1.03 | import_iris.Iris.time_analysis_calculus                                                     |
|          | 336±3μs              | 337±2μs             |    1    | import_iris.Iris.time_analysis_cartography                                                  |
|          | 95.5±0.3μs           | 95.3±1μs            |    1    | import_iris.Iris.time_analysis_geomerty                                                     |
|          | 217±0.8μs            | 221±5μs             |    1.02 | import_iris.Iris.time_analysis_maths                                                        |
|          | 98.1±0.8μs           | 98.4±0.5μs          |    1    | import_iris.Iris.time_analysis_stats                                                        |
|          | 175±0.7μs            | 180±4μs             |    1.03 | import_iris.Iris.time_analysis_trajectory                                                   |
|          | 308±7μs              | 315±7μs             |    1.02 | import_iris.Iris.time_aux_factory                                                           |
|          | 85.2±0.9μs           | 85.5±0.9μs          |    1    | import_iris.Iris.time_common                                                                |
|          | 161±1μs              | 165±2μs             |    1.03 | import_iris.Iris.time_common_lenient                                                        |
|          | 1.34±0.01ms          | 1.35±0.01ms         |    1.01 | import_iris.Iris.time_common_metadata                                                       |
|          | 139±2μs              | 140±1μs             |    1.01 | import_iris.Iris.time_common_mixin                                                          |
|          | 1.22±0.03ms          | 1.21±0.02ms         |    0.99 | import_iris.Iris.time_common_resolve                                                        |
|          | 200±3μs              | 206±3μs             |    1.03 | import_iris.Iris.time_config                                                                |
|          | 124±2μs              | 125±1μs             |    1.01 | import_iris.Iris.time_coord_categorisation                                                  |
|          | 362±4μs              | 373±7μs             |    1.03 | import_iris.Iris.time_coord_systems                                                         |
|          | 751±6μs              | 756±6μs             |    1.01 | import_iris.Iris.time_coords                                                                |
|          | 659±6μs              | 670±20μs            |    1.02 | import_iris.Iris.time_cube                                                                  |
|          | 228±2μs              | 228±2μs             |    1    | import_iris.Iris.time_exceptions                                                            |
|          | 79.0±0.7μs           | 79.0±0.9μs          |    1    | import_iris.Iris.time_experimental                                                          |
|          | 186±1μs              | 189±2μs             |    1.02 | import_iris.Iris.time_fileformats                                                           |
|          | 252±3μs              | 259±4μs             |    1.03 | import_iris.Iris.time_fileformats__ff                                                       |
|          | 2.76±0.02ms          | 2.79±0.07ms         |    1.01 | import_iris.Iris.time_fileformats__ff_cross_references                                      |
|          | 79.6±0.6μs           | 81.5±2μs            |    1.02 | import_iris.Iris.time_fileformats__pp_lbproc_pairs                                          |
|          | 116±0.8μs            | 116±2μs             |    1    | import_iris.Iris.time_fileformats_abf                                                       |
|          | 416±3μs              | 430±20μs            |    1.03 | import_iris.Iris.time_fileformats_cf                                                        |
|          | 5.37±0.1ms           | 5.44±0.08ms         |    1.01 | import_iris.Iris.time_fileformats_dot                                                       |
|          | 75.0±0.3μs           | 75.1±0.5μs          |    1    | import_iris.Iris.time_fileformats_name                                                      |
|          | 258±3μs              | 260±1μs             |    1.01 | import_iris.Iris.time_fileformats_name_loaders                                              |
|          | 119±1μs              | 120±1μs             |    1.01 | import_iris.Iris.time_fileformats_netcdf                                                    |
|          | 123±1μs              | 123±1μs             |    1    | import_iris.Iris.time_fileformats_nimrod                                                    |
|          | 212±1μs              | 216±4μs             |    1.02 | import_iris.Iris.time_fileformats_nimrod_load_rules                                         |
|          | 788±3μs              | 802±10μs            |    1.02 | import_iris.Iris.time_fileformats_pp                                                        |
|          | 182±3μs              | 184±1μs             |    1.01 | import_iris.Iris.time_fileformats_pp_load_rules                                             |
|          | 135±0.9μs            | 137±2μs             |    1.02 | import_iris.Iris.time_fileformats_pp_save_rules                                             |
|          | 553±5μs              | 551±5μs             |    1    | import_iris.Iris.time_fileformats_rules                                                     |
|          | 220±2μs              | 228±5μs             |    1.04 | import_iris.Iris.time_fileformats_structured_array_identification                           |
|          | 84.3±1μs             | 85.0±0.8μs          |    1.01 | import_iris.Iris.time_fileformats_um                                                        |
|          | 161±0.9μs            | 166±1μs             |    1.03 | import_iris.Iris.time_fileformats_um__fast_load                                             |
|          | 139±2μs              | 141±3μs             |    1.01 | import_iris.Iris.time_fileformats_um__fast_load_structured_fields                           |
|          | 78.2±0.9μs           | 76.4±1μs            |    0.98 | import_iris.Iris.time_fileformats_um__ff_replacement                                        |
|          | 83.1±0.9μs           | 83.1±0.6μs          |    1    | import_iris.Iris.time_fileformats_um__optimal_array_structuring                             |
|          | 997±6μs              | 1.01±0.01ms         |    1.01 | import_iris.Iris.time_fileformats_um_cf_map                                                 |
|          | 136±1μs              | 140±1μs             |    1.03 | import_iris.Iris.time_io                                                                    |
|          | 174±2μs              | 177±1μs             |    1.02 | import_iris.Iris.time_io_format_picker                                                      |
|          | 297±3μs              | 292±2μs             |    0.98 | import_iris.Iris.time_iris                                                                  |
|          | 128±1μs              | 129±0.5μs           |    1.01 | import_iris.Iris.time_iterate                                                               |
|          | 8.29±0.07ms          | 8.41±0.1ms          |    1.01 | import_iris.Iris.time_palette                                                               |
|          | 1.91±0.01ms          | 1.90±0.01ms         |    1    | import_iris.Iris.time_plot                                                                  |
|          | 106±0.8μs            | 106±1μs             |    1.01 | import_iris.Iris.time_quickplot                                                             |
|          | 2.23±0.04ms          | 2.25±0.04ms         |    1.01 | import_iris.Iris.time_std_names                                                             |
|          | 1.76±0.03ms          | 1.77±0.04ms         |    1.01 | import_iris.Iris.time_symbols                                                               |
|          | 34.0±0.4ms           | 34.9±0.9ms          |    1.03 | import_iris.Iris.time_tests                                                                 |
|          | 257±4μs              | 257±5μs             |    1    | import_iris.Iris.time_third_party_cartopy                                                   |
|          | 4.76±0.05ms          | 4.80±0.07ms         |    1.01 | import_iris.Iris.time_third_party_cf_units                                                  |
|          | 119±1μs              | 120±1μs             |    1.01 | import_iris.Iris.time_third_party_cftime                                                    |
|          | 2.84±0.01ms          | 2.90±0.04ms         |    1.02 | import_iris.Iris.time_third_party_matplotlib                                                |
|          | 1.55±0.02ms          | 1.56±0.01ms         |    1    | import_iris.Iris.time_third_party_numpy                                                     |
|          | 171±2μs              | 176±4μs             |    1.03 | import_iris.Iris.time_third_party_scipy                                                     |
|          | 101±0.9μs            | 102±3μs             |    1.02 | import_iris.Iris.time_time                                                                  |
|          | 332±5μs              | 334±4μs             |    1.01 | import_iris.Iris.time_util                                                                  |
|          | 71.9±0.9μs           | 72.5±0.9μs          |    1.01 | iterate.IZip.time_izip                                                                      |
|          | 9.88±0.07ms          | 9.76±0.1ms          |    0.99 | load.LoadAndRealise.time_load((1280, 960, 5), False, 'FF')                                  |
|          | 27.4±0.3ms           | 26.8±0.2ms          |    0.98 | load.LoadAndRealise.time_load((1280, 960, 5), False, 'NetCDF')                              |
|          | 9.85±0.03ms          | 10.0±0.1ms          |    1.02 | load.LoadAndRealise.time_load((1280, 960, 5), False, 'PP')                                  |
|          | 9.98±0.2ms           | 9.83±0.06ms         |    0.99 | load.LoadAndRealise.time_load((1280, 960, 5), True, 'FF')                                   |
|          | 23.1±0.2ms           | 22.3±0.3ms          |    0.97 | load.LoadAndRealise.time_load((1280, 960, 5), True, 'NetCDF')                               |
|          | 10.0±0.1ms           | 9.99±0.2ms          |    1    | load.LoadAndRealise.time_load((1280, 960, 5), True, 'PP')                                   |
|          | 1.56±0.01s           | 1.55±0.01s          |    0.99 | load.LoadAndRealise.time_load((2, 2, 1000), False, 'FF')                                    |
|          | 22.9±0.3ms           | 22.3±0.5ms          |    0.97 | load.LoadAndRealise.time_load((2, 2, 1000), False, 'NetCDF')                                |
|          | 1.58±0.02s           | 1.57±0.01s          |    1    | load.LoadAndRealise.time_load((2, 2, 1000), False, 'PP')                                    |
|          | 1.57±0.02s           | 1.56±0.01s          |    0.99 | load.LoadAndRealise.time_load((2, 2, 1000), True, 'FF')                                     |
|          | 22.9±0.3ms           | 22.4±0.4ms          |    0.98 | load.LoadAndRealise.time_load((2, 2, 1000), True, 'NetCDF')                                 |
|          | 1.57±0.01s           | 1.59±0.01s          |    1.01 | load.LoadAndRealise.time_load((2, 2, 1000), True, 'PP')                                     |
|          | 5.07±0.04ms          | 5.06±0.03ms         |    1    | load.LoadAndRealise.time_load((50, 50, 2), False, 'FF')                                     |
|          | 21.2±0.2ms           | 21.0±0.3ms          |    0.99 | load.LoadAndRealise.time_load((50, 50, 2), False, 'NetCDF')                                 |
|          | 5.01±0.03ms          | 5.17±0.1ms          |    1.03 | load.LoadAndRealise.time_load((50, 50, 2), False, 'PP')                                     |
|          | 5.05±0.04ms          | 5.12±0.04ms         |    1.01 | load.LoadAndRealise.time_load((50, 50, 2), True, 'FF')                                      |
|          | 21.5±0.3ms           | 21.3±0.3ms          |    0.99 | load.LoadAndRealise.time_load((50, 50, 2), True, 'NetCDF')                                  |
|          | 5.10±0.07ms          | 5.08±0.09ms         |    1    | load.LoadAndRealise.time_load((50, 50, 2), True, 'PP')                                      |
|          | 25.7±3ms             | 25.3±1ms            |    0.99 | load.LoadAndRealise.time_realise((1280, 960, 5), False, 'FF')                               |
|          | 21.4±0.4ms           | 21.0±0.4ms          |    0.98 | load.LoadAndRealise.time_realise((1280, 960, 5), False, 'NetCDF')                           |
|          | 13.7±0.9ms           | 13.9±1ms            |    1.01 | load.LoadAndRealise.time_realise((1280, 960, 5), False, 'PP')                               |
|          | 26.6±3ms             | 26.5±0.7ms          |    1    | load.LoadAndRealise.time_realise((1280, 960, 5), True, 'FF')                                |
|          | 80.8±1ms             | 80.8±0.7ms          |    1    | load.LoadAndRealise.time_realise((1280, 960, 5), True, 'NetCDF')                            |
|          | 26.4±0.7ms           | 26.4±2ms            |    1    | load.LoadAndRealise.time_realise((1280, 960, 5), True, 'PP')                                |
|          | 491±3ms              | 492±6ms             |    1    | load.LoadAndRealise.time_realise((2, 2, 1000), False, 'FF')                                 |
|          | 3.13±0.04ms          | 2.99±0.06ms         |    0.96 | load.LoadAndRealise.time_realise((2, 2, 1000), False, 'NetCDF')                             |
|          | 495±4ms              | 491±8ms             |    0.99 | load.LoadAndRealise.time_realise((2, 2, 1000), False, 'PP')                                 |
|          | 505±8ms              | 503±4ms             |    0.99 | load.LoadAndRealise.time_realise((2, 2, 1000), True, 'FF')                                  |
|          | 3.29±0.1ms           | 3.07±0.1ms          |    0.93 | load.LoadAndRealise.time_realise((2, 2, 1000), True, 'NetCDF')                              |
|          | 504±8ms              | 504±7ms             |    1    | load.LoadAndRealise.time_realise((2, 2, 1000), True, 'PP')                                  |
|          | 1.73±0.08ms          | 1.73±0.1ms          |    1    | load.LoadAndRealise.time_realise((50, 50, 2), False, 'FF')                                  |
|          | 3.15±0.05ms          | 3.08±0.07ms         |    0.98 | load.LoadAndRealise.time_realise((50, 50, 2), False, 'NetCDF')                              |
|          | 1.78±0.1ms           | 1.72±0.06ms         |    0.96 | load.LoadAndRealise.time_realise((50, 50, 2), False, 'PP')                                  |
|          | 1.71±0.1ms           | 1.82±0.1ms          |    1.07 | load.LoadAndRealise.time_realise((50, 50, 2), True, 'FF')                                   |
|          | 3.22±0.09ms          | 3.25±0.09ms         |    1.01 | load.LoadAndRealise.time_realise((50, 50, 2), True, 'NetCDF')                               |
|          | 1.71±0.1ms           | 1.70±0.07ms         |    1    | load.LoadAndRealise.time_realise((50, 50, 2), True, 'PP')                                   |
|          | 362±2ms              | 366±5ms             |    1.01 | load.ManyVars.time_many_var_load                                                            |
|          | 10.0±0.2ms           | 10.2±0.1ms          |    1.01 | load.STASHConstraint.time_stash_constraint((1280, 960, 5), 'FF')                            |
|          | 10.3±0.3ms           | 10.3±0.2ms          |    1    | load.STASHConstraint.time_stash_constraint((1280, 960, 5), 'PP')                            |
|          | 1.57±0.02s           | 1.56±0.01s          |    0.99 | load.STASHConstraint.time_stash_constraint((2, 2, 1000), 'FF')                              |
|          | 1.60±0.02s           | 1.60±0.01s          |    1    | load.STASHConstraint.time_stash_constraint((2, 2, 1000), 'PP')                              |
|          | 5.17±0.1ms           | 5.11±0.05ms         |    0.99 | load.STASHConstraint.time_stash_constraint((2, 2, 2), 'FF')                                 |
|          | 5.19±0.08ms          | 5.13±0.07ms         |    0.99 | load.STASHConstraint.time_stash_constraint((2, 2, 2), 'PP')                                 |
|          | 9.03±0.3ms           | 9.12±0.1ms          |    1.01 | load.StructuredFF.time_structured_load((1280, 960, 5), False)                               |
|          | 5.96±0.1ms           | 5.91±0.07ms         |    0.99 | load.StructuredFF.time_structured_load((1280, 960, 5), True)                                |
|          | 1.55±0.01s           | 1.55±0.02s          |    1    | load.StructuredFF.time_structured_load((2, 2, 1000), False)                                 |
|          | 536±7ms              | 540±8ms             |    1.01 | load.StructuredFF.time_structured_load((2, 2, 1000), True)                                  |
|          | 4.29±0.04ms          | 4.40±0.03ms         |    1.02 | load.StructuredFF.time_structured_load((2, 2, 2), False)                                    |
|          | 4.12±0.02ms          | 4.16±0.04ms         |    1.01 | load.StructuredFF.time_structured_load((2, 2, 2), True)                                     |
|          | 164±1ms              | 169±1ms             |    1.03 | load.TimeConstraint.time_time_constraint(20, 'FF')                                          |
|          | 25.1±0.5ms           | 24.4±0.2ms          |    0.97 | load.TimeConstraint.time_time_constraint(20, 'NetCDF')                                      |
|          | 168±1ms              | 167±2ms             |    0.99 | load.TimeConstraint.time_time_constraint(20, 'PP')                                          |
|          | 32.8±0.4ms           | 33.5±0.5ms          |    1.02 | load.TimeConstraint.time_time_constraint(3, 'FF')                                           |
|          | 24.6±0.3ms           | 24.5±0.2ms          |    0.99 | load.TimeConstraint.time_time_constraint(3, 'NetCDF')                                       |
|          | 33.8±0.4ms           | 33.2±0.3ms          |    0.98 | load.TimeConstraint.time_time_constraint(3, 'PP')                                           |
|          | 19.7±0.9ms           | 20.0±0.5ms          |    1.01 | load.ugrid.BasicLoading.time_load_file(1)                                                   |
|          | 56.2±0.4ms           | 55.2±0.5ms          |    0.98 | load.ugrid.BasicLoading.time_load_file(200000)                                              |
|          | 14.6±0.2ms           | 15.2±0.3ms          |    1.04 | load.ugrid.BasicLoading.time_load_mesh(1)                                                   |
|          | 25.5±0.6ms           | 25.4±0.5ms          |    1    | load.ugrid.BasicLoading.time_load_mesh(200000)                                              |
|          | 19.3±0.4ms           | 19.6±0.5ms          |    1.01 | load.ugrid.BasicLoadingTime.time_load_file(1)                                               |
|          | 23.8±0.5ms           | 23.9±0.4ms          |    1    | load.ugrid.BasicLoadingTime.time_load_file(200000)                                          |
|          | 15.0±0.4ms           | 14.9±0.3ms          |    1    | load.ugrid.BasicLoadingTime.time_load_mesh(1)                                               |
|          | 19.4±0.3ms           | 19.9±0.5ms          |    1.03 | load.ugrid.BasicLoadingTime.time_load_mesh(200000)                                          |
|          | 20.5±0.5ms           | 20.7±0.4ms          |    1.01 | load.ugrid.Callback.time_load_file_callback(1)                                              |
|          | 66.6±0.7ms           | 65.8±0.7ms          |    0.99 | load.ugrid.Callback.time_load_file_callback(200000)                                         |
|          | 21.0±0.4ms           | 21.1±0.5ms          |    1    | load.ugrid.CallbackTime.time_load_file_callback(1)                                          |
|          | 26.2±0.9ms           | 25.7±0.5ms          |    0.98 | load.ugrid.CallbackTime.time_load_file_callback(200000)                                     |
|          | 3.21±0.1ms           | 3.07±0.1ms          |    0.96 | load.ugrid.DataRealisation.time_realise_data(10000)                                         |
|          | 5.21±0.2ms           | 4.40±0.4ms          |    0.84 | load.ugrid.DataRealisation.time_realise_data(200000)                                        |
|          | 39.3±0.9ms           | 39.4±1ms            |    1    | load.ugrid.DataRealisationTime.time_realise_data(10000)                                     |
|          | 792±4ms              | 795±5ms             |    1    | load.ugrid.DataRealisationTime.time_realise_data(200000)                                    |
|          | 428±3ms              | 429±6ms             |    1    | merge_concat.Concatenate.time_concatenate(False)                                            |
|          | 431±5ms              | 428±5ms             |    0.99 | merge_concat.Concatenate.time_concatenate(True)                                             |
|          | 109±0.3M             | 109±0.3M            |    1    | merge_concat.Concatenate.tracemalloc_concatenate(False)                                     |
|          | 109±0.3M             | 109±0.3M            |    1    | merge_concat.Concatenate.tracemalloc_concatenate(True)                                      |
|          | 58.7±1ms             | 58.1±0.8ms          |    0.99 | merge_concat.Merge.time_merge                                                               |
|          | 1.61±0.4M            | 1.61±0.3M           |    1    | merge_concat.Merge.tracemalloc_merge                                                        |
|          | 463±3ns              | 468±3ns             |    1.01 | mesh.utils.regions_combine.CombineRegionsComputeRealData.time_compute_data(50)              |
|          | 218±1ms              | 217±2ms             |    1    | mesh.utils.regions_combine.CombineRegionsComputeRealData.time_compute_data(500)             |
|          | 658±0.9k             | 658±0.7k            |    1    | mesh.utils.regions_combine.CombineRegionsComputeRealData.tracemalloc_compute_data(50)       |
|          | 60.1±0M              | 60.1±0M             |    1    | mesh.utils.regions_combine.CombineRegionsComputeRealData.tracemalloc_compute_data(500)      |
|          | 16.9±0.3ms           | 17.0±0.2ms          |    1.01 | mesh.utils.regions_combine.CombineRegionsCreateCube.time_create_combined_cube(50)           |
|          | 19.1±0.4ms           | 18.9±0.8ms          |    0.99 | mesh.utils.regions_combine.CombineRegionsCreateCube.time_create_combined_cube(500)          |
|          | 808±0.7k             | 808±0.8k            |    1    | mesh.utils.regions_combine.CombineRegionsCreateCube.tracemalloc_create_combined_cube(50)    |
|          | 12.7±0M              | 12.7±0M             |    1    | mesh.utils.regions_combine.CombineRegionsCreateCube.tracemalloc_create_combined_cube(500)   |
|          | 123±2ms              | 120±1ms             |    0.98 | mesh.utils.regions_combine.CombineRegionsFileStreamedCalc.time_stream_file2file(50)         |
|          | 687±10ms             | 685±6ms             |    1    | mesh.utils.regions_combine.CombineRegionsFileStreamedCalc.time_stream_file2file(500)        |
|          | 1.21±0.01M           | 1.22±0.01M          |    1.01 | mesh.utils.regions_combine.CombineRegionsFileStreamedCalc.tracemalloc_stream_file2file(50)  |
|          | 96.3±0.03M           | 96.3±0.02M          |    1    | mesh.utils.regions_combine.CombineRegionsFileStreamedCalc.tracemalloc_stream_file2file(500) |
|          | 78.9±1ms             | 79.9±1ms            |    1.01 | mesh.utils.regions_combine.CombineRegionsSaveData.time_save(50)                             |
|          | 640±7ms              | 630±10ms            |    0.99 | mesh.utils.regions_combine.CombineRegionsSaveData.time_save(500)                            |
|          | 1.18±0.01M           | 1.17±0.02M          |    0.99 | mesh.utils.regions_combine.CombineRegionsSaveData.tracemalloc_save(50)                      |
|          | 96.2±0.01M           | 96.2±0.02M          |    1    | mesh.utils.regions_combine.CombineRegionsSaveData.tracemalloc_save(500)                     |
|          | 2.1752849999999997   | 2.1752849999999997  |    1    | mesh.utils.regions_combine.CombineRegionsSaveData.track_filesize_saved(50)                  |
|          | 216.01528499999998   | 216.01528499999998  |    1    | mesh.utils.regions_combine.CombineRegionsSaveData.track_filesize_saved(500)                 |
|          | 6.52±0.06ms          | 6.52±0.03ms         |    1    | plot.AuxSort.time_aux_sort                                                                  |
|          | 78.6±4ms             | 82.8±4ms            |    1.05 | regridding.CurvilinearRegridding.time_regrid_pic                                            |
|          | 136±3M               | 136±3M              |    1    | regridding.CurvilinearRegridding.tracemalloc_regrid_pic                                     |
|          | 101±0.8ms            | 102±0.8ms           |    1.01 | regridding.HorizontalChunkedRegridding.time_regrid_area_w                                   |
|          | 51.0±5ms             | 51.3±2ms            |    1    | regridding.HorizontalChunkedRegridding.time_regrid_area_w_new_grid                          |
|          | 106±0.03M            | 106±0.03M           |    1    | regridding.HorizontalChunkedRegridding.tracemalloc_regrid_area_w                            |
|          | 147±0.02M            | 147±0.02M           |    1    | regridding.HorizontalChunkedRegridding.tracemalloc_regrid_area_w_new_grid                   |
|          | 4.60±0.07ms          | 4.52±0.07ms         |    0.98 | save.NetcdfSave.time_netcdf_save_cube(50, False)                                            |
|          | 81.8±2ms             | 82.4±0.8ms          |    1.01 | save.NetcdfSave.time_netcdf_save_cube(50, True)                                             |
|          | 53.3±0.7ms           | 53.0±1ms            |    0.99 | save.NetcdfSave.time_netcdf_save_cube(600, False)                                           |
|          | 594±5ms              | 588±5ms             |    0.99 | save.NetcdfSave.time_netcdf_save_cube(600, True)                                            |
|          | 91.0±2ns             | 90.6±0.8ns          |    1    | save.NetcdfSave.time_netcdf_save_mesh(50, False)                                            |
|          | 65.0±0.7ms           | 64.3±0.8ms          |    0.99 | save.NetcdfSave.time_netcdf_save_mesh(50, True)                                             |
|          | 90.1±1ns             | 89.3±1ns            |    0.99 | save.NetcdfSave.time_netcdf_save_mesh(600, False)                                           |
|          | 519±4ms              | 520±4ms             |    1    | save.NetcdfSave.time_netcdf_save_mesh(600, True)                                            |
|          | 28.9±0.06k           | 28.9±0.3k           |    1    | save.NetcdfSave.tracemalloc_netcdf_save(50, False)                                          |
|          | 1.7±0.2M             | 1.5±0.2M            |    0.88 | save.NetcdfSave.tracemalloc_netcdf_save(50, True)                                           |
|          | 28.9±0.07k           | 28.9±0.2k           |    1    | save.NetcdfSave.tracemalloc_netcdf_save(600, False)                                         |
|          | 216±20M              | 199±20M             |    0.92 | save.NetcdfSave.tracemalloc_netcdf_save(600, True)                                          |
|          | 43.0±0.4ms           | 42.4±0.3ms          |    0.99 | stats.PearsonR.time_lazy                                                                    |
|          | 9.48±0.3ms           | 9.58±0.2ms          |    1.01 | stats.PearsonR.time_real                                                                    |
|          | 23.8±1M              | 24.2±1M             |    1.02 | stats.PearsonR.tracemalloc_lazy                                                             |
|          | 18.4±0.01M           | 18.4±0.01M          |    1    | stats.PearsonR.tracemalloc_real                                                             |
|          | 23.8±0.9ms           | 22.5±1ms            |    0.95 | trajectory.TrajectoryInterpolation.time_trajectory_linear                                   |
|          | 61.7±0.6ms           | 62.2±0.7ms          |    1.01 | trajectory.TrajectoryInterpolation.time_trajectory_nearest                                  |
|          | 23.3±0.01M           | 23.3±0.01M          |    1    | trajectory.TrajectoryInterpolation.tracemalloc_trajectory_linear                            |
|          | 12.1±0.03M           | 12.1±0.03M          |    1    | trajectory.TrajectoryInterpolation.tracemalloc_trajectory_nearest                           |

Generated by GHA run 11855857238

@pp-mo
Copy link
Member

pp-mo commented Dec 11, 2024

the speedup is 10 to 20 %, though in the benchmarks below it is not really significant.

Looks really neat + I don't doubt you're right this is worth it for some cases.
I just wonder though, is it worth adding a benchmark which demonstrates the advantage ?

@bouweandela bouweandela marked this pull request as ready for review December 11, 2024 11:08
@bouweandela bouweandela added benchmark_this Request that this pull request be benchmarked to check if it introduces performance shifts and removed benchmark_this Request that this pull request be benchmarked to check if it introduces performance shifts labels Dec 11, 2024
Copy link
Contributor

⏱️ Performance Benchmark Report: 23e9462

Performance shifts

Full benchmark results

Benchmarks that have stayed the same:

| Change   | Before [0fdedb46]    | After [23e9462b]    |   Ratio | Benchmark (Parameter)                                                                       |
|----------|----------------------|---------------------|---------|---------------------------------------------------------------------------------------------|
|          | 59.9±0.3ms           | 59.7±0.6ms          |    1    | aggregate_collapse.Aggregation.time_aggregated_by_COUNT(False)                              |
|          | 61.1±0.7ms           | 60.7±0.9ms          |    0.99 | aggregate_collapse.Aggregation.time_aggregated_by_COUNT(True)                               |
|          | 215±4ms              | 214±1ms             |    1    | aggregate_collapse.Aggregation.time_aggregated_by_FAST_PERCENTILE(False)                    |
|          | 219±4ms              | 217±1ms             |    0.99 | aggregate_collapse.Aggregation.time_aggregated_by_FAST_PERCENTILE(True)                     |
|          | 39.6±0.3ms           | 39.1±0.6ms          |    0.99 | aggregate_collapse.Aggregation.time_aggregated_by_GMEAN(False)                              |
|          | 40.0±0.6ms           | 40.3±0.7ms          |    1.01 | aggregate_collapse.Aggregation.time_aggregated_by_GMEAN(True)                               |
|          | 39.6±0.3ms           | 39.0±0.5ms          |    0.99 | aggregate_collapse.Aggregation.time_aggregated_by_HMEAN(False)                              |
|          | 40.0±0.5ms           | 40.1±0.3ms          |    1    | aggregate_collapse.Aggregation.time_aggregated_by_HMEAN(True)                               |
|          | 52.4±0.7ms           | 51.8±0.6ms          |    0.99 | aggregate_collapse.Aggregation.time_aggregated_by_MAX(False)                                |
|          | 52.6±1ms             | 53.0±1ms            |    1.01 | aggregate_collapse.Aggregation.time_aggregated_by_MAX(True)                                 |
|          | 138±1ms              | 136±1ms             |    0.99 | aggregate_collapse.Aggregation.time_aggregated_by_MAX_RUN(False)                            |
|          | 137±1ms              | 137±1ms             |    1    | aggregate_collapse.Aggregation.time_aggregated_by_MAX_RUN(True)                             |
|          | 58.1±1ms             | 57.1±0.8ms          |    0.98 | aggregate_collapse.Aggregation.time_aggregated_by_MEAN(False)                               |
|          | 58.7±0.8ms           | 57.1±0.4ms          |    0.97 | aggregate_collapse.Aggregation.time_aggregated_by_MEAN(True)                                |
|          | 39.3±0.6ms           | 39.5±0.4ms          |    1    | aggregate_collapse.Aggregation.time_aggregated_by_MEDIAN(False)                             |
|          | 40.0±0.4ms           | 39.6±0.7ms          |    0.99 | aggregate_collapse.Aggregation.time_aggregated_by_MEDIAN(True)                              |
|          | 52.1±1ms             | 51.6±1ms            |    0.99 | aggregate_collapse.Aggregation.time_aggregated_by_MIN(False)                                |
|          | 52.7±0.9ms           | 52.3±0.8ms          |    0.99 | aggregate_collapse.Aggregation.time_aggregated_by_MIN(True)                                 |
|          | 1.11±0.02s           | 1.09±0.01s          |    0.98 | aggregate_collapse.Aggregation.time_aggregated_by_PEAK(False)                               |
|          | 1.11±0.02s           | 1.08±0.01s          |    0.97 | aggregate_collapse.Aggregation.time_aggregated_by_PEAK(True)                                |
|          | 515±20ms             | 498±10ms            |    0.97 | aggregate_collapse.Aggregation.time_aggregated_by_PERCENTILE(False)                         |
|          | 493±20ms             | 508±10ms            |    1.03 | aggregate_collapse.Aggregation.time_aggregated_by_PERCENTILE(True)                          |
|          | 37.7±0.4ms           | 37.2±0.5ms          |    0.99 | aggregate_collapse.Aggregation.time_aggregated_by_PROPORTION(False)                         |
|          | 38.4±0.5ms           | 38.2±0.4ms          |    1    | aggregate_collapse.Aggregation.time_aggregated_by_PROPORTION(True)                          |
|          | 69.2±0.8ms           | 67.4±1ms            |    0.97 | aggregate_collapse.Aggregation.time_aggregated_by_RMS(False)                                |
|          | 69.2±1ms             | 69.3±0.8ms          |    1    | aggregate_collapse.Aggregation.time_aggregated_by_RMS(True)                                 |
|          | 71.2±0.8ms           | 69.9±0.9ms          |    0.98 | aggregate_collapse.Aggregation.time_aggregated_by_STD_DEV(False)                            |
|          | 71.9±0.7ms           | 71.7±1ms            |    1    | aggregate_collapse.Aggregation.time_aggregated_by_STD_DEV(True)                             |
|          | 66.0±0.7ms           | 66.4±0.9ms          |    1.01 | aggregate_collapse.Aggregation.time_aggregated_by_VARIANCE(False)                           |
|          | 67.6±0.5ms           | 67.1±0.4ms          |    0.99 | aggregate_collapse.Aggregation.time_aggregated_by_VARIANCE(True)                            |
|          | 25.8±0.4ms           | 25.8±0.2ms          |    1    | aggregate_collapse.Aggregation.time_collapsed_by_COUNT(False)                               |
|          | 30.1±0.6ms           | 29.9±0.4ms          |    0.99 | aggregate_collapse.Aggregation.time_collapsed_by_COUNT(True)                                |
|          | 150±1ms              | 148±0.8ms           |    0.99 | aggregate_collapse.Aggregation.time_collapsed_by_FAST_PERCENTILE(False)                     |
|          | 164±2ms              | 164±1ms             |    1    | aggregate_collapse.Aggregation.time_collapsed_by_FAST_PERCENTILE(True)                      |
|          | 23.7±0.4ms           | 23.7±0.2ms          |    1    | aggregate_collapse.Aggregation.time_collapsed_by_GMEAN(False)                               |
|          | 28.1±0.4ms           | 27.9±0.4ms          |    0.99 | aggregate_collapse.Aggregation.time_collapsed_by_GMEAN(True)                                |
|          | 23.7±0.2ms           | 23.6±0.6ms          |    1    | aggregate_collapse.Aggregation.time_collapsed_by_HMEAN(False)                               |
|          | 28.7±0.5ms           | 28.1±0.5ms          |    0.98 | aggregate_collapse.Aggregation.time_collapsed_by_HMEAN(True)                                |
|          | 24.4±0.5ms           | 24.6±0.6ms          |    1.01 | aggregate_collapse.Aggregation.time_collapsed_by_MAX(False)                                 |
|          | 28.4±0.2ms           | 28.5±0.4ms          |    1    | aggregate_collapse.Aggregation.time_collapsed_by_MAX(True)                                  |
|          | 37.5±0.6ms           | 38.2±0.6ms          |    1.02 | aggregate_collapse.Aggregation.time_collapsed_by_MAX_RUN(False)                             |
|          | 41.9±0.9ms           | 42.2±1ms            |    1.01 | aggregate_collapse.Aggregation.time_collapsed_by_MAX_RUN(True)                              |
|          | 25.0±0.5ms           | 25.6±0.5ms          |    1.03 | aggregate_collapse.Aggregation.time_collapsed_by_MEAN(False)                                |
|          | 29.3±1ms             | 29.8±0.8ms          |    1.02 | aggregate_collapse.Aggregation.time_collapsed_by_MEAN(True)                                 |
|          | 25.0±0.6ms           | 25.1±0.6ms          |    1.01 | aggregate_collapse.Aggregation.time_collapsed_by_MEDIAN(False)                              |
|          | 29.2±0.4ms           | 29.5±0.5ms          |    1.01 | aggregate_collapse.Aggregation.time_collapsed_by_MEDIAN(True)                               |
|          | 24.4±0.4ms           | 24.5±0.6ms          |    1.01 | aggregate_collapse.Aggregation.time_collapsed_by_MIN(False)                                 |
|          | 28.5±0.3ms           | 28.9±0.8ms          |    1.02 | aggregate_collapse.Aggregation.time_collapsed_by_MIN(True)                                  |
|          | 541±3ms              | 544±5ms             |    1.01 | aggregate_collapse.Aggregation.time_collapsed_by_PEAK(False)                                |
|          | 544±2ms              | 546±4ms             |    1    | aggregate_collapse.Aggregation.time_collapsed_by_PEAK(True)                                 |
|          | 166±2ms              | 165±3ms             |    0.99 | aggregate_collapse.Aggregation.time_collapsed_by_PERCENTILE(False)                          |
|          | 184±3ms              | 183±2ms             |    1    | aggregate_collapse.Aggregation.time_collapsed_by_PERCENTILE(True)                           |
|          | 23.9±0.8ms           | 23.5±0.3ms          |    0.98 | aggregate_collapse.Aggregation.time_collapsed_by_PROPORTION(False)                          |
|          | 27.9±0.3ms           | 27.7±0.3ms          |    0.99 | aggregate_collapse.Aggregation.time_collapsed_by_PROPORTION(True)                           |
|          | 27.0±0.4ms           | 27.2±0.4ms          |    1.01 | aggregate_collapse.Aggregation.time_collapsed_by_RMS(False)                                 |
|          | 31.5±0.5ms           | 31.2±0.5ms          |    0.99 | aggregate_collapse.Aggregation.time_collapsed_by_RMS(True)                                  |
|          | 26.5±0.6ms           | 26.6±0.3ms          |    1    | aggregate_collapse.Aggregation.time_collapsed_by_STD_DEV(False)                             |
|          | 30.9±0.6ms           | 30.6±0.2ms          |    0.99 | aggregate_collapse.Aggregation.time_collapsed_by_STD_DEV(True)                              |
|          | 26.1±0.6ms           | 26.1±0.4ms          |    1    | aggregate_collapse.Aggregation.time_collapsed_by_VARIANCE(False)                            |
|          | 30.0±0.6ms           | 30.0±0.4ms          |    1    | aggregate_collapse.Aggregation.time_collapsed_by_VARIANCE(True)                             |
|          | 93.4±1ms             | 93.1±0.9ms          |    1    | aggregate_collapse.WeightedAggregation.time_w_aggregated_by_MEAN(False)                     |
|          | 95.2±1ms             | 93.8±0.9ms          |    0.98 | aggregate_collapse.WeightedAggregation.time_w_aggregated_by_MEAN(True)                      |
|          | 109±2ms              | 107±1ms             |    0.98 | aggregate_collapse.WeightedAggregation.time_w_aggregated_by_RMS(False)                      |
|          | 109±2ms              | 109±1ms             |    1    | aggregate_collapse.WeightedAggregation.time_w_aggregated_by_RMS(True)                       |
|          | 64.0±0.8ms           | 63.5±0.8ms          |    0.99 | aggregate_collapse.WeightedAggregation.time_w_aggregated_by_SUM(False)                      |
|          | 65.3±0.9ms           | 65.1±0.8ms          |    1    | aggregate_collapse.WeightedAggregation.time_w_aggregated_by_SUM(True)                       |
|          | 30.4±2ms             | 31.1±0.7ms          |    1.02 | aggregate_collapse.WeightedAggregation.time_w_collapsed_by_MEAN(False)                      |
|          | 34.8±0.7ms           | 35.5±0.7ms          |    1.02 | aggregate_collapse.WeightedAggregation.time_w_collapsed_by_MEAN(True)                       |
|          | 33.3±0.4ms           | 32.7±0.8ms          |    0.98 | aggregate_collapse.WeightedAggregation.time_w_collapsed_by_RMS(False)                       |
|          | 36.7±0.9ms           | 37.0±0.4ms          |    1.01 | aggregate_collapse.WeightedAggregation.time_w_collapsed_by_RMS(True)                        |
|          | 26.9±0.4ms           | 26.6±0.4ms          |    0.99 | aggregate_collapse.WeightedAggregation.time_w_collapsed_by_SUM(False)                       |
|          | 31.5±0.4ms           | 31.1±0.4ms          |    0.99 | aggregate_collapse.WeightedAggregation.time_w_collapsed_by_SUM(True)                        |
|          | 331±6ms              | 335±3ms             |    1.01 | aggregate_collapse.WeightedAggregation.time_w_collapsed_by_WPERCENTILE(False)               |
|          | 353±5ms              | 353±4ms             |    1    | aggregate_collapse.WeightedAggregation.time_w_collapsed_by_WPERCENTILE(True)                |
|          | 1.10±0.01ms          | 1.12±0.01ms         |    1.02 | cube.CubeCreation.time_create(False, 'construct')                                           |
|          | 394±3μs              | 404±5μs             |    1.02 | cube.CubeCreation.time_create(False, 'instantiate')                                         |
|          | 946±8μs              | 941±30μs            |    1    | cube.CubeCreation.time_create(True, 'construct')                                            |
|          | 575±9μs              | 591±8μs             |    1.03 | cube.CubeCreation.time_create(True, 'instantiate')                                          |
|          | 234±3ms              | 237±2ms             |    1.01 | cube.CubeEquality.time_equality(False, False, 'all_equal')                                  |
|          | 126±2ms              | 128±2ms             |    1.01 | cube.CubeEquality.time_equality(False, False, 'coord_inequality')                           |
|          | 264±2ms              | 260±2ms             |    0.99 | cube.CubeEquality.time_equality(False, False, 'data_inequality')                            |
|          | 16.8±0.2μs           | 16.2±0.3μs          |    0.96 | cube.CubeEquality.time_equality(False, False, 'metadata_inequality')                        |
|          | 340±2ms              | 339±4ms             |    0.99 | cube.CubeEquality.time_equality(False, True, 'all_equal')                                   |
|          | 229±3ms              | 230±3ms             |    1    | cube.CubeEquality.time_equality(False, True, 'coord_inequality')                            |
|          | 367±2ms              | 365±5ms             |    0.99 | cube.CubeEquality.time_equality(False, True, 'data_inequality')                             |
|          | 17.4±0.3μs           | 16.9±0.3μs          |    0.97 | cube.CubeEquality.time_equality(False, True, 'metadata_inequality')                         |
|          | 237±2ms              | 238±3ms             |    1    | cube.CubeEquality.time_equality(True, False, 'all_equal')                                   |
|          | 128±2ms              | 130±2ms             |    1.01 | cube.CubeEquality.time_equality(True, False, 'coord_inequality')                            |
|          | 264±2ms              | 264±3ms             |    1    | cube.CubeEquality.time_equality(True, False, 'data_inequality')                             |
|          | 52.8±0.6μs           | 52.5±0.7μs          |    1    | cube.CubeEquality.time_equality(True, False, 'metadata_inequality')                         |
|          | 342±4ms              | 340±3ms             |    0.99 | cube.CubeEquality.time_equality(True, True, 'all_equal')                                    |
|          | 229±4ms              | 233±3ms             |    1.02 | cube.CubeEquality.time_equality(True, True, 'coord_inequality')                             |
|          | 366±2ms              | 368±6ms             |    1.01 | cube.CubeEquality.time_equality(True, True, 'data_inequality')                              |
|          | 55.4±1μs             | 55.0±0.5μs          |    0.99 | cube.CubeEquality.time_equality(True, True, 'metadata_inequality')                          |
|          | 794±9μs              | 799±8μs             |    1.01 | import_iris.Iris.time__concatenate                                                          |
|          | 180±1μs              | 183±4μs             |    1.02 | import_iris.Iris.time__constraints                                                          |
|          | 108±1μs              | 109±0.8μs           |    1.01 | import_iris.Iris.time__data_manager                                                         |
|          | 93.9±0.5μs           | 94.4±0.9μs          |    1.01 | import_iris.Iris.time__deprecation                                                          |
|          | 136±0.6μs            | 137±0.8μs           |    1.01 | import_iris.Iris.time__lazy_data                                                            |
|          | 914±3μs              | 913±4μs             |    1    | import_iris.Iris.time__merge                                                                |
|          | 76.9±0.6μs           | 77.4±0.4μs          |    1.01 | import_iris.Iris.time__representation                                                       |
|          | 584±4μs              | 589±1μs             |    1.01 | import_iris.Iris.time_analysis                                                              |
|          | 139±4μs              | 139±2μs             |    1    | import_iris.Iris.time_analysis__area_weighted                                               |
|          | 109±3μs              | 110±2μs             |    1.01 | import_iris.Iris.time_analysis__grid_angles                                                 |
|          | 241±1μs              | 241±2μs             |    1    | import_iris.Iris.time_analysis__interpolation                                               |
|          | 191±2μs              | 187±2μs             |    0.98 | import_iris.Iris.time_analysis__regrid                                                      |
|          | 111±1μs              | 112±2μs             |    1.01 | import_iris.Iris.time_analysis__scipy_interpolate                                           |
|          | 138±1μs              | 140±2μs             |    1.01 | import_iris.Iris.time_analysis_calculus                                                     |
|          | 329±5μs              | 337±5μs             |    1.02 | import_iris.Iris.time_analysis_cartography                                                  |
|          | 95.9±1μs             | 96.1±2μs            |    1    | import_iris.Iris.time_analysis_geomerty                                                     |
|          | 217±3μs              | 215±2μs             |    0.99 | import_iris.Iris.time_analysis_maths                                                        |
|          | 97.4±0.8μs           | 97.0±1μs            |    1    | import_iris.Iris.time_analysis_stats                                                        |
|          | 175±2μs              | 172±2μs             |    0.98 | import_iris.Iris.time_analysis_trajectory                                                   |
|          | 308±3μs              | 308±7μs             |    1    | import_iris.Iris.time_aux_factory                                                           |
|          | 85.2±1μs             | 84.0±0.6μs          |    0.99 | import_iris.Iris.time_common                                                                |
|          | 162±2μs              | 160±1μs             |    0.99 | import_iris.Iris.time_common_lenient                                                        |
|          | 1.34±0.01ms          | 1.35±0.01ms         |    1    | import_iris.Iris.time_common_metadata                                                       |
|          | 139±2μs              | 138±1μs             |    0.99 | import_iris.Iris.time_common_mixin                                                          |
|          | 1.19±0.01ms          | 1.19±0.01ms         |    1    | import_iris.Iris.time_common_resolve                                                        |
|          | 196±0.8μs            | 196±0.9μs           |    1    | import_iris.Iris.time_config                                                                |
|          | 124±0.8μs            | 124±0.6μs           |    1    | import_iris.Iris.time_coord_categorisation                                                  |
|          | 365±5μs              | 359±7μs             |    0.98 | import_iris.Iris.time_coord_systems                                                         |
|          | 747±5μs              | 748±3μs             |    1    | import_iris.Iris.time_coords                                                                |
|          | 654±20μs             | 656±2μs             |    1    | import_iris.Iris.time_cube                                                                  |
|          | 227±2μs              | 224±1μs             |    0.99 | import_iris.Iris.time_exceptions                                                            |
|          | 78.2±0.8μs           | 77.5±0.6μs          |    0.99 | import_iris.Iris.time_experimental                                                          |
|          | 186±0.8μs            | 184±1μs             |    0.99 | import_iris.Iris.time_fileformats                                                           |
|          | 247±5μs              | 249±4μs             |    1.01 | import_iris.Iris.time_fileformats__ff                                                       |
|          | 2.75±0.03ms          | 2.73±0.04ms         |    0.99 | import_iris.Iris.time_fileformats__ff_cross_references                                      |
|          | 79.5±0.4μs           | 79.4±0.8μs          |    1    | import_iris.Iris.time_fileformats__pp_lbproc_pairs                                          |
|          | 114±1μs              | 114±1μs             |    1    | import_iris.Iris.time_fileformats_abf                                                       |
|          | 403±3μs              | 408±3μs             |    1.01 | import_iris.Iris.time_fileformats_cf                                                        |
|          | 5.33±0.06ms          | 5.33±0.05ms         |    1    | import_iris.Iris.time_fileformats_dot                                                       |
|          | 75.1±0.6μs           | 75.0±1μs            |    1    | import_iris.Iris.time_fileformats_name                                                      |
|          | 259±5μs              | 255±1μs             |    0.98 | import_iris.Iris.time_fileformats_name_loaders                                              |
|          | 119±0.7μs            | 119±1μs             |    1    | import_iris.Iris.time_fileformats_netcdf                                                    |
|          | 121±1μs              | 123±3μs             |    1.01 | import_iris.Iris.time_fileformats_nimrod                                                    |
|          | 210±2μs              | 207±3μs             |    0.99 | import_iris.Iris.time_fileformats_nimrod_load_rules                                         |
|          | 782±7μs              | 784±5μs             |    1    | import_iris.Iris.time_fileformats_pp                                                        |
|          | 183±1μs              | 178±1μs             |    0.97 | import_iris.Iris.time_fileformats_pp_load_rules                                             |
|          | 137±3μs              | 135±1μs             |    0.98 | import_iris.Iris.time_fileformats_pp_save_rules                                             |
|          | 548±7μs              | 545±3μs             |    0.99 | import_iris.Iris.time_fileformats_rules                                                     |
|          | 219±2μs              | 218±3μs             |    0.99 | import_iris.Iris.time_fileformats_structured_array_identification                           |
|          | 84.3±0.5μs           | 84.2±0.5μs          |    1    | import_iris.Iris.time_fileformats_um                                                        |
|          | 159±2μs              | 160±6μs             |    1.01 | import_iris.Iris.time_fileformats_um__fast_load                                             |
|          | 138±0.8μs            | 138±1μs             |    1    | import_iris.Iris.time_fileformats_um__fast_load_structured_fields                           |
|          | 76.2±0.6μs           | 75.7±0.6μs          |    0.99 | import_iris.Iris.time_fileformats_um__ff_replacement                                        |
|          | 82.6±1μs             | 82.5±0.7μs          |    1    | import_iris.Iris.time_fileformats_um__optimal_array_structuring                             |
|          | 986±5μs              | 992±6μs             |    1.01 | import_iris.Iris.time_fileformats_um_cf_map                                                 |
|          | 135±2μs              | 135±0.8μs           |    1.01 | import_iris.Iris.time_io                                                                    |
|          | 172±1μs              | 173±2μs             |    1    | import_iris.Iris.time_io_format_picker                                                      |
|          | 286±3μs              | 287±2μs             |    1    | import_iris.Iris.time_iris                                                                  |
|          | 127±2μs              | 127±1μs             |    1    | import_iris.Iris.time_iterate                                                               |
|          | 8.29±0.08ms          | 8.27±0.05ms         |    1    | import_iris.Iris.time_palette                                                               |
|          | 1.91±0.02ms          | 1.90±0.01ms         |    1    | import_iris.Iris.time_plot                                                                  |
|          | 105±0.4μs            | 105±0.5μs           |    1    | import_iris.Iris.time_quickplot                                                             |
|          | 2.16±0.04ms          | 2.23±0.03ms         |    1.03 | import_iris.Iris.time_std_names                                                             |
|          | 1.78±0.05ms          | 1.75±0.01ms         |    0.99 | import_iris.Iris.time_symbols                                                               |
|          | 35.1±0.5ms           | 35.4±0.8ms          |    1.01 | import_iris.Iris.time_tests                                                                 |
|          | 261±4μs              | 258±2μs             |    0.99 | import_iris.Iris.time_third_party_cartopy                                                   |
|          | 4.77±0.03ms          | 4.77±0.03ms         |    1    | import_iris.Iris.time_third_party_cf_units                                                  |
|          | 120±0.6μs            | 119±1μs             |    0.99 | import_iris.Iris.time_third_party_cftime                                                    |
|          | 2.82±0.01ms          | 2.81±0.02ms         |    1    | import_iris.Iris.time_third_party_matplotlib                                                |
|          | 1.55±0.02ms          | 1.53±0.01ms         |    0.99 | import_iris.Iris.time_third_party_numpy                                                     |
|          | 171±3μs              | 170±2μs             |    0.99 | import_iris.Iris.time_third_party_scipy                                                     |
|          | 99.9±1μs             | 99.6±1μs            |    1    | import_iris.Iris.time_time                                                                  |
|          | 329±5μs              | 330±3μs             |    1    | import_iris.Iris.time_util                                                                  |
|          | 72.2±0.7μs           | 72.0±1μs            |    1    | iterate.IZip.time_izip                                                                      |
|          | 9.79±0.09ms          | 9.69±0.05ms         |    0.99 | load.LoadAndRealise.time_load((1280, 960, 5), False, 'FF')                                  |
|          | 26.6±0.5ms           | 26.5±0.4ms          |    1    | load.LoadAndRealise.time_load((1280, 960, 5), False, 'NetCDF')                              |
|          | 9.86±0.07ms          | 9.88±0.07ms         |    1    | load.LoadAndRealise.time_load((1280, 960, 5), False, 'PP')                                  |
|          | 9.79±0.2ms           | 9.80±0.06ms         |    1    | load.LoadAndRealise.time_load((1280, 960, 5), True, 'FF')                                   |
|          | 22.3±0.3ms           | 22.4±0.1ms          |    1    | load.LoadAndRealise.time_load((1280, 960, 5), True, 'NetCDF')                               |
|          | 9.86±0.06ms          | 9.86±0.03ms         |    1    | load.LoadAndRealise.time_load((1280, 960, 5), True, 'PP')                                   |
|          | 1.54±0.01s           | 1.53±0.01s          |    0.99 | load.LoadAndRealise.time_load((2, 2, 1000), False, 'FF')                                    |
|          | 23.3±0.8ms           | 22.0±0.1ms          |    0.94 | load.LoadAndRealise.time_load((2, 2, 1000), False, 'NetCDF')                                |
|          | 1.58±0.01s           | 1.55±0.01s          |    0.98 | load.LoadAndRealise.time_load((2, 2, 1000), False, 'PP')                                    |
|          | 1.56±0.02s           | 1.55±0.02s          |    0.99 | load.LoadAndRealise.time_load((2, 2, 1000), True, 'FF')                                     |
|          | 22.6±0.3ms           | 22.1±0.8ms          |    0.98 | load.LoadAndRealise.time_load((2, 2, 1000), True, 'NetCDF')                                 |
|          | 1.56±0.02s           | 1.57±0.01s          |    1.01 | load.LoadAndRealise.time_load((2, 2, 1000), True, 'PP')                                     |
|          | 5.11±0.04ms          | 5.02±0.05ms         |    0.98 | load.LoadAndRealise.time_load((50, 50, 2), False, 'FF')                                     |
|          | 20.7±0.3ms           | 20.8±0.2ms          |    1    | load.LoadAndRealise.time_load((50, 50, 2), False, 'NetCDF')                                 |
|          | 4.98±0.02ms          | 4.98±0.03ms         |    1    | load.LoadAndRealise.time_load((50, 50, 2), False, 'PP')                                     |
|          | 5.06±0.08ms          | 4.92±0.02ms         |    0.97 | load.LoadAndRealise.time_load((50, 50, 2), True, 'FF')                                      |
|          | 20.9±0.5ms           | 21.0±0.2ms          |    1    | load.LoadAndRealise.time_load((50, 50, 2), True, 'NetCDF')                                  |
|          | 5.01±0.05ms          | 5.00±0.06ms         |    1    | load.LoadAndRealise.time_load((50, 50, 2), True, 'PP')                                      |
|          | 24.5±3ms             | 24.4±1ms            |    0.99 | load.LoadAndRealise.time_realise((1280, 960, 5), False, 'FF')                               |
|          | 20.3±0.4ms           | 20.1±0.7ms          |    0.99 | load.LoadAndRealise.time_realise((1280, 960, 5), False, 'NetCDF')                           |
|          | 13.6±2ms             | 13.3±2ms            |    0.98 | load.LoadAndRealise.time_realise((1280, 960, 5), False, 'PP')                               |
|          | 26.7±2ms             | 25.9±2ms            |    0.97 | load.LoadAndRealise.time_realise((1280, 960, 5), True, 'FF')                                |
|          | 79.6±0.4ms           | 79.6±1ms            |    1    | load.LoadAndRealise.time_realise((1280, 960, 5), True, 'NetCDF')                            |
|          | 27.0±2ms             | 25.8±2ms            |    0.96 | load.LoadAndRealise.time_realise((1280, 960, 5), True, 'PP')                                |
|          | 486±4ms              | 492±4ms             |    1.01 | load.LoadAndRealise.time_realise((2, 2, 1000), False, 'FF')                                 |
|          | 3.00±0.1ms           | 2.95±0.1ms          |    0.98 | load.LoadAndRealise.time_realise((2, 2, 1000), False, 'NetCDF')                             |
|          | 490±4ms              | 490±6ms             |    1    | load.LoadAndRealise.time_realise((2, 2, 1000), False, 'PP')                                 |
|          | 500±6ms              | 501±7ms             |    1    | load.LoadAndRealise.time_realise((2, 2, 1000), True, 'FF')                                  |
|          | 3.13±0.05ms          | 3.02±0.08ms         |    0.97 | load.LoadAndRealise.time_realise((2, 2, 1000), True, 'NetCDF')                              |
|          | 496±3ms              | 500±4ms             |    1.01 | load.LoadAndRealise.time_realise((2, 2, 1000), True, 'PP')                                  |
|          | 1.70±0.05ms          | 1.73±0.1ms          |    1.02 | load.LoadAndRealise.time_realise((50, 50, 2), False, 'FF')                                  |
|          | 2.94±0.09ms          | 2.97±0.2ms          |    1.01 | load.LoadAndRealise.time_realise((50, 50, 2), False, 'NetCDF')                              |
|          | 1.65±0.09ms          | 1.72±0.06ms         |    1.04 | load.LoadAndRealise.time_realise((50, 50, 2), False, 'PP')                                  |
|          | 1.73±0.1ms           | 1.78±0.1ms          |    1.03 | load.LoadAndRealise.time_realise((50, 50, 2), True, 'FF')                                   |
|          | 3.08±0.1ms           | 3.11±0.1ms          |    1.01 | load.LoadAndRealise.time_realise((50, 50, 2), True, 'NetCDF')                               |
|          | 1.67±0.1ms           | 1.71±0.09ms         |    1.02 | load.LoadAndRealise.time_realise((50, 50, 2), True, 'PP')                                   |
|          | 1.10±0.01s           | 1.06±0.01s          |    0.96 | load.ManyCubes.time_many_cube_load                                                          |
|          | 359±1ms              | 362±1ms             |    1.01 | load.ManyVars.time_many_var_load                                                            |
|          | 9.98±0.07ms          | 9.85±0.2ms          |    0.99 | load.STASHConstraint.time_stash_constraint((1280, 960, 5), 'FF')                            |
|          | 9.95±0.07ms          | 9.96±0.07ms         |    1    | load.STASHConstraint.time_stash_constraint((1280, 960, 5), 'PP')                            |
|          | 1.57±0.01s           | 1.56±0.02s          |    1    | load.STASHConstraint.time_stash_constraint((2, 2, 1000), 'FF')                              |
|          | 1.59±0.01s           | 1.57±0.01s          |    0.99 | load.STASHConstraint.time_stash_constraint((2, 2, 1000), 'PP')                              |
|          | 5.06±0.03ms          | 5.07±0.05ms         |    1    | load.STASHConstraint.time_stash_constraint((2, 2, 2), 'FF')                                 |
|          | 5.04±0.04ms          | 4.99±0.05ms         |    0.99 | load.STASHConstraint.time_stash_constraint((2, 2, 2), 'PP')                                 |
|          | 9.10±0.1ms           | 9.09±0.05ms         |    1    | load.StructuredFF.time_structured_load((1280, 960, 5), False)                               |
|          | 5.89±0.1ms           | 5.78±0.1ms          |    0.98 | load.StructuredFF.time_structured_load((1280, 960, 5), True)                                |
|          | 1.55±0.01s           | 1.54±0.01s          |    0.99 | load.StructuredFF.time_structured_load((2, 2, 1000), False)                                 |
|          | 538±3ms              | 538±5ms             |    1    | load.StructuredFF.time_structured_load((2, 2, 1000), True)                                  |
|          | 4.29±0.05ms          | 4.25±0.02ms         |    0.99 | load.StructuredFF.time_structured_load((2, 2, 2), False)                                    |
|          | 4.12±0.05ms          | 4.09±0.1ms          |    0.99 | load.StructuredFF.time_structured_load((2, 2, 2), True)                                     |
|          | 164±5ms              | 164±0.9ms           |    1    | load.TimeConstraint.time_time_constraint(20, 'FF')                                          |
|          | 24.4±0.3ms           | 24.3±0.5ms          |    0.99 | load.TimeConstraint.time_time_constraint(20, 'NetCDF')                                      |
|          | 167±2ms              | 166±2ms             |    0.99 | load.TimeConstraint.time_time_constraint(20, 'PP')                                          |
|          | 32.7±0.2ms           | 32.4±0.1ms          |    0.99 | load.TimeConstraint.time_time_constraint(3, 'FF')                                           |
|          | 24.2±0.3ms           | 24.3±0.5ms          |    1.01 | load.TimeConstraint.time_time_constraint(3, 'NetCDF')                                       |
|          | 33.1±0.2ms           | 32.9±0.1ms          |    0.99 | load.TimeConstraint.time_time_constraint(3, 'PP')                                           |
|          | 19.7±0.9ms           | 19.1±0.2ms          |    0.97 | load.ugrid.BasicLoading.time_load_file(1)                                                   |
|          | 56.1±0.5ms           | 54.8±0.8ms          |    0.98 | load.ugrid.BasicLoading.time_load_file(200000)                                              |
|          | 14.7±0.2ms           | 14.8±0.4ms          |    1.01 | load.ugrid.BasicLoading.time_load_mesh(1)                                                   |
|          | 25.2±0.4ms           | 24.7±0.2ms          |    0.98 | load.ugrid.BasicLoading.time_load_mesh(200000)                                              |
|          | 19.7±0.4ms           | 19.3±0.4ms          |    0.98 | load.ugrid.BasicLoadingTime.time_load_file(1)                                               |
|          | 24.2±0.5ms           | 23.7±0.3ms          |    0.98 | load.ugrid.BasicLoadingTime.time_load_file(200000)                                          |
|          | 14.8±0.1ms           | 14.7±0.3ms          |    0.99 | load.ugrid.BasicLoadingTime.time_load_mesh(1)                                               |
|          | 19.3±0.4ms           | 19.0±0.1ms          |    0.98 | load.ugrid.BasicLoadingTime.time_load_mesh(200000)                                          |
|          | 20.5±0.3ms           | 20.4±0.6ms          |    1    | load.ugrid.Callback.time_load_file_callback(1)                                              |
|          | 67.0±1ms             | 65.4±0.5ms          |    0.98 | load.ugrid.Callback.time_load_file_callback(200000)                                         |
|          | 20.7±0.4ms           | 20.4±0.5ms          |    0.98 | load.ugrid.CallbackTime.time_load_file_callback(1)                                          |
|          | 26.0±0.5ms           | 26.2±0.7ms          |    1.01 | load.ugrid.CallbackTime.time_load_file_callback(200000)                                     |
|          | 2.94±0.2ms           | 3.16±0.08ms         |    1.08 | load.ugrid.DataRealisation.time_realise_data(10000)                                         |
|          | 4.43±0.4ms           | 5.29±0.2ms          |    1.19 | load.ugrid.DataRealisation.time_realise_data(200000)                                        |
|          | 37.5±1ms             | 38.0±1ms            |    1.01 | load.ugrid.DataRealisationTime.time_realise_data(10000)                                     |
|          | 801±6ms              | 800±7ms             |    1    | load.ugrid.DataRealisationTime.time_realise_data(200000)                                    |
|          | 426±3ms              | 429±5ms             |    1.01 | merge_concat.Concatenate.time_concatenate(False)                                            |
|          | 427±5ms              | 423±5ms             |    0.99 | merge_concat.Concatenate.time_concatenate(True)                                             |
|          | 109±0.3M             | 110±0.3M            |    1    | merge_concat.Concatenate.tracemalloc_concatenate(False)                                     |
|          | 109±0.3M             | 110±0.3M            |    1    | merge_concat.Concatenate.tracemalloc_concatenate(True)                                      |
|          | 57.5±0.8ms           | 57.9±0.9ms          |    1.01 | merge_concat.Merge.time_merge                                                               |
|          | 1.61±0.2M            | 1.62±0.2M           |    1    | merge_concat.Merge.tracemalloc_merge                                                        |
|          | 473±4ns              | 473±10ns            |    1    | mesh.utils.regions_combine.CombineRegionsComputeRealData.time_compute_data(50)              |
|          | 217±1ms              | 218±2ms             |    1.01 | mesh.utils.regions_combine.CombineRegionsComputeRealData.time_compute_data(500)             |
|          | 658±1k               | 659±0.8k            |    1    | mesh.utils.regions_combine.CombineRegionsComputeRealData.tracemalloc_compute_data(50)       |
|          | 60.1±0M              | 60.1±0M             |    1    | mesh.utils.regions_combine.CombineRegionsComputeRealData.tracemalloc_compute_data(500)      |
|          | 17.0±0.2ms           | 16.9±0.2ms          |    1    | mesh.utils.regions_combine.CombineRegionsCreateCube.time_create_combined_cube(50)           |
|          | 18.8±0.8ms           | 18.7±0.6ms          |    0.99 | mesh.utils.regions_combine.CombineRegionsCreateCube.time_create_combined_cube(500)          |
|          | 809±0.7k             | 808±1k              |    1    | mesh.utils.regions_combine.CombineRegionsCreateCube.tracemalloc_create_combined_cube(50)    |
|          | 12.7±0M              | 12.7±0M             |    1    | mesh.utils.regions_combine.CombineRegionsCreateCube.tracemalloc_create_combined_cube(500)   |
|          | 119±1ms              | 119±2ms             |    1    | mesh.utils.regions_combine.CombineRegionsFileStreamedCalc.time_stream_file2file(50)         |
|          | 682±6ms              | 673±8ms             |    0.99 | mesh.utils.regions_combine.CombineRegionsFileStreamedCalc.time_stream_file2file(500)        |
|          | 1.22±0.02M           | 1.21±0.01M          |    0.99 | mesh.utils.regions_combine.CombineRegionsFileStreamedCalc.tracemalloc_stream_file2file(50)  |
|          | 96.2±0.02M           | 96.2±0.02M          |    1    | mesh.utils.regions_combine.CombineRegionsFileStreamedCalc.tracemalloc_stream_file2file(500) |
|          | 78.2±0.9ms           | 78.7±1ms            |    1.01 | mesh.utils.regions_combine.CombineRegionsSaveData.time_save(50)                             |
|          | 633±6ms              | 629±10ms            |    0.99 | mesh.utils.regions_combine.CombineRegionsSaveData.time_save(500)                            |
|          | 1.19±0.01M           | 1.17±0.01M          |    0.99 | mesh.utils.regions_combine.CombineRegionsSaveData.tracemalloc_save(50)                      |
|          | 96.2±0.01M           | 96.2±0.01M          |    1    | mesh.utils.regions_combine.CombineRegionsSaveData.tracemalloc_save(500)                     |
|          | 2.1752849999999997   | 2.1752849999999997  |    1    | mesh.utils.regions_combine.CombineRegionsSaveData.track_filesize_saved(50)                  |
|          | 216.01528499999998   | 216.01528499999998  |    1    | mesh.utils.regions_combine.CombineRegionsSaveData.track_filesize_saved(500)                 |
|          | 6.47±0.02ms          | 6.45±0.02ms         |    1    | plot.AuxSort.time_aux_sort                                                                  |
|          | 80.4±1ms             | 79.3±4ms            |    0.99 | regridding.CurvilinearRegridding.time_regrid_pic                                            |
|          | 136±3M               | 136±3M              |    1    | regridding.CurvilinearRegridding.tracemalloc_regrid_pic                                     |
|          | 99.1±1ms             | 99.8±0.8ms          |    1.01 | regridding.HorizontalChunkedRegridding.time_regrid_area_w                                   |
|          | 48.6±0.9ms           | 53.2±3ms            |    1.09 | regridding.HorizontalChunkedRegridding.time_regrid_area_w_new_grid                          |
|          | 106±0.04M            | 106±0.04M           |    1    | regridding.HorizontalChunkedRegridding.tracemalloc_regrid_area_w                            |
|          | 147±0.02M            | 147±0.02M           |    1    | regridding.HorizontalChunkedRegridding.tracemalloc_regrid_area_w_new_grid                   |
|          | 4.45±0.06ms          | 4.46±0.03ms         |    1    | save.NetcdfSave.time_netcdf_save_cube(50, False)                                            |
|          | 80.8±1ms             | 80.0±0.8ms          |    0.99 | save.NetcdfSave.time_netcdf_save_cube(50, True)                                             |
|          | 51.2±0.3ms           | 52.2±0.8ms          |    1.02 | save.NetcdfSave.time_netcdf_save_cube(600, False)                                           |
|          | 582±3ms              | 580±4ms             |    1    | save.NetcdfSave.time_netcdf_save_cube(600, True)                                            |
|          | 91.0±1ns             | 90.4±1ns            |    0.99 | save.NetcdfSave.time_netcdf_save_mesh(50, False)                                            |
|          | 62.7±1ms             | 61.6±0.6ms          |    0.98 | save.NetcdfSave.time_netcdf_save_mesh(50, True)                                             |
|          | 88.9±0.9ns           | 88.7±1ns            |    1    | save.NetcdfSave.time_netcdf_save_mesh(600, False)                                           |
|          | 516±3ms              | 511±4ms             |    0.99 | save.NetcdfSave.time_netcdf_save_mesh(600, True)                                            |
|          | 28.9±0.06k           | 28.9±0.06k          |    1    | save.NetcdfSave.tracemalloc_netcdf_save(50, False)                                          |
|          | 1.8±0.2M             | 1.68±0.07M          |    0.93 | save.NetcdfSave.tracemalloc_netcdf_save(50, True)                                           |
|          | 28.9±0.06k           | 28.9±0.06k          |    1    | save.NetcdfSave.tracemalloc_netcdf_save(600, False)                                         |
|          | 225±20M              | 225±30M             |    1    | save.NetcdfSave.tracemalloc_netcdf_save(600, True)                                          |
|          | 41.6±0.4ms           | 42.2±0.5ms          |    1.01 | stats.PearsonR.time_lazy                                                                    |
|          | 9.41±0.3ms           | 9.00±0.3ms          |    0.96 | stats.PearsonR.time_real                                                                    |
|          | 24.4±1M              | 24.4±0.8M           |    1    | stats.PearsonR.tracemalloc_lazy                                                             |
|          | 18.4±0.01M           | 18.4±0.01M          |    1    | stats.PearsonR.tracemalloc_real                                                             |
|          | 23.6±0.7ms           | 23.9±0.5ms          |    1.01 | trajectory.TrajectoryInterpolation.time_trajectory_linear                                   |
|          | 61.5±0.4ms           | 61.0±0.8ms          |    0.99 | trajectory.TrajectoryInterpolation.time_trajectory_nearest                                  |
|          | 23.3±0.01M           | 23.3±0.01M          |    1    | trajectory.TrajectoryInterpolation.tracemalloc_trajectory_linear                            |
|          | 12.1±0.04M           | 12.1±0.04M          |    1    | trajectory.TrajectoryInterpolation.tracemalloc_trajectory_nearest                           |

Generated by GHA run 12276884486

@bouweandela
Copy link
Member Author

The benchmark I added just shows:

| Change   | Before [0fdedb46]    | After [23e9462b]    |   Ratio | Benchmark (Parameter)                                                                       |
|----------|----------------------|---------------------|---------|---------------------------------------------------------------------------------------------|
|          | 1.10±0.01s           | 1.06±0.01s          |    0.96 | load.ManyCubes.time_many_cube_load                                                          |

On my laptop the timings are a bit more positive, but maybe this isn't really worth the effort. Shall I just close this?

@bouweandela
Copy link
Member Author

As discussed at the peloton meeting, this is probably useful after all. The benchmark is likely slower in CI than on my laptop because it has different hardware and therefore spends more time on I/O, reducing the relative speedup of this change on that particular machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
benchmark_this Request that this pull request be benchmarked to check if it introduces performance shifts
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

3 participants