mirror of
https://github.com/ceph/s3-tests.git
synced 2024-12-25 13:56:37 +00:00
Make readwrite test put objects one by one, so it can report keys.
This commit is contained in:
parent
9e707b897d
commit
deb8be9957
1 changed files with 11 additions and 2 deletions
|
@ -53,10 +53,19 @@ def writer(bucket, name, queue, file_size=1, file_stddev=0, file_name_seed=None)
|
|||
seed=r,
|
||||
)
|
||||
|
||||
names = realistic.names(
|
||||
mean=15,
|
||||
stddev=4,
|
||||
seed=r2,
|
||||
)
|
||||
|
||||
while True:
|
||||
fp = next(files)
|
||||
objname = next(names)
|
||||
key = bucket.new_key(objname)
|
||||
|
||||
start = time.time()
|
||||
generate_objects.upload_objects(bucket, [fp], r2)
|
||||
key.set_contents_from_file(fp)
|
||||
end = time.time()
|
||||
elapsed = end - start
|
||||
|
||||
|
@ -64,7 +73,7 @@ def writer(bucket, name, queue, file_size=1, file_stddev=0, file_name_seed=None)
|
|||
dict(
|
||||
type='w',
|
||||
bucket=bucket.name,
|
||||
#TODO this current combines stats for multiple files? key=key.name,
|
||||
key=key.name,
|
||||
#TODO chunks
|
||||
start=start,
|
||||
duration=int(round(elapsed * NANOSECOND)),
|
||||
|
|
Loading…
Reference in a new issue