Dear WebP Project Team,I am exploring the performance of WebP decoding in comparison to JPEG decoding for an image processing project. During my comparative analysis, I've noticed that decoding JPEG images has been consistently faster compared to decoding WebP images, despite the renowned efficiency of the WebP format.
Below are the average results from my tests:JPG Texture Load Time: 3 msWebP Texture Load Time: 8 msTo furnish a precise understanding of the testing environment and methods used, I have attached a minimal test project with this email. The project is structured using CMake and utilizes the latest versions of the libjpeg-turbo and libwebp libraries for decoding.I have adhered to the recommended practices for decoding WebP images and optimized the settings to the best of my knowledge. However, the slower decoding time for WebP images as opposed to JPEG images is unexpected. I am keen on understanding if there's any potential for optimization or if there might be some settings that I may have overlooked.I would be grateful if your team could review the attached project and provide any insights or recommendations that could aid in enhancing the decoding time for WebP images in my project.I value your time and expertise on this matter and am looking forward to your valuable feedback. I am open to providing any additional information you may require for a thorough analysis.Thank you.
I'm seeing a webp download noticeably slower than the equivalent jpg it's generated from.The jpg is 314kb, the webp is 316kb, and visibly loads from top to bottom over 250ms. The jpg loads in 50ms and appears instantly to the user.I'm seeing this on every image I try - even though the webp is smaller by 5-15kb, it loads visibly slower to the user, appearing blank and then loading down the page incrementally over about 200ms, whereas the slightly larger jpg loads instantly. Considering people generally have better connection speeds these days, I'm thinking that we're actually making performance of the website worse by using webp, increasing the delay on loading by shifting it onto the CPU of the device - particularly when people are often using phones with fast connections.
To view this discussion visit https://groups.google.com/a/webmproject.org/d/msgid/webp-discuss/81bfd82d-460a-42d7-8f93-0059d4590ea9n%40webmproject.org.
Hi,On Tue, Feb 18, 2025 at 4:02 AM 'Rob Mason' via WebP Discussion <webp-d...@webmproject.org> wrote:I'm seeing a webp download noticeably slower than the equivalent jpg it's generated from.The jpg is 314kb, the webp is 316kb, and visibly loads from top to bottom over 250ms. The jpg loads in 50ms and appears instantly to the user.I'm seeing this on every image I try - even though the webp is smaller by 5-15kb, it loads visibly slower to the user, appearing blank and then loading down the page incrementally over about 200ms, whereas the slightly larger jpg loads instantly. Considering people generally have better connection speeds these days, I'm thinking that we're actually making performance of the website worse by using webp, increasing the delay on loading by shifting it onto the CPU of the device - particularly when people are often using phones with fast connections.The incremental rendering you're seeing is indicative of a slow connection rather than a fast one. Chrome will update the image as data becomes available, but on a connection with reasonable throughput it usually renders the image all at once. The transfer itself can be affected by server side and local caching as well. Locally in Chrome, caching can be disabled in the developer tools and the transfer times will be given in the network tab.