mirror of
https://github.com/ceph/s3-tests.git
synced 2024-11-29 03:41:48 +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
|
count = 0
|
||||||
for key in bucket.list():
|
for key in bucket.list():
|
||||||
fp = realistic.FileVerifier()
|
fp = realistic.FileVerifier()
|
||||||
start = time.clock()
|
start = time.time()
|
||||||
key.get_contents_to_file(fp)
|
key.get_contents_to_file(fp)
|
||||||
end = time.clock()
|
end = time.time()
|
||||||
elapsed = end - start
|
elapsed = end - start
|
||||||
if queue:
|
if queue:
|
||||||
queue.put(
|
queue.put(
|
||||||
|
@ -86,9 +86,9 @@ def writer(seconds, bucket, name=None, queue=None, quantity=1, file_size=1, file
|
||||||
seed=r,
|
seed=r,
|
||||||
)
|
)
|
||||||
|
|
||||||
start = time.clock()
|
start = time.time()
|
||||||
generate_objects.upload_objects(bucket, files, r2)
|
generate_objects.upload_objects(bucket, files, r2)
|
||||||
end = time.clock()
|
end = time.time()
|
||||||
elapsed = end - start
|
elapsed = end - start
|
||||||
|
|
||||||
if queue:
|
if queue:
|
||||||
|
|
Loading…
Reference in a new issue