get_redis_qps(): r = redis.Redis(host='192.168.1.50', port=6379, db=0, password='test123') prev_ops = 0 while True: info = r.info("stats") ops = info['total_commands_processed'] qps = ops - prev_ops prev_ops = ops print("QPS: "+str(qps)) time.sleep(1) get_redis_...