test-mangling

JavaScript performance comparison

Revision 2 of this test case created

Info

Tests whether jsPerf correctly mangles different runs with different UID

Preparation code

<script>
var SOURCES = { nop: [], nopnop: [] };
console.log(SOURCES);
</script>
<script>
Benchmark.prototype.setup = function() {
    var src = arguments.callee.toString();
    var sources = SOURCES[/(nop)(nop)/.test(src) ? ("nop" + "nop") : "nop"];
    sources[src] = (sources[src] | 0) + 1;
   
};
</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
nop
var nop;
pending…
other nop
var nopnop;
pending…

Compare results of other browsers

Revisions

You can edit these tests or add even more tests to this page by appending /edit to the URL. Here’s a list of current revisions for this page:

0 comments

Add a comment