Various info that doesn't fit anywhere else
In order to evaluate how we are doing (performance wise), we very regularly run benchmarks, profilers, etc. Sometimes, it is also good to compare how versions years apart do.
between version svn450 and svn988
The version 450 still has a feature set that allows to compare enough things related to resampling and reaccumulation. It still does not support arbitrary parameters (a feature that proved quite costly) and the resampling/reaccumulation code was quite broken (making some assumptions that helped the performances but made it very dependant on the initial sampling rate). Enough filters were implemented, but the most time consuming filters were not available in this version.
Please also keep in mind that a lot of bugs have been fixed between these different versions, lots of extra safety checks and warning added, lot of features and flexibility added, that all added some extra computational cost. Therefore some versions in between were significantly slower than both.
Several workloads have been compared: a single SMET file for one year of data, representing a typical, easy SNOWPACK simulation. The same input, but using a WINDOW_SIZE such that ten days gaps could be re-interpolated, as usually set up for operational purposes. 10 SMET files for one year of data, representing a very simplistic Alpine3D simulation.
For the IOUtils::seek optimization
Since most of the time the sampling rate is constant, we can reduce the search window around a predefined position. The 12 years WFJ data set has been used with data_converter (but not writing the data out) to benchmark the effect of this optimization (average of 10 runs with one run of preconditioning).
The version 1086 has been profiled by putting timers in IOManager, running meteo_reading on one example station (one data point) as well as converting 2 months of an example station (multiple data points). The filters are two steps min_max filters (hard followed by soft filter), the ILWR is multiplied by 0 and added -999, the resampling is linear except VW that has a nearest neighbor and HNW that has an hourly accumulation and the only data generator is an Unsworth generator on ILWR.
The influence of resampling multiple data points can easily be seen in the increase of the data processing load when converting 2 months of data. The profiling has been performed on an 8 years old Pentium M 1.2GHz laptop with 1.5Go ram.
|Workload||one data point||%||multiple data points||%|
The same version has been profiled on a Core2 2.6GHz desktop, reading 12 years of WFJ hourly data (but not writing it out), read on an hourly base (thus not requiring any resampling) or an half-hourly base (requiring resampling for all parameters).