Array vs Float64 Typed Array

Edit on GitHub

Setup

Tests

  • Array

    var a = [];
    for(let i=0;i<100000;i++){
       a[i] = Math.random();
    }
  • Float64 Typed Array

    var a = new Float64Array(100000);
    for(let i=0;i<100000;i++){
       a[i] = Math.random();
    }