Inc vs Dec 2

JavaScript performance comparison

Test case created

Info

Attempting to confirm an assertion that there is a difference.

Test runner

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

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
Post-Inc
for (var arr = [], i = 0; i < 100; i++) arr.push(i);
pending…
Pre-Inc
for (var arr = [], i = 0; i < 100; ++i) arr.push(i);
pending…
Post-Dec
for (var arr = [], i = 100; i > 0; i--) arr.push(i);
pending…
Pre-Dec
for (var arr = [], i = 100; i > 0; --i) arr.push(i);
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