ES5-DOM-SHIM-test

JavaScript performance comparison

Revision 2 of this test case created by termi_uc

Preparation code

<script src="//static.onlf.ru/js/a.js"></script>

<script>
document.addEventListener("custom", function(e) {
     
    })
</script>

<a></a>

<b></b>
<b></b>

<i></i>
<i></i>
<i></i>

<abbr></abbr>
<abbr></abbr>
<abbr></abbr>
<abbr></abbr>

<br></br>
<br></br>
<br></br>
<br></br>
<br></br>

<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>

<label></label>
<label></label>
<label></label>
<label></label>
<label></label>
<label></label>
<label></label>
<label></label>
<label></label>
<label></label>
<label></label>
<label></label>
<label></label>
<label></label>
<label></label>
<label></label>
<label></label>
<label></label>
<label></label>
<label></label>
<script>
</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
test new CustomEvent()
document.dispatchEvent(new CustomEvent("custom", {bubbles : true}));
pending…
test document.createEvent("CustomEvent")
var ev = document.createEvent("CustomEvent");
ev.initCustomEvent("custom", true, false, 0)
document.dispatchEvent(ev);
 
pending…
test document.createEvent("Event")
var ev = document.createEvent("Event");
ev.initEvent("custom", true, false)
ev.data = 0
document.dispatchEvent(ev);
 
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