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

Lazy median aggregator #6167

Merged
merged 6 commits into from
Jan 17, 2025
Merged

Lazy median aggregator #6167

merged 6 commits into from
Jan 17, 2025

Conversation

fnattino
Copy link
Contributor

@fnattino fnattino commented Oct 8, 2024

🚀 Pull Request

Description

Adding the lazy implementation of the median aggregator, following the implementation discussed in #4039 .

It is true that the issue above suggests that there was not much interest for a lazy median, but it looked like it would need only little effort. And we thought it could still be useful to some ESMValTool users who might not be aware of the workaround of using the 50th percentile.

CC: @bouweandela

Copy link

codecov bot commented Oct 8, 2024

Codecov Report

Attention: Patch coverage is 88.88889% with 1 line in your changes missing coverage. Please review.

Project coverage is 89.85%. Comparing base (331f012) to head (cf988b6).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
lib/iris/analysis/__init__.py 88.88% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6167      +/-   ##
==========================================
- Coverage   89.85%   89.85%   -0.01%     
==========================================
  Files          88       88              
  Lines       23384    23392       +8     
  Branches     4356     4357       +1     
==========================================
+ Hits        21012    21019       +7     
  Misses       1646     1646              
- Partials      726      727       +1     

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

@bouweandela
Copy link
Member

bouweandela commented Dec 18, 2024

Ping @SciTools/peloton, this is looking for a reviewer

Copy link
Contributor

@ESadek-MO ESadek-MO left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @fnattino!

All the code looks great, happy with this. I've rerun the tests, as there was an issue with readthedocs that we've since fixed, so assuming they pass, I'm happy with this.

The only thing to say is that we're now trying to ensure any new tests are written in pytest, using the _shared_utils file for all conveniences. That said, I believe this was put in place after you pushed this PR up, so the fault lies on me for my late review! If you fancy rewriting them in pytest, ideal, if not I'm happy to do so myself once this is merged in.

@fnattino
Copy link
Contributor Author

Thanks for the review @ESadek-MO ! No problem, I have now updated the test module to pytest. Please let me know whether there is anything else that should still be addressed here!

Copy link
Contributor

@ESadek-MO ESadek-MO left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @fnattino, looks good to me!

@ESadek-MO ESadek-MO merged commit 869691f into SciTools:main Jan 17, 2025
21 checks passed
@fnattino fnattino deleted the lazy-median branch January 17, 2025 16:18
@pp-mo pp-mo added the benchmark_this Request that this pull request be benchmarked to check if it introduces performance shifts label Jan 20, 2025
Copy link
Contributor

⏱️ Performance Benchmark Report: 869691f

Performance shifts

Full benchmark results

Benchmarks that have stayed the same:

| Change   | Before [869691f8] <main>   | After [869691f8] <main>   |   Ratio | Benchmark (Parameter)                                                                       |
|----------|----------------------------|---------------------------|---------|---------------------------------------------------------------------------------------------|
|          | 61.0±0.5ms                 | 61.0±0.5ms                |       1 | aggregate_collapse.Aggregation.time_aggregated_by_COUNT(False)                              |
|          | 61.5±0.3ms                 | 61.5±0.3ms                |       1 | aggregate_collapse.Aggregation.time_aggregated_by_COUNT(True)                               |
|          | 212±2ms                    | 212±2ms                   |       1 | aggregate_collapse.Aggregation.time_aggregated_by_FAST_PERCENTILE(False)                    |
|          | 210±2ms                    | 210±2ms                   |       1 | aggregate_collapse.Aggregation.time_aggregated_by_FAST_PERCENTILE(True)                     |
|          | 38.3±0.2ms                 | 38.3±0.2ms                |       1 | aggregate_collapse.Aggregation.time_aggregated_by_GMEAN(False)                              |
|          | 39.9±0.6ms                 | 39.9±0.6ms                |       1 | aggregate_collapse.Aggregation.time_aggregated_by_GMEAN(True)                               |
|          | 39.2±0.2ms                 | 39.2±0.2ms                |       1 | aggregate_collapse.Aggregation.time_aggregated_by_HMEAN(False)                              |
|          | 40.1±0.08ms                | 40.1±0.08ms               |       1 | aggregate_collapse.Aggregation.time_aggregated_by_HMEAN(True)                               |
|          | 52.9±0.5ms                 | 52.9±0.5ms                |       1 | aggregate_collapse.Aggregation.time_aggregated_by_MAX(False)                                |
|          | 53.8±0.4ms                 | 53.8±0.4ms                |       1 | aggregate_collapse.Aggregation.time_aggregated_by_MAX(True)                                 |
|          | 136±1ms                    | 136±1ms                   |       1 | aggregate_collapse.Aggregation.time_aggregated_by_MAX_RUN(False)                            |
|          | 137±0.4ms                  | 137±0.4ms                 |       1 | aggregate_collapse.Aggregation.time_aggregated_by_MAX_RUN(True)                             |
|          | 56.3±1ms                   | 56.3±1ms                  |       1 | aggregate_collapse.Aggregation.time_aggregated_by_MEAN(False)                               |
|          | 59.0±0.1ms                 | 59.0±0.1ms                |       1 | aggregate_collapse.Aggregation.time_aggregated_by_MEAN(True)                                |
|          | 65.3±0.2ms                 | 65.3±0.2ms                |       1 | aggregate_collapse.Aggregation.time_aggregated_by_MEDIAN(False)                             |
|          | 66.9±0.4ms                 | 66.9±0.4ms                |       1 | aggregate_collapse.Aggregation.time_aggregated_by_MEDIAN(True)                              |
|          | 52.5±0.6ms                 | 52.5±0.6ms                |       1 | aggregate_collapse.Aggregation.time_aggregated_by_MIN(False)                                |
|          | 52.8±0.4ms                 | 52.8±0.4ms                |       1 | aggregate_collapse.Aggregation.time_aggregated_by_MIN(True)                                 |
|          | 1.10±0.01s                 | 1.10±0.01s                |       1 | aggregate_collapse.Aggregation.time_aggregated_by_PEAK(False)                               |
|          | 1.10±0s                    | 1.10±0s                   |       1 | aggregate_collapse.Aggregation.time_aggregated_by_PEAK(True)                                |
|          | 490±9ms                    | 490±9ms                   |       1 | aggregate_collapse.Aggregation.time_aggregated_by_PERCENTILE(False)                         |
|          | 480±8ms                    | 480±8ms                   |       1 | aggregate_collapse.Aggregation.time_aggregated_by_PERCENTILE(True)                          |
|          | 39.0±0.3ms                 | 39.0±0.3ms                |       1 | aggregate_collapse.Aggregation.time_aggregated_by_PROPORTION(False)                         |
|          | 39.5±0.4ms                 | 39.5±0.4ms                |       1 | aggregate_collapse.Aggregation.time_aggregated_by_PROPORTION(True)                          |
|          | 68.4±0.9ms                 | 68.4±0.9ms                |       1 | aggregate_collapse.Aggregation.time_aggregated_by_RMS(False)                                |
|          | 67.2±0.3ms                 | 67.2±0.3ms                |       1 | aggregate_collapse.Aggregation.time_aggregated_by_RMS(True)                                 |
|          | 71.1±0.4ms                 | 71.1±0.4ms                |       1 | aggregate_collapse.Aggregation.time_aggregated_by_STD_DEV(False)                            |
|          | 72.3±0.2ms                 | 72.3±0.2ms                |       1 | aggregate_collapse.Aggregation.time_aggregated_by_STD_DEV(True)                             |
|          | 66.3±0.6ms                 | 66.3±0.6ms                |       1 | aggregate_collapse.Aggregation.time_aggregated_by_VARIANCE(False)                           |
|          | 67.4±0.3ms                 | 67.4±0.3ms                |       1 | aggregate_collapse.Aggregation.time_aggregated_by_VARIANCE(True)                            |
|          | 26.4±0.1ms                 | 26.4±0.1ms                |       1 | aggregate_collapse.Aggregation.time_collapsed_by_COUNT(False)                               |
|          | 30.6±0.2ms                 | 30.6±0.2ms                |       1 | aggregate_collapse.Aggregation.time_collapsed_by_COUNT(True)                                |
|          | 147±0.9ms                  | 147±0.9ms                 |       1 | aggregate_collapse.Aggregation.time_collapsed_by_FAST_PERCENTILE(False)                     |
|          | 160±0.6ms                  | 160±0.6ms                 |       1 | aggregate_collapse.Aggregation.time_collapsed_by_FAST_PERCENTILE(True)                      |
|          | 24.8±0.2ms                 | 24.8±0.2ms                |       1 | aggregate_collapse.Aggregation.time_collapsed_by_GMEAN(False)                               |
|          | 29.1±0.1ms                 | 29.1±0.1ms                |       1 | aggregate_collapse.Aggregation.time_collapsed_by_GMEAN(True)                                |
|          | 24.5±0.1ms                 | 24.5±0.1ms                |       1 | aggregate_collapse.Aggregation.time_collapsed_by_HMEAN(False)                               |
|          | 28.7±0.2ms                 | 28.7±0.2ms                |       1 | aggregate_collapse.Aggregation.time_collapsed_by_HMEAN(True)                                |
|          | 25.6±0.07ms                | 25.6±0.07ms               |       1 | aggregate_collapse.Aggregation.time_collapsed_by_MAX(False)                                 |
|          | 29.6±0.2ms                 | 29.6±0.2ms                |       1 | aggregate_collapse.Aggregation.time_collapsed_by_MAX(True)                                  |
|          | 38.2±0.1ms                 | 38.2±0.1ms                |       1 | aggregate_collapse.Aggregation.time_collapsed_by_MAX_RUN(False)                             |
|          | 42.8±0.2ms                 | 42.8±0.2ms                |       1 | aggregate_collapse.Aggregation.time_collapsed_by_MAX_RUN(True)                              |
|          | 25.9±0.5ms                 | 25.9±0.5ms                |       1 | aggregate_collapse.Aggregation.time_collapsed_by_MEAN(False)                                |
|          | 30.2±0.3ms                 | 30.2±0.3ms                |       1 | aggregate_collapse.Aggregation.time_collapsed_by_MEAN(True)                                 |
|          | 28.1±0.1ms                 | 28.1±0.1ms                |       1 | aggregate_collapse.Aggregation.time_collapsed_by_MEDIAN(False)                              |
|          | 31.8±0.09ms                | 31.8±0.09ms               |       1 | aggregate_collapse.Aggregation.time_collapsed_by_MEDIAN(True)                               |
|          | 25.7±0.08ms                | 25.7±0.08ms               |       1 | aggregate_collapse.Aggregation.time_collapsed_by_MIN(False)                                 |
|          | 29.5±0.2ms                 | 29.5±0.2ms                |       1 | aggregate_collapse.Aggregation.time_collapsed_by_MIN(True)                                  |
|          | 559±3ms                    | 559±3ms                   |       1 | aggregate_collapse.Aggregation.time_collapsed_by_PEAK(False)                                |
|          | 563±0.9ms                  | 563±0.9ms                 |       1 | aggregate_collapse.Aggregation.time_collapsed_by_PEAK(True)                                 |
|          | 161±0.7ms                  | 161±0.7ms                 |       1 | aggregate_collapse.Aggregation.time_collapsed_by_PERCENTILE(False)                          |
|          | 181±1ms                    | 181±1ms                   |       1 | aggregate_collapse.Aggregation.time_collapsed_by_PERCENTILE(True)                           |
|          | 24.6±0.2ms                 | 24.6±0.2ms                |       1 | aggregate_collapse.Aggregation.time_collapsed_by_PROPORTION(False)                          |
|          | 28.7±0.2ms                 | 28.7±0.2ms                |       1 | aggregate_collapse.Aggregation.time_collapsed_by_PROPORTION(True)                           |
|          | 27.8±0.2ms                 | 27.8±0.2ms                |       1 | aggregate_collapse.Aggregation.time_collapsed_by_RMS(False)                                 |
|          | 32.6±1ms                   | 32.6±1ms                  |       1 | aggregate_collapse.Aggregation.time_collapsed_by_RMS(True)                                  |
|          | 26.9±0.05ms                | 26.9±0.05ms               |       1 | aggregate_collapse.Aggregation.time_collapsed_by_STD_DEV(False)                             |
|          | 32.5±0.3ms                 | 32.5±0.3ms                |       1 | aggregate_collapse.Aggregation.time_collapsed_by_STD_DEV(True)                              |
|          | 28.3±0.6ms                 | 28.3±0.6ms                |       1 | aggregate_collapse.Aggregation.time_collapsed_by_VARIANCE(False)                            |
|          | 32.3±0.4ms                 | 32.3±0.4ms                |       1 | aggregate_collapse.Aggregation.time_collapsed_by_VARIANCE(True)                             |
|          | 94.6±4ms                   | 94.6±4ms                  |       1 | aggregate_collapse.WeightedAggregation.time_w_aggregated_by_MEAN(False)                     |
|          | 92.3±0.8ms                 | 92.3±0.8ms                |       1 | aggregate_collapse.WeightedAggregation.time_w_aggregated_by_MEAN(True)                      |
|          | 106±0.5ms                  | 106±0.5ms                 |       1 | aggregate_collapse.WeightedAggregation.time_w_aggregated_by_RMS(False)                      |
|          | 106±1ms                    | 106±1ms                   |       1 | aggregate_collapse.WeightedAggregation.time_w_aggregated_by_RMS(True)                       |
|          | 62.7±0.4ms                 | 62.7±0.4ms                |       1 | aggregate_collapse.WeightedAggregation.time_w_aggregated_by_SUM(False)                      |
|          | 63.6±0.3ms                 | 63.6±0.3ms                |       1 | aggregate_collapse.WeightedAggregation.time_w_aggregated_by_SUM(True)                       |
|          | 31.9±0.1ms                 | 31.9±0.1ms                |       1 | aggregate_collapse.WeightedAggregation.time_w_collapsed_by_MEAN(False)                      |
|          | 36.3±0.2ms                 | 36.3±0.2ms                |       1 | aggregate_collapse.WeightedAggregation.time_w_collapsed_by_MEAN(True)                       |
|          | 33.0±0.6ms                 | 33.0±0.6ms                |       1 | aggregate_collapse.WeightedAggregation.time_w_collapsed_by_RMS(False)                       |
|          | 37.5±0.4ms                 | 37.5±0.4ms                |       1 | aggregate_collapse.WeightedAggregation.time_w_collapsed_by_RMS(True)                        |
|          | 26.8±0.08ms                | 26.8±0.08ms               |       1 | aggregate_collapse.WeightedAggregation.time_w_collapsed_by_SUM(False)                       |
|          | 31.4±0.4ms                 | 31.4±0.4ms                |       1 | aggregate_collapse.WeightedAggregation.time_w_collapsed_by_SUM(True)                        |
|          | 325±7ms                    | 325±7ms                   |       1 | aggregate_collapse.WeightedAggregation.time_w_collapsed_by_WPERCENTILE(False)               |
|          | 344±2ms                    | 344±2ms                   |       1 | aggregate_collapse.WeightedAggregation.time_w_collapsed_by_WPERCENTILE(True)                |
|          | 1.10±0ms                   | 1.10±0ms                  |       1 | cube.CubeCreation.time_create(False, 'construct')                                           |
|          | 388±0.9μs                  | 388±0.9μs                 |       1 | cube.CubeCreation.time_create(False, 'instantiate')                                         |
|          | 938±1μs                    | 938±1μs                   |       1 | cube.CubeCreation.time_create(True, 'construct')                                            |
|          | 568±0.2μs                  | 568±0.2μs                 |       1 | cube.CubeCreation.time_create(True, 'instantiate')                                          |
|          | 240±3ms                    | 240±3ms                   |       1 | cube.CubeEquality.time_equality(False, False, 'all_equal')                                  |
|          | 131±2ms                    | 131±2ms                   |       1 | cube.CubeEquality.time_equality(False, False, 'coord_inequality')                           |
|          | 274±1ms                    | 274±1ms                   |       1 | cube.CubeEquality.time_equality(False, False, 'data_inequality')                            |
|          | 16.3±0.08μs                | 16.3±0.08μs               |       1 | cube.CubeEquality.time_equality(False, False, 'metadata_inequality')                        |
|          | 343±4ms                    | 343±4ms                   |       1 | cube.CubeEquality.time_equality(False, True, 'all_equal')                                   |
|          | 227±0.7ms                  | 227±0.7ms                 |       1 | cube.CubeEquality.time_equality(False, True, 'coord_inequality')                            |
|          | 369±2ms                    | 369±2ms                   |       1 | cube.CubeEquality.time_equality(False, True, 'data_inequality')                             |
|          | 16.6±0.1μs                 | 16.6±0.1μs                |       1 | cube.CubeEquality.time_equality(False, True, 'metadata_inequality')                         |
|          | 239±3ms                    | 239±3ms                   |       1 | cube.CubeEquality.time_equality(True, False, 'all_equal')                                   |
|          | 128±1ms                    | 128±1ms                   |       1 | cube.CubeEquality.time_equality(True, False, 'coord_inequality')                            |
|          | 273±4ms                    | 273±4ms                   |       1 | cube.CubeEquality.time_equality(True, False, 'data_inequality')                             |
|          | 52.6±0.8μs                 | 52.6±0.8μs                |       1 | cube.CubeEquality.time_equality(True, False, 'metadata_inequality')                         |
|          | 337±4ms                    | 337±4ms                   |       1 | cube.CubeEquality.time_equality(True, True, 'all_equal')                                    |
|          | 225±1ms                    | 225±1ms                   |       1 | cube.CubeEquality.time_equality(True, True, 'coord_inequality')                             |
|          | 363±0.9ms                  | 363±0.9ms                 |       1 | cube.CubeEquality.time_equality(True, True, 'data_inequality')                              |
|          | 54.1±0.2μs                 | 54.1±0.2μs                |       1 | cube.CubeEquality.time_equality(True, True, 'metadata_inequality')                          |
|          | 802±4μs                    | 802±4μs                   |       1 | import_iris.Iris.time__concatenate                                                          |
|          | 187±1μs                    | 187±1μs                   |       1 | import_iris.Iris.time__constraints                                                          |
|          | 118±4μs                    | 118±4μs                   |       1 | import_iris.Iris.time__data_manager                                                         |
|          | 91.6±0.7μs                 | 91.6±0.7μs                |       1 | import_iris.Iris.time__deprecation                                                          |
|          | 137±1μs                    | 137±1μs                   |       1 | import_iris.Iris.time__lazy_data                                                            |
|          | 928±20μs                   | 928±20μs                  |       1 | import_iris.Iris.time__merge                                                                |
|          | 76.3±0.6μs                 | 76.3±0.6μs                |       1 | import_iris.Iris.time__representation                                                       |
|          | 606±2μs                    | 606±2μs                   |       1 | import_iris.Iris.time_analysis                                                              |
|          | 140±0.8μs                  | 140±0.8μs                 |       1 | import_iris.Iris.time_analysis__area_weighted                                               |
|          | 108±0.3μs                  | 108±0.3μs                 |       1 | import_iris.Iris.time_analysis__grid_angles                                                 |
|          | 254±4μs                    | 254±4μs                   |       1 | import_iris.Iris.time_analysis__interpolation                                               |
|          | 196±0.5μs                  | 196±0.5μs                 |       1 | import_iris.Iris.time_analysis__regrid                                                      |
|          | 111±0.3μs                  | 111±0.3μs                 |       1 | import_iris.Iris.time_analysis__scipy_interpolate                                           |
|          | 137±0.3μs                  | 137±0.3μs                 |       1 | import_iris.Iris.time_analysis_calculus                                                     |
|          | 332±3μs                    | 332±3μs                   |       1 | import_iris.Iris.time_analysis_cartography                                                  |
|          | 93.5±0.08μs                | 93.5±0.08μs               |       1 | import_iris.Iris.time_analysis_geomerty                                                     |
|          | 223±0.6μs                  | 223±0.6μs                 |       1 | import_iris.Iris.time_analysis_maths                                                        |
|          | 97.3±0.3μs                 | 97.3±0.3μs                |       1 | import_iris.Iris.time_analysis_stats                                                        |
|          | 171±0.7μs                  | 171±0.7μs                 |       1 | import_iris.Iris.time_analysis_trajectory                                                   |
|          | 323±0.7μs                  | 323±0.7μs                 |       1 | import_iris.Iris.time_aux_factory                                                           |
|          | 84.4±0.3μs                 | 84.4±0.3μs                |       1 | import_iris.Iris.time_common                                                                |
|          | 163±0.7μs                  | 163±0.7μs                 |       1 | import_iris.Iris.time_common_lenient                                                        |
|          | 1.37±0.01ms                | 1.37±0.01ms               |       1 | import_iris.Iris.time_common_metadata                                                       |
|          | 163±0.5μs                  | 163±0.5μs                 |       1 | import_iris.Iris.time_common_mixin                                                          |
|          | 1.20±0.01ms                | 1.20±0.01ms               |       1 | import_iris.Iris.time_common_resolve                                                        |
|          | 195±1μs                    | 195±1μs                   |       1 | import_iris.Iris.time_config                                                                |
|          | 122±0.2μs                  | 122±0.2μs                 |       1 | import_iris.Iris.time_coord_categorisation                                                  |
|          | 373±3μs                    | 373±3μs                   |       1 | import_iris.Iris.time_coord_systems                                                         |
|          | 768±2μs                    | 768±2μs                   |       1 | import_iris.Iris.time_coords                                                                |
|          | 673±6μs                    | 673±6μs                   |       1 | import_iris.Iris.time_cube                                                                  |
|          | 218±0.5μs                  | 218±0.5μs                 |       1 | import_iris.Iris.time_exceptions                                                            |
|          | 75.4±0.2μs                 | 75.4±0.2μs                |       1 | import_iris.Iris.time_experimental                                                          |
|          | 181±0.2μs                  | 181±0.2μs                 |       1 | import_iris.Iris.time_fileformats                                                           |
|          | 252±0.3μs                  | 252±0.3μs                 |       1 | import_iris.Iris.time_fileformats__ff                                                       |
|          | 2.66±0.01ms                | 2.66±0.01ms               |       1 | import_iris.Iris.time_fileformats__ff_cross_references                                      |
|          | 78.3±0.2μs                 | 78.3±0.2μs                |       1 | import_iris.Iris.time_fileformats__pp_lbproc_pairs                                          |
|          | 113±0.5μs                  | 113±0.5μs                 |       1 | import_iris.Iris.time_fileformats_abf                                                       |
|          | 424±6μs                    | 424±6μs                   |       1 | import_iris.Iris.time_fileformats_cf                                                        |
|          | 4.93±0.02ms                | 4.93±0.02ms               |       1 | import_iris.Iris.time_fileformats_dot                                                       |
|          | 72.7±0.3μs                 | 72.7±0.3μs                |       1 | import_iris.Iris.time_fileformats_name                                                      |
|          | 268±0.6μs                  | 268±0.6μs                 |       1 | import_iris.Iris.time_fileformats_name_loaders                                              |
|          | 119±0.8μs                  | 119±0.8μs                 |       1 | import_iris.Iris.time_fileformats_netcdf                                                    |
|          | 125±1μs                    | 125±1μs                   |       1 | import_iris.Iris.time_fileformats_nimrod                                                    |
|          | 213±3μs                    | 213±3μs                   |       1 | import_iris.Iris.time_fileformats_nimrod_load_rules                                         |
|          | 832±10μs                   | 832±10μs                  |       1 | import_iris.Iris.time_fileformats_pp                                                        |
|          | 180±0.03μs                 | 180±0.03μs                |       1 | import_iris.Iris.time_fileformats_pp_load_rules                                             |
|          | 136±0.3μs                  | 136±0.3μs                 |       1 | import_iris.Iris.time_fileformats_pp_save_rules                                             |
|          | 560±3μs                    | 560±3μs                   |       1 | import_iris.Iris.time_fileformats_rules                                                     |
|          | 223±1μs                    | 223±1μs                   |       1 | import_iris.Iris.time_fileformats_structured_array_identification                           |
|          | 84.2±0.5μs                 | 84.2±0.5μs                |       1 | import_iris.Iris.time_fileformats_um                                                        |
|          | 168±0.5μs                  | 168±0.5μs                 |       1 | import_iris.Iris.time_fileformats_um__fast_load                                             |
|          | 139±0.7μs                  | 139±0.7μs                 |       1 | import_iris.Iris.time_fileformats_um__fast_load_structured_fields                           |
|          | 75.0±0.3μs                 | 75.0±0.3μs                |       1 | import_iris.Iris.time_fileformats_um__ff_replacement                                        |
|          | 81.2±0.1μs                 | 81.2±0.1μs                |       1 | import_iris.Iris.time_fileformats_um__optimal_array_structuring                             |
|          | 987±2μs                    | 987±2μs                   |       1 | import_iris.Iris.time_fileformats_um_cf_map                                                 |
|          | 136±0.8μs                  | 136±0.8μs                 |       1 | import_iris.Iris.time_io                                                                    |
|          | 179±3μs                    | 179±3μs                   |       1 | import_iris.Iris.time_io_format_picker                                                      |
|          | 310±1μs                    | 310±1μs                   |       1 | import_iris.Iris.time_iris                                                                  |
|          | 128±0.6μs                  | 128±0.6μs                 |       1 | import_iris.Iris.time_iterate                                                               |
|          | 8.83±0.1ms                 | 8.83±0.1ms                |       1 | import_iris.Iris.time_palette                                                               |
|          | 1.92±0ms                   | 1.92±0ms                  |       1 | import_iris.Iris.time_plot                                                                  |
|          | 106±0.6μs                  | 106±0.6μs                 |       1 | import_iris.Iris.time_quickplot                                                             |
|          | 2.26±0ms                   | 2.26±0ms                  |       1 | import_iris.Iris.time_std_names                                                             |
|          | 1.79±0.01ms                | 1.79±0.01ms               |       1 | import_iris.Iris.time_symbols                                                               |
|          | 99.5±0.5ms                 | 99.5±0.5ms                |       1 | import_iris.Iris.time_tests                                                                 |
|          | 273±0.9μs                  | 273±0.9μs                 |       1 | import_iris.Iris.time_third_party_cartopy                                                   |
|          | 5.12±0.02ms                | 5.12±0.02ms               |       1 | import_iris.Iris.time_third_party_cf_units                                                  |
|          | 128±0.9μs                  | 128±0.9μs                 |       1 | import_iris.Iris.time_third_party_cftime                                                    |
|          | 2.95±0.03ms                | 2.95±0.03ms               |       1 | import_iris.Iris.time_third_party_matplotlib                                                |
|          | 1.30±0.01ms                | 1.30±0.01ms               |       1 | import_iris.Iris.time_third_party_numpy                                                     |
|          | 179±0.2μs                  | 179±0.2μs                 |       1 | import_iris.Iris.time_third_party_scipy                                                     |
|          | 98.7±0.2μs                 | 98.7±0.2μs                |       1 | import_iris.Iris.time_time                                                                  |
|          | 343±1μs                    | 343±1μs                   |       1 | import_iris.Iris.time_util                                                                  |
|          | 71.1±0.5μs                 | 71.1±0.5μs                |       1 | iterate.IZip.time_izip                                                                      |
|          | 10.5±0.2ms                 | 10.5±0.2ms                |       1 | load.LoadAndRealise.time_load((1280, 960, 5), False, 'FF')                                  |
|          | 26.5±0.2ms                 | 26.5±0.2ms                |       1 | load.LoadAndRealise.time_load((1280, 960, 5), False, 'NetCDF')                              |
|          | 10.5±0.04ms                | 10.5±0.04ms               |       1 | load.LoadAndRealise.time_load((1280, 960, 5), False, 'PP')                                  |
|          | 10.4±0.02ms                | 10.4±0.02ms               |       1 | load.LoadAndRealise.time_load((1280, 960, 5), True, 'FF')                                   |
|          | 23.7±0.3ms                 | 23.7±0.3ms                |       1 | load.LoadAndRealise.time_load((1280, 960, 5), True, 'NetCDF')                               |
|          | 10.3±0.03ms                | 10.3±0.03ms               |       1 | load.LoadAndRealise.time_load((1280, 960, 5), True, 'PP')                                   |
|          | 1.61±0.01s                 | 1.61±0.01s                |       1 | load.LoadAndRealise.time_load((2, 2, 1000), False, 'FF')                                    |
|          | 23.4±0.06ms                | 23.4±0.06ms               |       1 | load.LoadAndRealise.time_load((2, 2, 1000), False, 'NetCDF')                                |
|          | 1.63±0.01s                 | 1.63±0.01s                |       1 | load.LoadAndRealise.time_load((2, 2, 1000), False, 'PP')                                    |
|          | 1.64±0.01s                 | 1.64±0.01s                |       1 | load.LoadAndRealise.time_load((2, 2, 1000), True, 'FF')                                     |
|          | 23.2±0.1ms                 | 23.2±0.1ms                |       1 | load.LoadAndRealise.time_load((2, 2, 1000), True, 'NetCDF')                                 |
|          | 1.66±0.01s                 | 1.66±0.01s                |       1 | load.LoadAndRealise.time_load((2, 2, 1000), True, 'PP')                                     |
|          | 5.20±0.01ms                | 5.20±0.01ms               |       1 | load.LoadAndRealise.time_load((50, 50, 2), False, 'FF')                                     |
|          | 22.4±0.1ms                 | 22.4±0.1ms                |       1 | load.LoadAndRealise.time_load((50, 50, 2), False, 'NetCDF')                                 |
|          | 5.13±0.02ms                | 5.13±0.02ms               |       1 | load.LoadAndRealise.time_load((50, 50, 2), False, 'PP')                                     |
|          | 5.23±0.04ms                | 5.23±0.04ms               |       1 | load.LoadAndRealise.time_load((50, 50, 2), True, 'FF')                                      |
|          | 22.5±0.06ms                | 22.5±0.06ms               |       1 | load.LoadAndRealise.time_load((50, 50, 2), True, 'NetCDF')                                  |
|          | 5.33±0.06ms                | 5.33±0.06ms               |       1 | load.LoadAndRealise.time_load((50, 50, 2), True, 'PP')                                      |
|          | 22.7±0.1ms                 | 22.7±0.1ms                |       1 | load.LoadAndRealise.time_realise((1280, 960, 5), False, 'FF')                               |
|          | 20.4±0.2ms                 | 20.4±0.2ms                |       1 | load.LoadAndRealise.time_realise((1280, 960, 5), False, 'NetCDF')                           |
|          | 11.2±0.4ms                 | 11.2±0.4ms                |       1 | load.LoadAndRealise.time_realise((1280, 960, 5), False, 'PP')                               |
|          | 26.8±0.08ms                | 26.8±0.08ms               |       1 | load.LoadAndRealise.time_realise((1280, 960, 5), True, 'FF')                                |
|          | 70.1±0.7ms                 | 70.1±0.7ms                |       1 | load.LoadAndRealise.time_realise((1280, 960, 5), True, 'NetCDF')                            |
|          | 26.9±0.5ms                 | 26.9±0.5ms                |       1 | load.LoadAndRealise.time_realise((1280, 960, 5), True, 'PP')                                |
|          | 504±2ms                    | 504±2ms                   |       1 | load.LoadAndRealise.time_realise((2, 2, 1000), False, 'FF')                                 |
|          | 3.36±0.04ms                | 3.36±0.04ms               |       1 | load.LoadAndRealise.time_realise((2, 2, 1000), False, 'NetCDF')                             |
|          | 509±2ms                    | 509±2ms                   |       1 | load.LoadAndRealise.time_realise((2, 2, 1000), False, 'PP')                                 |
|          | 521±2ms                    | 521±2ms                   |       1 | load.LoadAndRealise.time_realise((2, 2, 1000), True, 'FF')                                  |
|          | 3.32±0.04ms                | 3.32±0.04ms               |       1 | load.LoadAndRealise.time_realise((2, 2, 1000), True, 'NetCDF')                              |
|          | 514±2ms                    | 514±2ms                   |       1 | load.LoadAndRealise.time_realise((2, 2, 1000), True, 'PP')                                  |
|          | 1.75±0.04ms                | 1.75±0.04ms               |       1 | load.LoadAndRealise.time_realise((50, 50, 2), False, 'FF')                                  |
|          | 3.31±0.02ms                | 3.31±0.02ms               |       1 | load.LoadAndRealise.time_realise((50, 50, 2), False, 'NetCDF')                              |
|          | 1.78±0.02ms                | 1.78±0.02ms               |       1 | load.LoadAndRealise.time_realise((50, 50, 2), False, 'PP')                                  |
|          | 1.74±0.01ms                | 1.74±0.01ms               |       1 | load.LoadAndRealise.time_realise((50, 50, 2), True, 'FF')                                   |
|          | 3.28±0.04ms                | 3.28±0.04ms               |       1 | load.LoadAndRealise.time_realise((50, 50, 2), True, 'NetCDF')                               |
|          | 1.77±0.05ms                | 1.77±0.05ms               |       1 | load.LoadAndRealise.time_realise((50, 50, 2), True, 'PP')                                   |
|          | 363±0.1ms                  | 363±0.1ms                 |       1 | load.ManyVars.time_many_var_load                                                            |
|          | 10.3±0.03ms                | 10.3±0.03ms               |       1 | load.STASHConstraint.time_stash_constraint((1280, 960, 5), 'FF')                            |
|          | 10.5±0.06ms                | 10.5±0.06ms               |       1 | load.STASHConstraint.time_stash_constraint((1280, 960, 5), 'PP')                            |
|          | 1.65±0.01s                 | 1.65±0.01s                |       1 | load.STASHConstraint.time_stash_constraint((2, 2, 1000), 'FF')                              |
|          | 1.68±0.01s                 | 1.68±0.01s                |       1 | load.STASHConstraint.time_stash_constraint((2, 2, 1000), 'PP')                              |
|          | 5.24±0.02ms                | 5.24±0.02ms               |       1 | load.STASHConstraint.time_stash_constraint((2, 2, 2), 'FF')                                 |
|          | 5.22±0.01ms                | 5.22±0.01ms               |       1 | load.STASHConstraint.time_stash_constraint((2, 2, 2), 'PP')                                 |
|          | 9.81±0.03ms                | 9.81±0.03ms               |       1 | load.StructuredFF.time_structured_load((1280, 960, 5), False)                               |
|          | 6.32±0.06ms                | 6.32±0.06ms               |       1 | load.StructuredFF.time_structured_load((1280, 960, 5), True)                                |
|          | 1.62±0.01s                 | 1.62±0.01s                |       1 | load.StructuredFF.time_structured_load((2, 2, 1000), False)                                 |
|          | 568±6ms                    | 568±6ms                   |       1 | load.StructuredFF.time_structured_load((2, 2, 1000), True)                                  |
|          | 4.60±0.05ms                | 4.60±0.05ms               |       1 | load.StructuredFF.time_structured_load((2, 2, 2), False)                                    |
|          | 4.44±0.03ms                | 4.44±0.03ms               |       1 | load.StructuredFF.time_structured_load((2, 2, 2), True)                                     |
|          | 175±0.2ms                  | 175±0.2ms                 |       1 | load.TimeConstraint.time_time_constraint(20, 'FF')                                          |
|          | 25.8±0.2ms                 | 25.8±0.2ms                |       1 | load.TimeConstraint.time_time_constraint(20, 'NetCDF')                                      |
|          | 177±0.8ms                  | 177±0.8ms                 |       1 | load.TimeConstraint.time_time_constraint(20, 'PP')                                          |
|          | 35.2±0.1ms                 | 35.2±0.1ms                |       1 | load.TimeConstraint.time_time_constraint(3, 'FF')                                           |
|          | 25.2±0.06ms                | 25.2±0.06ms               |       1 | load.TimeConstraint.time_time_constraint(3, 'NetCDF')                                       |
|          | 35.3±0.1ms                 | 35.3±0.1ms                |       1 | load.TimeConstraint.time_time_constraint(3, 'PP')                                           |
|          | 20.2±0.2ms                 | 20.2±0.2ms                |       1 | load.ugrid.BasicLoading.time_load_file(1)                                                   |
|          | 58.9±0.2ms                 | 58.9±0.2ms                |       1 | load.ugrid.BasicLoading.time_load_file(200000)                                              |
|          | 17.0±0.3ms                 | 17.0±0.3ms                |       1 | load.ugrid.BasicLoading.time_load_mesh(1)                                                   |
|          | 25.3±0.3ms                 | 25.3±0.3ms                |       1 | load.ugrid.BasicLoading.time_load_mesh(200000)                                              |
|          | 20.3±0.09ms                | 20.3±0.09ms               |       1 | load.ugrid.BasicLoadingTime.time_load_file(1)                                               |
|          | 24.3±0.1ms                 | 24.3±0.1ms                |       1 | load.ugrid.BasicLoadingTime.time_load_file(200000)                                          |
|          | 15.6±0.03ms                | 15.6±0.03ms               |       1 | load.ugrid.BasicLoadingTime.time_load_mesh(1)                                               |
|          | 19.2±0.08ms                | 19.2±0.08ms               |       1 | load.ugrid.BasicLoadingTime.time_load_mesh(200000)                                          |
|          | 22.4±0.2ms                 | 22.4±0.2ms                |       1 | load.ugrid.Callback.time_load_file_callback(1)                                              |
|          | 71.5±0.2ms                 | 71.5±0.2ms                |       1 | load.ugrid.Callback.time_load_file_callback(200000)                                         |
|          | 22.1±0.1ms                 | 22.1±0.1ms                |       1 | load.ugrid.CallbackTime.time_load_file_callback(1)                                          |
|          | 26.3±0.08ms                | 26.3±0.08ms               |       1 | load.ugrid.CallbackTime.time_load_file_callback(200000)                                     |
|          | 3.32±0.1ms                 | 3.32±0.1ms                |       1 | load.ugrid.DataRealisation.time_realise_data(10000)                                         |
|          | 4.60±0.07ms                | 4.60±0.07ms               |       1 | load.ugrid.DataRealisation.time_realise_data(200000)                                        |
|          | 43.5±0.5ms                 | 43.5±0.5ms                |       1 | load.ugrid.DataRealisationTime.time_realise_data(10000)                                     |
|          | 827±20ms                   | 827±20ms                  |       1 | load.ugrid.DataRealisationTime.time_realise_data(200000)                                    |
|          | 451±0.9ms                  | 451±0.9ms                 |       1 | merge_concat.Concatenate.time_concatenate(False)                                            |
|          | 460±3ms                    | 460±3ms                   |       1 | merge_concat.Concatenate.time_concatenate(True)                                             |
|          | 109±0.07M                  | 109±0.07M                 |       1 | merge_concat.Concatenate.tracemalloc_concatenate(False)                                     |
|          | 109±0.07M                  | 109±0.07M                 |       1 | merge_concat.Concatenate.tracemalloc_concatenate(True)                                      |
|          | 56.4±0.2ms                 | 56.4±0.2ms                |       1 | merge_concat.Merge.time_merge                                                               |
|          | 1.62±0.01M                 | 1.62±0.01M                |       1 | merge_concat.Merge.tracemalloc_merge                                                        |
|          | 403±1ns                    | 403±1ns                   |       1 | mesh.utils.regions_combine.CombineRegionsComputeRealData.time_compute_data(50)              |
|          | 210±1ms                    | 210±1ms                   |       1 | mesh.utils.regions_combine.CombineRegionsComputeRealData.time_compute_data(500)             |
|          | 650±0.2k                   | 650±0.2k                  |       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)      |
|          | 18.3±0.2ms                 | 18.3±0.2ms                |       1 | mesh.utils.regions_combine.CombineRegionsCreateCube.time_create_combined_cube(50)           |
|          | 20.2±0.3ms                 | 20.2±0.3ms                |       1 | mesh.utils.regions_combine.CombineRegionsCreateCube.time_create_combined_cube(500)          |
|          | 698±50k                    | 698±50k                   |       1 | mesh.utils.regions_combine.CombineRegionsCreateCube.tracemalloc_create_combined_cube(50)    |
|          | 12.6±0.05M                 | 12.6±0.05M                |       1 | mesh.utils.regions_combine.CombineRegionsCreateCube.tracemalloc_create_combined_cube(500)   |
|          | 110±0.3ms                  | 110±0.3ms                 |       1 | mesh.utils.regions_combine.CombineRegionsFileStreamedCalc.time_stream_file2file(50)         |
|          | 627±2ms                    | 627±2ms                   |       1 | mesh.utils.regions_combine.CombineRegionsFileStreamedCalc.time_stream_file2file(500)        |
|          | 1.24±0.01M                 | 1.24±0.01M                |       1 | mesh.utils.regions_combine.CombineRegionsFileStreamedCalc.tracemalloc_stream_file2file(50)  |
|          | 96.2±0.04M                 | 96.2±0.04M                |       1 | mesh.utils.regions_combine.CombineRegionsFileStreamedCalc.tracemalloc_stream_file2file(500) |
|          | 70.6±1ms                   | 70.6±1ms                  |       1 | mesh.utils.regions_combine.CombineRegionsSaveData.time_save(50)                             |
|          | 597±5ms                    | 597±5ms                   |       1 | mesh.utils.regions_combine.CombineRegionsSaveData.time_save(500)                            |
|          | 1.16±0.01M                 | 1.16±0.01M                |       1 | 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.80±0.08ms                | 6.80±0.08ms               |       1 | plot.AuxSort.time_aux_sort                                                                  |
|          | 81.9±6ms                   | 81.9±6ms                  |       1 | regridding.CurvilinearRegridding.time_regrid_pic                                            |
|          | 136±0M                     | 136±0M                    |       1 | regridding.CurvilinearRegridding.tracemalloc_regrid_pic                                     |
|          | 102±1ms                    | 102±1ms                   |       1 | regridding.HorizontalChunkedRegridding.time_regrid_area_w                                   |
|          | 53.1±0.3ms                 | 53.1±0.3ms                |       1 | regridding.HorizontalChunkedRegridding.time_regrid_area_w_new_grid                          |
|          | 106±0.04M                  | 106±0.04M                 |       1 | regridding.HorizontalChunkedRegridding.tracemalloc_regrid_area_w                            |
|          | 147±0M                     | 147±0M                    |       1 | regridding.HorizontalChunkedRegridding.tracemalloc_regrid_area_w_new_grid                   |
|          | 4.74±0.04ms                | 4.74±0.04ms               |       1 | save.NetcdfSave.time_netcdf_save_cube(50, False)                                            |
|          | 78.1±0.4ms                 | 78.1±0.4ms                |       1 | save.NetcdfSave.time_netcdf_save_cube(50, True)                                             |
|          | 44.3±0.3ms                 | 44.3±0.3ms                |       1 | save.NetcdfSave.time_netcdf_save_cube(600, False)                                           |
|          | 499±3ms                    | 499±3ms                   |       1 | save.NetcdfSave.time_netcdf_save_cube(600, True)                                            |
|          | 87.9±0.3ns                 | 87.9±0.3ns                |       1 | save.NetcdfSave.time_netcdf_save_mesh(50, False)                                            |
|          | 59.6±0.1ms                 | 59.6±0.1ms                |       1 | save.NetcdfSave.time_netcdf_save_mesh(50, True)                                             |
|          | 87.3±0.2ns                 | 87.3±0.2ns                |       1 | save.NetcdfSave.time_netcdf_save_mesh(600, False)                                           |
|          | 435±0.6ms                  | 435±0.6ms                 |       1 | save.NetcdfSave.time_netcdf_save_mesh(600, True)                                            |
|          | 30.3±0.06k                 | 30.3±0.06k                |       1 | save.NetcdfSave.tracemalloc_netcdf_save(50, False)                                          |
|          | 1.51±0.2M                  | 1.51±0.2M                 |       1 | save.NetcdfSave.tracemalloc_netcdf_save(50, True)                                           |
|          | 30.3±0.09k                 | 30.3±0.09k                |       1 | save.NetcdfSave.tracemalloc_netcdf_save(600, False)                                         |
|          | 225±30M                    | 225±30M                   |       1 | save.NetcdfSave.tracemalloc_netcdf_save(600, True)                                          |
|          | 42.1±0.09ms                | 42.1±0.09ms               |       1 | stats.PearsonR.time_lazy                                                                    |
|          | 9.83±0.04ms                | 9.83±0.04ms               |       1 | stats.PearsonR.time_real                                                                    |
|          | 24.7±0.2M                  | 24.7±0.2M                 |       1 | stats.PearsonR.tracemalloc_lazy                                                             |
|          | 18.4±0M                    | 18.4±0M                   |       1 | stats.PearsonR.tracemalloc_real                                                             |
|          | 26.6±1ms                   | 26.6±1ms                  |       1 | trajectory.TrajectoryInterpolation.time_trajectory_linear                                   |
|          | 69.6±0.09ms                | 69.6±0.09ms               |       1 | trajectory.TrajectoryInterpolation.time_trajectory_nearest                                  |
|          | 23.3±0M                    | 23.3±0M                   |       1 | trajectory.TrajectoryInterpolation.tracemalloc_trajectory_linear                            |
|          | 12.1±0M                    | 12.1±0M                   |       1 | trajectory.TrajectoryInterpolation.tracemalloc_trajectory_nearest                           |

Generated by GHA run 12866852786

pp-mo added a commit that referenced this pull request Jan 20, 2025
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: Done
Development

Successfully merging this pull request may close these issues.

4 participants