Skip to content

Commit

Permalink
Update test_speed.py
Browse files Browse the repository at this point in the history
Update test
  • Loading branch information
sergey-dryabzhinsky authored Jan 19, 2025
1 parent 2d91e70 commit cb24920
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/test_speed.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
# Tests

from tests.base import BaseTestZSTD,tDATA,log,zstd
import time
from time import time

class TestZstdSpeed(BaseTestZSTD):

def test_system_info(self):
log.info("Bundled libzstd uses assembler? :")
log.info("Bundled libzstd uses threads? :")
(self)

def test_compressio_speed(self):
log.info("Compression speed average = b/sec")
log.info("Compression speed average. Wait 60 seconds...")
sec = 60
sum = 0
l=len(tDATA)
tbegin = time.time()
while time.time()-tbegin!=sec:
tbegin = time()
while time()-tbegin<sec:
cdata = zstd.compress(tDATA)
sum+=l

Expand Down

0 comments on commit cb24920

Please sign in to comment.