assign_spaces_in_array
JavaScript performance comparison
Preparation code
<script>
Benchmark.prototype.setup = function() {
var aArray = [];
};
Benchmark.prototype.teardown = function() {
if (aArray.length !== 10) {
throw new Error('no tamañó');
}
};
</script>
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
new |
|
pending… |
assigned |
|
pending… |
length |
|
pending… |
push only one |
|
pending… |
push one per each |
|
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:
- Revision 1: published by Tomas Corral
- Revision 2: published by Tomas Corral
0 comments