def run(args):
    min_duration = (METRICS_START_SKIP_DURATION + METRICS_END_SKIP_DURATION)
    if (args.duration <= min_duration):
        print('Duration must be greater than {min_duration}'.format(min_duration=min_duration))
        exit(1)
    fortio = Fortio(conn=args.conn, qps=args.qps, duration=args.duration, size=args.size, perf_record=args.perf, labels=args.labels, baseline=args.baseline, serversidecar=args.serversidecar, clientsidecar=args.clientsidecar, ingress=args.ingress, mode=args.mode, mesh=args.mesh, mixer_mode=args.mixer_mode)
    for conn in args.conn:
        for qps in args.qps:
            fortio.run(conn=conn, qps=qps, duration=args.duration, size=args.size)
def run(args):
    min_duration = (METRICS_START_SKIP_DURATION + METRICS_END_SKIP_DURATION)
    if (args.duration <= min_duration):
        print('Duration must be greater than {min_duration}'.format(min_duration=min_duration))
        exit(1)
    fortio = Fortio(conn=args.conn, qps=args.qps, duration=args.duration, size=args.size, perf_record=args.perf, labels=args.labels, baseline=args.baseline, serversidecar=args.serversidecar, clientsidecar=args.clientsidecar, ingress=args.ingress, mode=args.mode, mesh=args.mesh, mixer_mode=args.mixer_mode)
    for conn in args.conn:
        for qps in args.qps:
            fortio.run(conn=conn, qps=qps, duration=args.duration, size=args.size)