functional wrappers vs loops
JavaScript performance comparison
Preparation code
<script>
Benchmark.prototype.setup = function() {
var buffers = [], i, j, b;
for(i = 0; i < 300; i++)
{
b=[];
for(j=0;j<i%17;j++) b.push(j);
buffers.push(b);
}
};
</script>
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
basic loop |
|
pending… |
functional wrappers |
|
pending… |
You can edit these tests or add even more tests to this page by appending /edit to the URL.
0 comments