All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Data Structures | Macros | Functions
benchmark.h File Reference
#include "aerospike/aerospike.h"
#include "aerospike/as_record.h"
#include "latency.h"
+ Include dependency graph for benchmark.h:

Go to the source code of this file.

Data Structures

struct  arguments
 
struct  clientdata
 

Macros

#define blog(_fmt, _args...)   { printf(_fmt, ## _args); }
 
#define blog_error(_fmt, _args...)   { blog_detail(AS_LOG_LEVEL_ERROR, _fmt, ## _args); }
 
#define blog_info(_fmt, _args...)   { blog_detail(AS_LOG_LEVEL_INFO, _fmt, ## _args); }
 

Functions

void blog_detail (as_log_level level, const char *fmt,...)
 
void blog_detailv (as_log_level level, const char *fmt, va_list ap)
 
void blog_line (const char *fmt,...)
 
int gen_value (arguments *args, as_bin_value *val)
 
bool is_stop_writes (aerospike *client, const char *host, int port, const char *namespace)
 
int linear_write (clientdata *data)
 
int random_read_write (clientdata *data)
 
int read_record (int key, clientdata *data)
 
int run_benchmark (arguments *args)
 
int write_record (int key, clientdata *data)
 

Macro Definition Documentation

#define blog (   _fmt,
  _args... 
)    { printf(_fmt, ## _args); }

Definition at line 102 of file benchmark.h.

#define blog_error (   _fmt,
  _args... 
)    { blog_detail(AS_LOG_LEVEL_ERROR, _fmt, ## _args); }

Definition at line 104 of file benchmark.h.

#define blog_info (   _fmt,
  _args... 
)    { blog_detail(AS_LOG_LEVEL_INFO, _fmt, ## _args); }

Definition at line 103 of file benchmark.h.

Function Documentation

void blog_detail ( as_log_level  level,
const char *  fmt,
  ... 
)
void blog_detailv ( as_log_level  level,
const char *  fmt,
va_list  ap 
)
void blog_line ( const char *  fmt,
  ... 
)
int gen_value ( arguments args,
as_bin_value val 
)
bool is_stop_writes ( aerospike client,
const char *  host,
int  port,
const char *  namespace 
)
int linear_write ( clientdata data)
int random_read_write ( clientdata data)
int read_record ( int  key,
clientdata data 
)
int run_benchmark ( arguments args)
int write_record ( int  key,
clientdata data 
)