has.js Suite

JavaScript performance comparison

Test case created by John-David Dalton and last updated


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

(function() {
  var base = '//dl.dropbox.com/u/513327/allyoucanleet/post/10/test/js';
  var scripts = 'array audio bugs css dates dom events features form function graphics json object script strings video';

  Benchmark.options.maxTime = 15;

      '<script src="base/has.js"><\/script>' +
      scripts.replace(/\w+/g, '<script src="base/has/$&.js"><\/script>')
    ).replace(/base/g, base)

  window.onload = function() {
    var bench = ui.benchmarks[0];
    has._testsCopy = Benchmark.extend({}, has._tests);
    bench.fn = has.all;
      bench.setup = function() {
      Benchmark.extend(has._tests, has._testsCopy);

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 */

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

Compare results of other browsers


Comment form temporarily disabled.

Add a comment