past test

JavaScript performance comparison

Test case created by romis

Preparation code

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
 
<script>
Benchmark.prototype.setup = function() {
    var body = $('body'),
    values = [];
   
    for (var i = 0; i < 1000; i++) {
     values.push((i/100+56)/9);
    }
};
</script>

Preparation code output

Test runner

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

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
test 1
for (var i = 0; i < values.length; i++) {
 body.append('<p>' + values[i] + '</p>');
}
pending…
test 2
s = '';

for (var i = 0; i < values.length; i++) {
 s += '<p>' + values[i] + '</p>';
}

body.append(s);
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