a2.addRows([[elapsed, p99]]);
        data3.addRows([[elapsed, p999]]);
        data4.addRows([[elapsed, max]]);
      }

      return [[data1, "Mean, Median, 95th Percentile Latencies"], 
              [data2, "99th Percentile Latencies"], 
              [data3, "99.9th Percentile Latencies"], 
              [data4, "Max Latencies"]];
    }

    function toThroughputTable(arrayData) {
      var data = new google.visualization.DataTable();

      data.addColumn('number','Elapsed');
      data.addColumn('num