struct tapi_redis_benchmark_opt

Overview

Specific redis-benchmark options. More…

#include <tapi_redis_benchmark.h>

struct tapi_redis_benchmark_opt {
    // fields

    const struct sockaddr* server;
    const char* socket;
    tapi_job_opt_uint_t clients;
    tapi_job_opt_uint_t requests;
    tapi_job_opt_uint_t size;
    tapi_job_opt_uint_t dbnum;
    tapi_job_opt_uint_t keep_alive;
    tapi_job_opt_uint_t keyspacelen;
    tapi_job_opt_uint_t pipelines;
    bool show_srv_errors;
    tapi_job_opt_uint_t threads;
    const char* tests;
    bool idle;
    const char* exec_path;
};

Detailed Documentation

Specific redis-benchmark options.

Fields

const struct sockaddr* server

IP and port of the server under test

const char* socket

Server socket.

tapi_job_opt_uint_t clients

Number of parallel connections.

tapi_job_opt_uint_t requests

Total number of requests.

tapi_job_opt_uint_t size

Data size of SET/GET value, in bytes.

tapi_job_opt_uint_t dbnum

SELECT the specified db number.

tapi_job_opt_uint_t keep_alive

Keep alive or reconnect.

tapi_job_opt_uint_t keyspacelen

Use random keys for SET/GET/INCR, random values for SADD. Using this option the benchmark will expand the string rand_int inside an argument with a 12 digits number in the specified range from 0 to keyspacelen-1. The substitution changes every time a command is executed.

tapi_job_opt_uint_t pipelines

Number of pipline requests.

bool show_srv_errors

If server replies with errors, show them on stdout.

tapi_job_opt_uint_t threads

Number of threads to use.

const char* tests

Only run the comma separated list of tests.

bool idle

Idle mode.

const char* exec_path

Path to redis-benchmark exec (if NULL then “redis-benchmark”).