CSS color names vs hex codes (v5)

Revision 5 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
color names
$('#1').css('background-color','steelblue');
ready
hex codes
$('#1').css('background-color','#4863A0');
ready

Revisions

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