FastJs vs JQuery (f.css) (v2)

Revision 2 of this benchmark created by Otto Lopez Valerio on


Description

Test out FastJs claim on its performance against jQuery. Based on the performance result shown in FastJs website, FastJs outperform JQuery by twice as much.

The test case will be based on the latest FastJS and JQuery (2.0) script.

Preparation HTML

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="http://fastjs.net/js/fast.min.js"></script>
<div id="test">Want to use HSSF and XSSF read and write spreadsheets in a hurry? This guide is for you. If you're after more in-depth coverage of the HSSF and XSSF user-APIs, please consult the HOWTO guide as it contains actual descriptions of how to use this stuff.</div>

Setup

var ft = f("#test");
    var css = f.css;

Test runner

Ready to run.

Testing in
TestOps/sec
FastJS (1 method)
css(ft, "color", "navy");
ready
JQuery (1 method)
$("#test").css("color","navy");
ready
FastJs (call method 3 times)
css(ft, "color","green");
css(ft, "font-weight","bold");
css(ft, "font-size","24px");
ready
JQuery (call method 3 times)
$("#test").css("color","green").css("font-weight","bold").css("font-size","24px");
ready

Revisions

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

  • Revision 2: published by Otto Lopez Valerio on