arrayconcatvsarraypushapply
JavaScript performance comparison
Preparation code
<script>
Benchmark.prototype.setup = function() {
var a = [1, 2, 3, 4, 5];
var b = [6, 7, 8, 9];
};
</script>
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
Test | Ops/sec | |
---|---|---|
concat
|
|
pending… |
push
|
|
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.
- Revision 1: published Craig Spence
- Revision 3: published
- Revision 4: published
- Revision 5: published
- Revision 6: published
0 Comments