has.js Suite

JavaScript performance comparison

Test case created by John-David Dalton and last updated

Info

Tests the upfront cost of the entire has.js feature test suite (177 tests), which would never be done in real world usage.

Preparation code

<script src="//dl.dropbox.com/u/513327/ft_cost/has.js"></script>
<script src="//dl.dropbox.com/u/513327/ft_cost/has/bugs.js"></script>
<script src="//dl.dropbox.com/u/513327/ft_cost/has/array.js"></script>
<script src="//dl.dropbox.com/u/513327/ft_cost/has/graphics.js"></script>
<script src="//dl.dropbox.com/u/513327/ft_cost/has/css.js"></script>
<script src="//dl.dropbox.com/u/513327/ft_cost/has/dates.js"></script>
<script src="//dl.dropbox.com/u/513327/ft_cost/has/dom.js"></script>
<script src="//dl.dropbox.com/u/513327/ft_cost/has/features.js"></script>
<script src="//dl.dropbox.com/u/513327/ft_cost/has/form.js"></script>
<script src="//dl.dropbox.com/u/513327/ft_cost/has/function.js"></script>
<script src="//dl.dropbox.com/u/513327/ft_cost/has/json.js"></script>
<script src="//dl.dropbox.com/u/513327/ft_cost/has/object.js"></script>
<script src="//dl.dropbox.com/u/513327/ft_cost/has/strings.js"></script>
<script src="//dl.dropbox.com/u/513327/ft_cost/has/events.js"></script>
<script src="//dl.dropbox.com/u/513327/ft_cost/has/script.js"></script>
<script src="//dl.dropbox.com/u/513327/ft_cost/has/audio.js"></script>
<script src="//dl.dropbox.com/u/513327/ft_cost/has/video.js"></script>
<script>
  has._tests2 = Benchmark.extend({}, has._tests);
  Benchmark.prototype.MAX_TIME_ELAPSED = 15;
 
  ui.benchmarks[0].fn = has.all;
  ui.benchmarks[0].setup = function() {
   Benchmark.extend(has._tests, has._tests2);
  };
</script>

Preparation code output

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
has.js Suite
/* set in preparation code */
pending…

Compare results of other browsers

Revisions

You can edit these tests or add even more tests to this page by appending /edit to the URL. Here’s a list of current revisions for this page:

0 comments

Add a comment