Spark's vs. jQuery's content functions (v4)

Revision 4 of this benchmark created by Oliver Caldwell on


Description

A comparison between Spark (sparkjs.co.uk) and jQuery's (jquery.com) content manipulation functions.

Preparation HTML

<script src='http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js'></script>
<script src='https://github.com/SparkJS/Package/raw/v3.0.0/spark.min.js'></script>
<p></p>

Test runner

Ready to run.

Testing in
TestOps/sec
Spark.html
Spark.find('p').html('CONTENT SET');
ready
jQuery.html
jQuery('p').html('CONTENT SET');
ready
Spark.text
Spark.find('p').text('CONTENT SET');
ready
jQuery.text
jQuery('p').text('CONTENT SET');
ready

Revisions

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

  • Revision 1: published by Oliver Caldwell on
  • Revision 2: published by Oliver Caldwell on
  • Revision 3: published by Oliver Caldwell on
  • Revision 4: published by Oliver Caldwell on