Multi filter vs combined
JavaScript performance comparison
Preparation code
<script>
Benchmark.prototype.setup = function() {
const numbers = new Array(256);
for (let i = 0; i < 256; ++i) {
numbers[i] = i;
}
const manyNumbers = new Array(2048);
for (let i = 0; i < 2048; ++i) {
numbers[i] = i;
}
};
</script>
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
Test | Ops/sec | |
---|---|---|
Combined with push large
|
|
pending… |
Two filters large
|
|
pending… |
Two filters
|
|
pending… |
Combined with push
|
|
pending… |
You can edit these tests or add even more tests to this page by appending /edit
to the URL.
0 Comments