FastJs 1.0.3 vs Zepto CSS method (v5)

Revision 5 of this benchmark created on


Description

FastJs vs jQuery Seleectors

Preparation HTML

<script src="http://fastjs.net/downloads/fast-1.0.3.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="http://zeptojs.com/zepto.min.js"></script>
<script>
var Bones = {
getById : function (root, id) {
  return root.getElementById(id);
}
}
</script>
<div id="test"></div>

Test runner

Ready to run.

Testing in
TestOps/sec
FastJs 1.0.3 Cached Selector
var ft = f("#test");
f.css(ft, "color", "#fff");
ready
jQuery 2.0.3 Cached Selector
var jt = jQuery("#test");
jt.css("color", "#fff");
ready
Zepto Cached Selector
var zp = Zepto("#test");
zp.css("color", "#fff");
ready
Vanilla
var v = document.getElementById("test");
v.style = "color: #fff;";
ready
Bones
var b = Bones.getById(document, "test");
b.style = "color: #fff;";
ready

Revisions

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