Test

JavaScript performance comparison

Test case created

Info

my check

Preparation code

<h3>hiiii</h3><script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
 
<script>
Benchmark.prototype.setup = function() {
    var a = 0;
    var b = 0;
    var c = 1000;
    var d = 1000;
    var f = [1, 2, 3, 4, 5];
};
</script>

Preparation code output

hiiii

Test runner

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

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
For
for (a = 0; a < f.length; a++)
{
console.log (f[a]);
}
pending…
Foreach
for(var obj in f)
{
console.log(obj);
}
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