summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Merritt <sam@swiftstack.com>2013-01-22 18:41:08 -0800
committerSamuel Merritt <sam@swiftstack.com>2013-01-22 18:41:08 -0800
commit26f5e1bf95f72f42934095423fe7600741c331cd (patch)
tree26bd9f77cb3372482e9fb1265d766bdeae47254b
parentf3ec69e54709eb9c9f9e8bc28cc13bf1214c50ad (diff)
downloadswift-bench-26f5e1bf95f72f42934095423fe7600741c331cd.tar.gz
Add more command-line options to swift-bench.
These settings: 1. are already exposed via config file 2. were not exposed as command-line options, and 3. are things I wanted on the command line while benchmarking recently. I didn't include short options for --(get|put|delete)-concurrency since I couldn't think of good single-letter ones, and optparse won't take "-gc", "-pc", or "-dc". Change-Id: I0bd7c7ae2892244eed37b8c10c9357dc7e1190d3
-rwxr-xr-xbin/swift-bench12
1 files changed, 11 insertions, 1 deletions
diff --git a/bin/swift-bench b/bin/swift-bench
index b575b19..eddffb4 100755
--- a/bin/swift-bench
+++ b/bin/swift-bench
@@ -94,7 +94,15 @@ if __name__ == '__main__':
parser.add_option('-u', '--url', dest='url',
help='Storage URL')
parser.add_option('-c', '--concurrency', dest='concurrency',
- help='Number of concurrent connections to use')
+ help=('Number of concurrent connections to use. For '
+ 'finer-grained control, see --get-concurrency, '
+ '--put-concurrency, and --delete-concurrency.'))
+ parser.add_option('--get-concurrency', dest='get_concurrency',
+ help='Number of concurrent GET requests')
+ parser.add_option('--put-concurrency', dest='put_concurrency',
+ help='Number of concurrent PUT requests')
+ parser.add_option('--delete-concurrency', dest='delete_concurrency',
+ help='Number of concurrent DELETE requests')
parser.add_option('-s', '--object-size', dest='object_size',
help='Size of objects to PUT (in bytes)')
parser.add_option('-l', '--lower-object-size', dest='lower_object_size',
@@ -104,6 +112,8 @@ if __name__ == '__main__':
help='Number of objects to PUT')
parser.add_option('-g', '--num-gets', dest='num_gets',
help='Number of GET operations to perform')
+ parser.add_option('-C', '--num-containers', dest='num_containers',
+ help='Number of containers to distribute objects among')
parser.add_option('-x', '--no-delete', dest='delete', action='store_false',
help='If set, will not delete the objects created')
parser.add_option('-V', '--auth_version', dest='auth_version',