Typed Arrays: set vs. indices

JavaScript performance comparison

Revision 5 of this test case created

Preparation code

 
<script>
Benchmark.prototype.setup = function() {
    var m44 = new Uint8Array(28);
    var dm44 = new Uint8Array(28);
   
   
};
</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
set
dm44.set(m44);
 
pending…
loop
for (var i = 0; i < 28; ++i)
    dm44[i] = m44[i];
 
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