Spark's vs. jQuery's content functions

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 type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js'></script>
<script type='text/javascript' src='http://sparkjs.co.uk/assets/downloads/Spark-v2.0.0.js'></script>
<p></p>

Test runner

Ready to run.

Testing in
TestOps/sec
Spark.html
Spark('p').html('CONTENT SET');
ready
jQuery.html
jQuery('p').html('CONTENT SET');
ready
Spark.text
Spark('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