e8e92409 by David LaPalomento

Fix throughput calc and units

Forgot that time was being measured in ms so the throughput values were off by 1000. Changed reporting unit to MB/s and fixed the precision to 3 digits so it's not overwhelming.
1 parent 45cb15c6
......@@ -31,7 +31,7 @@
</form>
<table>
<thead>
<th>Iterations</th><th>Time</th><th>kB / second</th>
<th>Iterations</th><th>Time</th><th>MB/second</th>
</thead>
<tbody class="results"></tbody>
</table>
......@@ -50,7 +50,7 @@ var
countCell.innerText = count;
elapsedCell.innerText = elapsed;
throughputCell.innerText = ((bcSegment.byteLength * count) / elapsed) / 1024;
throughputCell.innerText = (((bcSegment.byteLength * count * 1000) / elapsed) / (Math.pow(2, 20))).toFixed(3);
row.appendChild(countCell);
row.appendChild(elapsedCell);
row.appendChild(throughputCell);
......