Groonga 3.0.9 Source Code Document
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "lib/str.h"
#include "lib/com.h"
#include "lib/db.h"
#include <sys/param.h>
#include <sys/utsname.h>
#include <sys/statvfs.h>
#include <libgen.h>
Go to the source code of this file.
Data Structures | |
struct | job |
struct | task |
struct | _grntest_worker |
Macros | |
#define | FTPUSER "anonymous" |
#define | FTPPASSWD "grntest" |
#define | FTPSERVER "ftp.groonga.org" |
#define | FTPBUF 20000 |
#define | DEFAULT_PORT 10041 |
#define | DEFAULT_DEST "localhost" |
#define | OUT_JSON 0 |
#define | OUT_TSV 1 |
#define | TMPFILE "_grntest.tmp" |
#define | OS_LINUX64 "LINUX64" |
#define | OS_LINUX32 "LINUX32" |
#define | OS_WINDOWS64 "WINDOWS64" |
#define | OS_WINDOWS32 "WINDOWS32" |
#define | socketclose close |
#define | SOCKETERROR -1 |
#define | MAX_CON_JOB 10 |
#define | MAX_CON 64 |
#define | BUF_LEN 1024 |
#define | MAX_PATH_LEN 256 |
#define | J_DO_LOCAL 1 /* do_local */ |
#define | J_DO_GQTP 2 /* do_gqtp */ |
#define | J_DO_HTTP 3 /* do_http */ |
#define | J_REP_LOCAL 4 /* rep_local */ |
#define | J_REP_GQTP 5 /* rep_gqtp */ |
#define | J_REP_HTTP 6 /* rep_http */ |
#define | J_OUT_LOCAL 7 /* out_local */ |
#define | J_OUT_GQTP 8 /* out_gqtp */ |
#define | J_OUT_HTTP 9 /* out_http */ |
#define | J_TEST_LOCAL 10 /* test_local */ |
#define | J_TEST_GQTP 11 /* test_gqtp */ |
#define | J_TEST_HTTP 12 /* test_http */ |
#define | OUTPUT_TYPE "output_type" |
#define | OUTPUT_TYPE_LEN (sizeof(OUTPUT_TYPE) - 1) |
#define | MODE_LIST 1 |
#define | MODE_GET 2 |
#define | MODE_PUT 3 |
#define | MODE_TIME 4 |
#define | MODE_MASK 0x007f |
#define | MODE_FTP 0x0080 |
#define | MODE_LOCALONLY 0x0100 |
#define | MODE_OWNDB 0x0800 |
#define | MODE_ONMEMORY 0x1000 |
Typedefs | |
typedef int | socket_t |
typedef struct _grntest_worker | grntest_worker |
Enumerations | |
enum | { mode_default = 0, mode_list, mode_usage } |
Functions | |
int | ftp_sub (const char *user, const char *passwd, const char *host, const char *filename, int mode, const char *cd_dirname, char *retval) |
int | main (int argc, char **argv) |
#define BUF_LEN 1024 |
Definition at line 115 of file groonga_benchmark.c.
#define DEFAULT_DEST "localhost" |
Definition at line 64 of file groonga_benchmark.c.
#define DEFAULT_PORT 10041 |
Definition at line 63 of file groonga_benchmark.c.
#define FTPBUF 20000 |
Definition at line 62 of file groonga_benchmark.c.
#define FTPPASSWD "grntest" |
Definition at line 60 of file groonga_benchmark.c.
#define FTPSERVER "ftp.groonga.org" |
Definition at line 61 of file groonga_benchmark.c.
#define FTPUSER "anonymous" |
Definition at line 59 of file groonga_benchmark.c.
#define J_DO_GQTP 2 /* do_gqtp */ |
Definition at line 119 of file groonga_benchmark.c.
#define J_DO_HTTP 3 /* do_http */ |
Definition at line 120 of file groonga_benchmark.c.
#define J_DO_LOCAL 1 /* do_local */ |
Definition at line 118 of file groonga_benchmark.c.
#define J_OUT_GQTP 8 /* out_gqtp */ |
Definition at line 125 of file groonga_benchmark.c.
#define J_OUT_HTTP 9 /* out_http */ |
Definition at line 126 of file groonga_benchmark.c.
#define J_OUT_LOCAL 7 /* out_local */ |
Definition at line 124 of file groonga_benchmark.c.
#define J_REP_GQTP 5 /* rep_gqtp */ |
Definition at line 122 of file groonga_benchmark.c.
#define J_REP_HTTP 6 /* rep_http */ |
Definition at line 123 of file groonga_benchmark.c.
#define J_REP_LOCAL 4 /* rep_local */ |
Definition at line 121 of file groonga_benchmark.c.
#define J_TEST_GQTP 11 /* test_gqtp */ |
Definition at line 128 of file groonga_benchmark.c.
#define J_TEST_HTTP 12 /* test_http */ |
Definition at line 129 of file groonga_benchmark.c.
#define J_TEST_LOCAL 10 /* test_local */ |
Definition at line 127 of file groonga_benchmark.c.
#define MAX_CON 64 |
Definition at line 113 of file groonga_benchmark.c.
#define MAX_CON_JOB 10 |
Definition at line 112 of file groonga_benchmark.c.
#define MAX_PATH_LEN 256 |
Definition at line 116 of file groonga_benchmark.c.
#define MODE_FTP 0x0080 |
Definition at line 2792 of file groonga_benchmark.c.
#define MODE_GET 2 |
Definition at line 2169 of file groonga_benchmark.c.
#define MODE_LIST 1 |
Definition at line 2168 of file groonga_benchmark.c.
#define MODE_LOCALONLY 0x0100 |
Definition at line 2793 of file groonga_benchmark.c.
#define MODE_MASK 0x007f |
Definition at line 2791 of file groonga_benchmark.c.
#define MODE_ONMEMORY 0x1000 |
Definition at line 2795 of file groonga_benchmark.c.
#define MODE_OWNDB 0x0800 |
Definition at line 2794 of file groonga_benchmark.c.
#define MODE_PUT 3 |
Definition at line 2170 of file groonga_benchmark.c.
#define MODE_TIME 4 |
Definition at line 2171 of file groonga_benchmark.c.
#define OS_LINUX32 "LINUX32" |
Definition at line 86 of file groonga_benchmark.c.
#define OS_LINUX64 "LINUX64" |
Definition at line 85 of file groonga_benchmark.c.
#define OS_WINDOWS32 "WINDOWS32" |
Definition at line 88 of file groonga_benchmark.c.
#define OS_WINDOWS64 "WINDOWS64" |
Definition at line 87 of file groonga_benchmark.c.
#define OUT_JSON 0 |
Definition at line 66 of file groonga_benchmark.c.
#define OUT_TSV 1 |
Definition at line 67 of file groonga_benchmark.c.
#define OUTPUT_TYPE "output_type" |
Definition at line 504 of file groonga_benchmark.c.
#define OUTPUT_TYPE_LEN (sizeof(OUTPUT_TYPE) - 1) |
Definition at line 505 of file groonga_benchmark.c.
#define socketclose close |
Definition at line 99 of file groonga_benchmark.c.
#define SOCKETERROR -1 |
Definition at line 100 of file groonga_benchmark.c.
#define TMPFILE "_grntest.tmp" |
Definition at line 80 of file groonga_benchmark.c.
typedef struct _grntest_worker grntest_worker |
typedef int socket_t |
Definition at line 98 of file groonga_benchmark.c.
anonymous enum |
Definition at line 2785 of file groonga_benchmark.c.
int ftp_sub | ( | const char * | user, |
const char * | passwd, | ||
const char * | host, | ||
const char * | filename, | ||
int | mode, | ||
const char * | cd_dirname, | ||
char * | retval | ||
) |
int main | ( | int | argc, |
char ** | argv | ||
) |