mirror of
https://github.com/ceph/s3-tests.git
synced 2024-11-25 03:47:22 +00:00
use time.time() instead of time.clock()
We want to measure actual time, not cpu time.
This commit is contained in:
parent
3d13883f62
commit
c312832c70
1 changed files with 4 additions and 4 deletions
|
@ -53,9 +53,9 @@ def reader(seconds, bucket, name=None, queue=None):
|
|||
count = 0
|
||||
for key in bucket.list():
|
||||
fp = realistic.FileVerifier()
|
||||
start = time.clock()
|
||||
start = time.time()
|
||||
key.get_contents_to_file(fp)
|
||||
end = time.clock()
|
||||
end = time.time()
|
||||
elapsed = end - start
|
||||
if queue:
|
||||
queue.put(
|
||||
|
@ -86,9 +86,9 @@ def writer(seconds, bucket, name=None, queue=None, quantity=1, file_size=1, file
|
|||
seed=r,
|
||||
)
|
||||
|
||||
start = time.clock()
|
||||
start = time.time()
|
||||
generate_objects.upload_objects(bucket, files, r2)
|
||||
end = time.clock()
|
||||
end = time.time()
|
||||
elapsed = end - start
|
||||
|
||||
if queue:
|
||||
|
|
Loading…
Reference in a new issue