ARB
|
#include <arbdbt.h>
#include <climits>
#include <ctime>
#include <sys/time.h>
Go to the source code of this file.
Classes | |
struct | Test |
Macros | |
#define | TEST(fun) { #fun, test_##fun } |
#define | SECOND 1000000 |
#define | WANTED_TIME 5*SECOND |
Typedefs | |
typedef void(* | test_fun )() |
Functions | |
static void | iterate (GBDATA *gbd) |
static void | test_GB_iterate_DB () |
static void | test_GB_find_string () |
static void | test_GB_find_string_indexed () |
static void | noop () |
static long | callDelay (long loops) |
static long | run_test (test_fun fun, long loops, double *perCall) |
static long | estimate_loops (test_fun fun) |
static long | count_elements (GBDATA *gbd) |
int | ARB_main (int argc, char *argv[]) |
Variables | |
static GBDATA * | gb_species_data = NULp |
static GBDATA * | gb_main = NULp |
static Test | Test [] |
#define TEST | ( | fun | ) | { #fun, test_##fun } |
Definition at line 55 of file arb_perf_test.cxx.
#define SECOND 1000000 |
Definition at line 69 of file arb_perf_test.cxx.
Referenced by ARB_main(), and run_test().
#define WANTED_TIME 5*SECOND |
Definition at line 70 of file arb_perf_test.cxx.
Referenced by estimate_loops().
typedef void(* test_fun)() |
Definition at line 48 of file arb_perf_test.cxx.
|
static |
Definition at line 26 of file arb_perf_test.cxx.
References GB_child(), and GB_nextChild().
Referenced by test_GB_iterate_DB().
|
static |
Definition at line 32 of file arb_perf_test.cxx.
References iterate().
|
static |
Definition at line 35 of file arb_perf_test.cxx.
References GB_find_string(), GB_IGNORE_CASE, and SEARCH_GRANDCHILD.
|
static |
Definition at line 38 of file arb_perf_test.cxx.
References GB_find_string(), GB_IGNORE_CASE, and SEARCH_GRANDCHILD.
|
static |
Definition at line 45 of file arb_perf_test.cxx.
Referenced by callDelay().
Definition at line 99 of file arb_perf_test.cxx.
References GB_MIND_CASE, GBS_create_hash(), GBS_global_string(), GBS_read_hash(), GBS_write_hash(), noop(), NULp, and run_test().
Referenced by run_test().
Definition at line 72 of file arb_perf_test.cxx.
References callDelay(), NULp, and SECOND.
Referenced by ARB_main(), callDelay(), and estimate_loops().
Definition at line 113 of file arb_perf_test.cxx.
References run_test(), and WANTED_TIME.
Referenced by ARB_main().
Definition at line 130 of file arb_perf_test.cxx.
References GB_child(), and GB_nextChild().
Referenced by ARB_main().
Definition at line 138 of file arb_perf_test.cxx.
References count_elements(), error(), estimate_loops(), EXIT_FAILURE, EXIT_SUCCESS, GB_await_error(), GB_close(), GBT_get_species_count(), GBT_get_species_data(), GBT_open(), Test::name, NULp, run_test(), SECOND, and ta.
Definition at line 20 of file arb_perf_test.cxx.
Definition at line 21 of file arb_perf_test.cxx.
Definition at line 57 of file arb_perf_test.cxx.