Stackoverflow - 8103451

JavaScript performance comparison

Revision 3 of this test case created

Info

http://stackoverflow.com/q/8380204/918414

Preparation code

 
<script>
Benchmark.prototype.setup = function() {
    var myScript = document.createElement("script");
    document.body.appendChild(myScript);
    myScript.setAttribute("type","text/javascript");
};
</script>

Test runner

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

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
eval
var x = 1;
pending…
script
myScript.text = 'var x = 1;';
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