BG Image vs BG position (v2)

Revision 2 of this benchmark created on


Preparation HTML

<style>
#sprite {
 background: url('http://www.google.com/images/nav_logo95.png') 0 0 transparent no-repeat;
}
</style>
<div id="sprite"></div>

Setup

sprite = document.getElementById('sprite')

Test runner

Ready to run.

Testing in
TestOps/sec
Background Image
sprite.style.backgroundImage = "http://www.google.com/images/nav_logo95.png"
ready
Background Position
sprite.style.backgroundPosition = "0 0"
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.