while vs. for (v3)

Revision 3 of this benchmark created by lifesinger on


Test runner

Ready to run.

Testing in
TestOps/sec
while
var res = '',
    count = 10000;
while (count--) {
 res += 'a';
}
ready
for
for (var res = '', i = 0; i < 10000; i++) {
 res += 'a';
}
ready

Revisions

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