Iteration speed

JavaScript performance comparison

Test case created by juloo

Info

Do (ops/sec) * length

Preparation code

<script>
var h = 0;
</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
length = 10
for (var i = 0; i < 10; i++) {
  h = i;
}
pending…
length = 500
for (var i = 0; i < 500; i++) {
  h = i;
}
pending…
length = 5000
for (var i = 0; i < 5000; i++) {
  h = i;
}
pending…
length = 25000
for (var i = 0; i < 25000; i++) {
  h = i;
}
pending…
length = 50000
for (var i = 0; i < 50000; i++) {
  h = 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