FastJs vs Jquery CSS method (v8)

Revision 8 of this benchmark created by Heavensrevenge on


Description

FastJs claimed to be 2x faster than JQuery, for example its f.css-$.css comparison shows that FastJs can complete 373,725 times compare to 90863 times.
Fastjs's selectors are kind of backwards vs everything else so just get use to: f.function(selector-list)

Preparation HTML

<script src="//code.jquery.com/jquery-git2.js"></script>
<script src="http://fastjs.net/downloads/fast-1.0.3.min.js"></script>
<div id="test">
</div>

Test runner

Ready to run.

Testing in
TestOps/sec
FastJs
f.css("#test", "color", "#fff");
ready
JQuery 2.0
$("#test").css("color","#fff");
ready

Revisions

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