s3_performance is a simple tool to measure the performance of PUT and GET commands for demo.scality.com.
	        Given the number and size of the files to perform one of the operations on, it will output the average, minimum
	        and maximum time of each operation, operations per seconds and their speed in Mb/s.  E.g.
	
	        500 1024KB GET's performed:
	        ------------------------------------
	          Avg: 60.0 seconds;    133.36 Mb/s
	          Min: 332.3 seconds;   24.0 Mb/s
	          Max: 48.3 seconds;    165.6 Mb/s
	          ''',
                      version="%prog 1.0")

parser.add_option("-b",
                  "--bucket",
                  action="store",
                  dest="bucketname",
                  help="Name of the bucket to perform operations on. \
                 If no bucket name is specified a random name will be used.")
parser.add_option("-o",
                  "--operation",
                  action="store",
                  dest="operation",
                  help="Values can be put or get")
parser.add_option("-n",
                  "--numfiles",
                  action="store",
                  dest="numfiles",
                  help="Number of files to perform operations on")
parser.add_option("-s",
                  "--size",
                  action="store",
	 %prog [options] filename
	        
	        s3_performance is a simple tool to measure the performance of PUT and GET commands for demo.scality.com.
	        Given the number and size of the files to perform one of the operations on, it will output the average, minimum
	        and maximum time of each operation, operations per seconds and their speed in Mb/s.  E.g.
	
	        500 1024KB GET's performed:
	        ------------------------------------
	          Avg: 60.0 seconds;    133.36 Mb/s
	          Min: 332.3 seconds;   24.0 Mb/s
	          Max: 48.3 seconds;    165.6 Mb/s
	          ''',
	        version="%prog 1.0")
     
parser.add_option("-b", "--bucket", action="store", dest="bucketname",
                 help="Name of the bucket to perform operations on. \
                 If no bucket name is specified a random name will be used.")
parser.add_option("-o", "--operation", action="store", dest="operation",
                 help="Values can be put or get")
parser.add_option("-n", "--numfiles", action="store", dest="numfiles",
	             help="Number of files to perform operations on")
parser.add_option("-s", "--size", action="store", dest="filesize",
	             help="The size of files in KB")

(options, _) = parser.parse_args()
    
logging.info('Validating options')
    
if len(sys.argv[1:]) == 0:
    parser.print_help()
    exit(1)