Skip to content

Commit

Permalink
Update test_speed.py
Browse files Browse the repository at this point in the history
Use Mb/s
  • Loading branch information
sergey-dryabzhinsky authored Jan 19, 2025
1 parent b077aaa commit 76ac6fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_speed.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def test_compression_speed(self):
cdata = zstd.compress(tDATA)
sum+=l

log.info("Compression speed average =%r kb/sec" % (1.0*sum/1024/sec,))
log.info("Compression speed average =%r Mb/sec" % (1.0*sum//10241024/sec,))

def test_decompression_speed(self):
log.info("\nWait 60 seconds...")
Expand All @@ -32,7 +32,7 @@ def test_decompression_speed(self):
data = zstd.decompress(cdata)
sum+=l

log.info("Decompression speed average =%r kb/sec" % (1.0*sum/1024/sec,))
log.info("Decompression speed average =%r Mb/sec" % (1.0*sum/1024/1024/sec,))

if __name__ == '__main__':
unittest.main()
Expand Down

0 comments on commit 76ac6fd

Please sign in to comment.