213213213

JavaScript performance comparison

Test case created by

Preparation code

<script>
function addDoubleOpt(a, b, c) {
    return a + b + c;
}

function addDouble(a, b, c) {
    return a + b + c;
    // Disable optimization for this function
    with({});
}
</script>
    

Test runner

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

Java applet disabled.

Testing in CCBot 2.0.0 / Other 0.0.0
Test Ops/sec
unopt
if (addDouble(0.1, 0.2, 0.3) !== 0.6000000000000001) die();
pending…
opt
if (addDoubleOpt(0.1, 0.2, 0.3) !== 0.6000000000000001) die();
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.

0 Comments