CSS 3 hex codes vs 6 hex codes (v6)

Revision 6 of this benchmark created on


Preparation HTML

<div id="1"></div>
<div id="2"></div>
<div id="3"></div><script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>

Test runner

Ready to run.

Testing in
TestOps/sec
3 hex codes
$('#1').css('background-color','#F00');
$('#2').css('background-color','#0F0');
$('#3').css('background-color','#00F');
ready
6 hex codes
$('#1').css('background-color','ff0000');
$('#2').css('background-color','00ff00');
$('#3').css('background-color','0000ff');
ready

Revisions

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