How to properly benchmark/profile to disambiguate IO/function call overhead #747
-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 10 replies
-
@AndrewAnnex could you share the files you're using? I usually use https://github.com/developmentseed/tilebench?tab=readme-ov-file#api to benchmark the timing of rio-tiler/rio_tiler/io/base.py Lines 199 to 204 in cd039d3
Interesting, again is the COG and the TMS have the same CRS, we won't use WarpedVRT, and boundless would depends if the windows is crossing the dataset bounds Lines 176 to 189 in 09ed5c3 Again, if you can share both TMS and COG and also the code you're using it would be useful |
Beta Was this translation helpful? Give feedback.
-
replacing all crs equality or inequality checks with comparing the
What probably makes sense is to add a benchmark to rio-tiler that exhibits this issue to start, and then wait for a newer rasterio (which wouldn't need any changes here) |
Beta Was this translation helpful? Give feedback.
-
@AndrewAnnex It seems that the real improvement will be with the At the same time, I'm about to release a new major version of rio-tiler and I don't want to wait on rasterio releases. As soon as rasterio 1.5 is released we will adapt the |
Beta Was this translation helpful? Give feedback.
we do have 2 benchmark in place
tile()
method for all the datetype/nodata-mask-alpha combinationI'm not quite sure we need another set of benchmark, I believe the changes in rasterio will be reflected in the current benchmark https://cogeotiff.github.io/rio-tiler/advanced/benchmark.html