Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Currently, negative benchmark values are shown: @ira$ send okeanos 34141 start : 1647613816.868339 close : 1647613826.868524 done : 1647613826.874427 -1209148824 bytes in 10.006088 seconds -120841314.207910 bytes / seconds -966730513.663282 bits / seconds -966730.513663 kBit/s / seconds -966.730514 MBit/s / seconds With 10 Gbit/s, in 10 s seconds theoretically up to 12.5 GB could be transferred. But a 32-bit (signed) integer can at maximum store the number (2147483648 - 1), and the unsigned integer around 4.3 million, still too small. Therefore, use unsigned long to be able to store the number bytes without overflow for the foreseeable future. Now we have: @ira$ ./send okeanos 34141 start : 1647626064.313421 close : 1647626074.313503 done : 1647626074.317791 10534190976 bytes in 10.004370 seconds 1052958954.536867 bytes / seconds 8423671636.294939 bits / seconds 8423671.636295 kBit/s / seconds 8423.671636 MBit/s / seconds Resolves: mariux64/mariux64-issues#23
- Loading branch information