aba1

JavaScript performance comparison

Test case created

Preparation code

 
<script>
Benchmark.prototype.setup = function() {
    var lt = "pageName:'PAGENAME',channel:'CHANNEL',eVar33:'a value',prop21:'first',";
};
</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
replace
var x = 'return {<<FUNCTION>>}';
lt = x.replace('<<FUNCTION>>', lt.slice(0, lt.lastIndexOf(',')));
var y = new Function(lt);
y();
pending…
concat
lt = 'return {' + lt.slice(0, lt.lastIndexOf(',')) + '}';
var y = new Function(lt);
y();
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