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 @@ ...@@ -31,7 +31,7 @@
31 </form> 31 </form>
32 <table> 32 <table>
33 <thead> 33 <thead>
34 <th>Iterations</th><th>Time</th><th>kB / second</th> 34 <th>Iterations</th><th>Time</th><th>MB/second</th>
35 </thead> 35 </thead>
36 <tbody class="results"></tbody> 36 <tbody class="results"></tbody>
37 </table> 37 </table>
...@@ -50,7 +50,7 @@ var ...@@ -50,7 +50,7 @@ var
50 50
51 countCell.innerText = count; 51 countCell.innerText = count;
52 elapsedCell.innerText = elapsed; 52 elapsedCell.innerText = elapsed;
53 throughputCell.innerText = ((bcSegment.byteLength * count) / elapsed) / 1024; 53 throughputCell.innerText = (((bcSegment.byteLength * count * 1000) / elapsed) / (Math.pow(2, 20))).toFixed(3);
54 row.appendChild(countCell); 54 row.appendChild(countCell);
55 row.appendChild(elapsedCell); 55 row.appendChild(elapsedCell);
56 row.appendChild(throughputCell); 56 row.appendChild(throughputCell);
......