Image Rendering Test

不打扰是莪最后的温柔 提交于 2019-12-12 17:19:04

问题


I am benchmarking a custom brower and want to benchmark the rendering speeds of different types of images (gif, jpg, png) of the same file size to see which of the image formats this browser renders the fastest.

My process was just to have a simple seperate HTML page for each type of image and just use a Javascript counter before it is rendered and and after to measure the browser's rendering speed of that specific image.

Any thoughts on this process? Any thoughts on how to improve it?


回答1:


Well, it's difficult to get meaningful generic results that way. You're measuring a combination of loading html, javascript and an image. Depending on where you're loading them from, you're also measuring the disk or network cache. The image rendering code is going to have some startup time, is dependent on a memory allocator and possibly garbage collection. Then there is image size, color depth, amount of compresion, number of images on the page, scaling, the influence of style sheets, the resolution of the javascript timer. Oh, and are you rendering to a visible part of a window, in a layer, or off-screen.

But don't worry, you'll be able to come up with a usable test. For your specific situation. Or the differences might even be very clear.




回答2:


The Firefox Firebug plugin YSlow is pretty good



来源:https://stackoverflow.com/questions/889554/image-rendering-test

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!