Multiline vs Inline function

JavaScript performance comparison

Test case created by Erick RIbeiro

Preparation code

<span id="msc">
  Span
</span>

Preparation code output

Span

Test runner

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

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
CSS
window.onload=function(){document.getElementById('msc').style.display="none";};
pending…
Inline
window.onload=function(){document.getElementById('msc').parentNode.removeChild(this.firtsChild);};
pending…
CSS 2
window.onload=function(){document.getElementById('msc').style.display="none";};
pending…
Inline 2
window.onload=function(){document.getElementById('msc').parentNode.removeChild(this.firtsChild);};
pending…

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

Compare results of other browsers

0 comments

Add a comment