Commit 1435ca2
authored
fix: Rename throughput fields from mbps to mb_s for correctness (#113)
* fix: Rename throughput fields from mbps to mb_s for correctness
The throughput fields were named average_throughput_mbps and
peak_throughput_mbps, which conventionally means "megabits per second."
However, the calculation divides bytes_per_second by 1,000,000,
producing megabytes per second (MB/s). This rename corrects the
field names to match the actual unit.
Changes:
- Rename average_throughput_mbps → average_throughput_mb_s
- Rename peak_throughput_mbps → peak_throughput_mb_s
- Update doc comments from "megabits" to "megabytes per second (MB/s)"
- Remove workaround comments that acknowledged the mismatch
- Update JSON example in README.md
- All tests passing, clippy clean
Fixes: #112
BREAKING CHANGE: Serialized JSON field names changed from
*_mbps to *_mb_s. Downstream consumers must update accordingly.
AI-assisted-by: Claude Opus 4 (Cursor agent)
Made-with: Cursor
* fix: Use fully verbose throughput field names per review
Rename average_throughput_mb_s → average_throughput_megabytes_per_sec
and peak_throughput_mb_s → peak_throughput_megabytes_per_sec for
unambiguous field naming in serialized output.
AI-assisted-by: Claude Opus 4 (Cursor agent)
Made-with: Cursor1 parent 2bbcd52 commit 1435ca2
3 files changed
Lines changed: 35 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
658 | 658 | | |
659 | 659 | | |
660 | 660 | | |
661 | | - | |
| 661 | + | |
662 | 662 | | |
663 | 663 | | |
664 | 664 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
368 | 368 | | |
369 | 369 | | |
370 | 370 | | |
371 | | - | |
372 | | - | |
| 371 | + | |
| 372 | + | |
373 | 373 | | |
374 | | - | |
375 | | - | |
| 374 | + | |
| 375 | + | |
376 | 376 | | |
377 | 377 | | |
378 | 378 | | |
| |||
1133 | 1133 | | |
1134 | 1134 | | |
1135 | 1135 | | |
1136 | | - | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
1137 | 1139 | | |
1138 | 1140 | | |
1139 | 1141 | | |
| |||
1163 | 1165 | | |
1164 | 1166 | | |
1165 | 1167 | | |
1166 | | - | |
| 1168 | + | |
1167 | 1169 | | |
1168 | 1170 | | |
1169 | 1171 | | |
1170 | 1172 | | |
1171 | 1173 | | |
1172 | 1174 | | |
1173 | 1175 | | |
1174 | | - | |
1175 | | - | |
| 1176 | + | |
| 1177 | + | |
1176 | 1178 | | |
1177 | 1179 | | |
1178 | 1180 | | |
| |||
1380 | 1382 | | |
1381 | 1383 | | |
1382 | 1384 | | |
1383 | | - | |
1384 | | - | |
1385 | 1385 | | |
1386 | 1386 | | |
1387 | | - | |
| 1387 | + | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
1388 | 1391 | | |
1389 | 1392 | | |
1390 | 1393 | | |
| |||
1525 | 1528 | | |
1526 | 1529 | | |
1527 | 1530 | | |
1528 | | - | |
1529 | | - | |
| 1531 | + | |
| 1532 | + | |
1530 | 1533 | | |
1531 | 1534 | | |
1532 | 1535 | | |
| |||
1691 | 1694 | | |
1692 | 1695 | | |
1693 | 1696 | | |
1694 | | - | |
| 1697 | + | |
1695 | 1698 | | |
1696 | | - | |
| 1699 | + | |
1697 | 1700 | | |
1698 | 1701 | | |
1699 | 1702 | | |
| |||
1705 | 1708 | | |
1706 | 1709 | | |
1707 | 1710 | | |
1708 | | - | |
1709 | | - | |
| 1711 | + | |
| 1712 | + | |
1710 | 1713 | | |
1711 | 1714 | | |
1712 | 1715 | | |
| |||
1851 | 1854 | | |
1852 | 1855 | | |
1853 | 1856 | | |
1854 | | - | |
1855 | | - | |
| 1857 | + | |
| 1858 | + | |
1856 | 1859 | | |
1857 | 1860 | | |
1858 | 1861 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1005 | 1005 | | |
1006 | 1006 | | |
1007 | 1007 | | |
1008 | | - | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
1009 | 1011 | | |
1010 | 1012 | | |
1011 | 1013 | | |
| |||
1035 | 1037 | | |
1036 | 1038 | | |
1037 | 1039 | | |
1038 | | - | |
| 1040 | + | |
1039 | 1041 | | |
1040 | 1042 | | |
1041 | 1043 | | |
1042 | 1044 | | |
1043 | 1045 | | |
1044 | 1046 | | |
1045 | 1047 | | |
1046 | | - | |
1047 | | - | |
| 1048 | + | |
| 1049 | + | |
1048 | 1050 | | |
1049 | 1051 | | |
1050 | 1052 | | |
| |||
1261 | 1263 | | |
1262 | 1264 | | |
1263 | 1265 | | |
1264 | | - | |
1265 | | - | |
1266 | 1266 | | |
1267 | 1267 | | |
1268 | | - | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
1269 | 1272 | | |
1270 | 1273 | | |
1271 | 1274 | | |
| |||
2191 | 2194 | | |
2192 | 2195 | | |
2193 | 2196 | | |
2194 | | - | |
| 2197 | + | |
2195 | 2198 | | |
2196 | 2199 | | |
2197 | 2200 | | |
| |||
2206 | 2209 | | |
2207 | 2210 | | |
2208 | 2211 | | |
2209 | | - | |
| 2212 | + | |
2210 | 2213 | | |
2211 | 2214 | | |
2212 | 2215 | | |
| |||
0 commit comments