2012-08-23 21:30:32 +00:00
|
|
|
#ifndef CONNECTIONOPTIONS_H
|
|
|
|
#define CONNECTIONOPTIONS_H
|
|
|
|
|
|
|
|
#include "distributions.h"
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
int connections;
|
|
|
|
bool blocking;
|
|
|
|
double lambda;
|
|
|
|
int qps;
|
|
|
|
int records;
|
|
|
|
|
2013-03-04 17:31:13 +00:00
|
|
|
bool binary;
|
|
|
|
bool sasl;
|
|
|
|
char username[32];
|
|
|
|
char password[32];
|
|
|
|
|
2012-08-23 21:30:32 +00:00
|
|
|
char keysize[32];
|
|
|
|
char valuesize[32];
|
|
|
|
// int keysize;
|
|
|
|
// int valuesize;
|
|
|
|
char ia[32];
|
|
|
|
|
|
|
|
// qps_per_connection
|
|
|
|
// iadist
|
|
|
|
|
|
|
|
double update;
|
|
|
|
int time;
|
|
|
|
bool loadonly;
|
|
|
|
int depth;
|
|
|
|
bool no_nodelay;
|
|
|
|
bool noload;
|
|
|
|
int threads;
|
|
|
|
enum distribution_t iadist;
|
|
|
|
int warmup;
|
2013-03-12 22:33:44 +00:00
|
|
|
bool skip;
|
2012-08-23 21:30:32 +00:00
|
|
|
|
|
|
|
bool roundrobin;
|
|
|
|
int server_given;
|
|
|
|
int lambda_denom;
|
|
|
|
|
|
|
|
bool oob_thread;
|
2013-04-15 20:27:06 +00:00
|
|
|
|
|
|
|
bool moderate;
|
2012-08-23 21:30:32 +00:00
|
|
|
} options_t;
|
|
|
|
|
|
|
|
#endif // CONNECTIONOPTIONS_H
|