Permalink
Browse files

mb-4660 Keep thread number as one

And set defalt set/get ratio to 90%.

Change-Id: Ibedf78ad03eef5bba2de7b39e2f222513765cfa2
Reviewed-on: http://review.couchbase.org/14254
Reviewed-by: Steve Yen <steve.yen@gmail.com>
Tested-by: Farshid Ghods <farshid@couchbase.com>
Reviewed-by: Farshid Ghods <farshid@couchbase.com>
  • Loading branch information...
1 parent e84cacc commit c9a2da9ec1c2482386fce3902a1699a63b7dedde @bcui6611 bcui6611 committed Mar 23, 2012
Showing with 2 additions and 5 deletions.
  1. +2 −5 cbworkloadgen
View
@@ -160,14 +160,11 @@ if __name__ == "__main__":
default=100, metavar="100")
parser.add_option("-r", "--ratio", dest="ratio", help="set get operation ratio",
- default=77, metavar="77")
+ default=90, metavar="90")
parser.add_option("--size", dest="value_size", help="value size,default is 256 byte",
default=512, metavar="100")
- parser.add_option("--threads", dest="num_of_threads", help="number of threads to run load",
- default=1, metavar="100")
-
parser.add_option("--prefix", dest="key_prefix",
help="prefix to use for memcached keys and json _ids,default is uuid string",
default=str(uuid.uuid4())[:5], metavar="pymc")
@@ -190,7 +187,7 @@ if __name__ == "__main__":
v = None
workers = []
try:
- no_threads = options.num_of_threads
+ no_threads = 1
number_of_items = int(options.items)
sharedProgressBar = SharedProgressBar(number_of_items)
for i in range(0, int(no_threads)):

0 comments on commit c9a2da9

Please sign in to comment.