Improve benchmark test image - #9831
Conversation
Merging this PR will not alter performance
Performance Changes
Comparing Footnotes
|
As predicted! But no, code performance didn't change, just measurements for the more accurate... |
|
Good idea. Do you think making the image non-square would have any benefit? |
|
@hugovk Good point, it might. I'm a little afk right now (I'll let you know it's quite warm in Dubrovnik). And maybe also NPOT (non-power-of-2)... Honestly some tests (resizing, etc.) could benefit from running on NPOT and non-NPOT? |
|
Yes, sounds good. |
The old image was (e.g. in the case of palette optimization) pessimal in some cases.
69f73df to
854990f
Compare
|
@hugovk Made it NPOT and non-square :) |
|
Thanks! |
The old image was highly channel-correlated, low-color, low-structure and non-representative of anything real. My bad in #9654 :)
The new image contains both low-energy, high-energy (full noise) and zero-energy segments.
If someone has an idea for an even better synthetic image, I'm all ears!
Let's see how the Codspeed numbers change - at least locally,
test_quantizeandtest_histogramgot a lot slower, because they actually need to do work 😄