Permalink
Browse files

Rename rand_readwrite to readwrite.

Simpler, and all the benchmarks are pretty much as pseudorandom,
in the end; that's not a relevant characteristic. The mix of read
and write operations is.

Re-run ./bootstrap to get the s3tests-test-readwrite script
regenerated to refer to the new module name.
  • Loading branch information...
1 parent e17c56a commit 7a98a496e4164b6aebc784629aae72b7a1e349d5 Tommi Virtanen committed Jul 26, 2011
Showing with 7 additions and 7 deletions.
  1. +1 −1 config.yaml.SAMPLE
  2. +5 −5 s3tests/{rand_readwrite.py → readwrite.py}
  3. +1 −1 setup.py
View
@@ -17,7 +17,7 @@ file_generation:
## single bucket for a set duration.
## Note: the readwrite tool does not need the s3.alt connection info.
## only s3.main is used.
-rand_readwrite:
+readwrite:
## The number of reader and writer worker threads. This sets how many
## files will be read and written concurrently.
readers: 2
@@ -134,15 +134,15 @@ def main():
common.setup()
# verify all required config items are present
- if 'rand_readwrite' not in common.config:
- raise RuntimeError('rand_readwrite section not found in config')
- config = common.config.rand_readwrite
+ if 'readwrite' not in common.config:
+ raise RuntimeError('readwrite section not found in config')
+ config = common.config.readwrite
for item in ['readers', 'writers', 'duration', 'files']:
if item not in config:
- raise RuntimeError("Missing rand_readwrite config item: {item}".format(item=item))
+ raise RuntimeError("Missing readwrite config item: {item}".format(item=item))
for item in ['num', 'size', 'stddev']:
if item not in config.files:
- raise RuntimeError("Missing rand_readwrite config item: files.{item}".format(item=item))
+ raise RuntimeError("Missing readwrite config item: files.{item}".format(item=item))
# setup bucket and other objects
bucket = common.get_new_bucket()
View
@@ -22,7 +22,7 @@
entry_points={
'console_scripts': [
's3tests-generate-objects = s3tests.generate_objects:main',
- 's3tests-test-readwrite = s3tests.rand_readwrite:main',
+ 's3tests-test-readwrite = s3tests.readwrite:main',
's3tests-test-roundtrip = s3tests.roundtrip:main',
],
},

0 comments on commit 7a98a49

Please sign in to comment.