Float32Array

Benchmark created by FalsyValues-WR on


Description

I am trying to demonstrate that Float32Array is faster (but actually not in this browser)

Preparation HTML

<script>
  var length = 1000000,
      random = Math.random;
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
native Array
var a = new Array(length);
for (var i = 0; i < length; i++) a[i] = random();
ready
WebGL Array
var a = new Float32Array(length);
for (var i = 0; i < length; i++) a[i] = random();
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.