# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # try: import asyncio except ImportError: import trollius asyncio = trollius import argparse from time import time from couchbase_core.user_constants import FMT_BYTES from couchbase_core.experimental import enable; enable() from acouchbase.cluster import V2Bucket ap = argparse.ArgumentParser() ap.add_argument('-t', '--threads', default=4, type=int, help="Number of threads to spawn. 0 means no threads " "but workload will still run in the main thread") ap.add_argument('-d', '--delay', default=0, type=float, help="Number of seconds to wait between each op. " "may be a fraction") ap.add_argument('-p', '--password', default=None, type=str) ap.add_argument('-U', '--connstr', default='couchbase://localhost/default', type=str) ap.add_argument('-D', '--duration', default=10, type=int,
# See the License for the specific language governing permissions and # limitations under the License. # try: import asyncio except ImportError: import trollius asyncio = trollius import argparse from time import time from couchbase_core.user_constants import FMT_BYTES from couchbase_core.experimental import enable enable() from acouchbase.bucket import V2Bucket ap = argparse.ArgumentParser() ap.add_argument('-t', '--threads', default=4, type=int, help="Number of threads to spawn. 0 means no threads " "but workload will still run in the main thread") ap.add_argument('-d', '--delay', default=0, type=float,