|
Zero
0.1.0
|
Typedefs | |
| typedef vector< pair< int, int > > | TwoIntVec |
| typedef TwoIntVec::iterator | TwoIntVecIt |
Functions | |
| int | random_xct_type (int selected) |
| static void | gen_cid_array (int *cid_array) |
| int | get_wh (int sf, int specificWH, int tspread) |
| new_order_input_t | create_new_order_input (int sf, int specificWH, int tspread) |
| payment_input_t | create_payment_input (int sf, int specificWH, int tspread) |
| order_status_input_t | create_order_status_input (int sf, int specificWH, int tspread) |
| delivery_input_t | create_delivery_input (int sf, int specificWH, int tspread) |
| stock_level_input_t | create_stock_level_input (int sf, int specificWH, int tspread) |
| mbench_wh_input_t | create_mbench_wh_input (int sf, int specificWH, int tspread) |
| mbench_cust_input_t | create_mbench_cust_input (int sf, int specificWH, int tspread) |
| int | random (int low, int high, randgen_t *rp) |
| Generates a uniform random number between low and high. Not seen by public. More... | |
| int | URand (int low, int high) |
| Generates a uniform random number between (low) and (high) More... | |
| int | NURand (int A, int low, int high) |
| Generates a non-uniform random number. More... | |
| int | generate_cust_last (int select, char *dest) |
| DECLARE_TABLE_SCHEMA (warehouse_t) | |
| DECLARE_TABLE_SCHEMA (district_t) | |
| DECLARE_TABLE_SCHEMA (stock_t) | |
| DECLARE_TABLE_SCHEMA (order_line_t) | |
| DECLARE_TABLE_SCHEMA (customer_t) | |
| DECLARE_TABLE_SCHEMA (history_t) | |
| DECLARE_TABLE_SCHEMA (order_t) | |
| DECLARE_TABLE_SCHEMA (new_order_t) | |
| DECLARE_TABLE_SCHEMA (item_t) | |
| static int | rand_integer (int lo, int hi) |
| static int | create_random_a_string (char *out_buffer, int length_lo, int length_hi) |
| static int | create_random_n_string (char *out_buffer, int length_lo, int length_hi) |
| int | NUrand_val (int A, int x, int y, int C) |
| int | create_a_string_with_original (char *out_buffer, int length_lo, int length_hi, int percent_to_set) |
| int | create_random_last_name (char *out_buffer, int cust_num) |
| void | test_serialization (table_row_t *prol) |
| DEFINE_TRX (ShoreTPCCEnv, new_order) | |
| DEFINE_TRX (ShoreTPCCEnv, payment) | |
| DEFINE_TRX (ShoreTPCCEnv, order_status) | |
| DEFINE_TRX (ShoreTPCCEnv, delivery) | |
| DEFINE_TRX (ShoreTPCCEnv, stock_level) | |
| DEFINE_TRX (ShoreTPCCEnv, mbench_wh) | |
| DEFINE_TRX (ShoreTPCCEnv, mbench_cust) | |
Variables | |
| const int | TPCC_C_LAST_SZ = 16 |
| const int | TPCC_C_FIRST_SZ = 16 |
| const int | DISTRICTS_PER_WAREHOUSE = 10 |
| const int | CUSTOMERS_PER_DISTRICT = 3000 |
| const int | ITEMS = 100000 |
| const int | STOCK_PER_WAREHOUSE = ITEMS |
| const int | MIN_OL_PER_ORDER = 5 |
| const int | MAX_OL_PER_ORDER = 15 |
| const int | NU_ORDERS_PER_DISTRICT = 900 |
| const int | MAX_TABLENAM_LENGTH = 20 |
| const int | MAX_RECORD_LENGTH = 512 |
| const int | TPCC_WAREHOUSE_FCOUNT = 9 |
| const int | TPCC_DISTRICT_FCOUNT = 11 |
| const int | TPCC_CUSTOMER_FCOUNT = 22 |
| const int | TPCC_HISTORY_FCOUNT = 8 |
| const int | TPCC_NEW_ORDER_FCOUNT = 3 |
| const int | TPCC_ORDER_FCOUNT = 8 |
| const int | TPCC_ORDER_LINE_FCOUNT = 10 |
| const int | TPCC_ITEM_FCOUNT = 5 |
| const int | TPCC_STOCK_FCOUNT = 17 |
| const int | SHORE_TPCC_TABLES = 9 |
| const int | XCT_MIX = 0 |
| const int | XCT_NEW_ORDER = 1 |
| const int | XCT_PAYMENT = 2 |
| const int | XCT_ORDER_STATUS = 3 |
| const int | XCT_DELIVERY = 4 |
| const int | XCT_STOCK_LEVEL = 5 |
| const int | XCT_LITTLE_MIX = 9 |
| const int | XCT_MBENCH_WH = 11 |
| const int | XCT_MBENCH_CUST = 12 |
| const int | PROB_NEWORDER = 45 |
| const int | PROB_PAYMENT = 43 |
| const int | PROB_ORDER_STATUS = 4 |
| const int | PROB_DELIVERY = 4 |
| const int | PROB_STOCK_LEVEL = 4 |
| static unsigned long | units_completed = 0 |
| static int const | NORD_PER_UNIT = 9 |
| static int const | CUST_PER_UNIT = 30 |
| static int const | HIST_PER_UNIT = 30 |
| static int const | ORDERS_PER_UNIT = 30 |
| static int const | STOCK_PER_UNIT = 100 |
| static int const | UNIT_PER_WH = 1000 |
| static int const | UNIT_PER_DIST = 100 |
| static int const | ORDERS_PER_DIST = 3000 |
| skewer_t | w_skewer |
| bool | _change_load = false |
| const char * | CUST_LAST [10] |
| static __thread ShoreTPCCTrxStats | my_stats |
| static char | alnum [] |
| static const char * | last_name_parts [] |
| unsigned int | delivery_abort_ctr = 0 |
| typedef vector<pair<int, int> > tpcc::TwoIntVec |
| typedef TwoIntVec::iterator tpcc::TwoIntVecIt |
| int tpcc::create_a_string_with_original | ( | char * | out_buffer, |
| int | length_lo, | ||
| int | length_hi, | ||
| int | percent_to_set | ||
| ) |
| delivery_input_t tpcc::create_delivery_input | ( | int | sf, |
| int | specificWH, | ||
| int | tspread | ||
| ) |
| mbench_cust_input_t tpcc::create_mbench_cust_input | ( | int | sf, |
| int | specificWH, | ||
| int | tspread | ||
| ) |
| mbench_wh_input_t tpcc::create_mbench_wh_input | ( | int | sf, |
| int | specificWH, | ||
| int | tspread | ||
| ) |
| new_order_input_t tpcc::create_new_order_input | ( | int | sf, |
| int | specificWH, | ||
| int | tspread | ||
| ) |
| order_status_input_t tpcc::create_order_status_input | ( | int | sf, |
| int | specificWH, | ||
| int | tspread | ||
| ) |
| payment_input_t tpcc::create_payment_input | ( | int | sf, |
| int | specificWH = 0, |
||
| int | tspread = 0 |
||
| ) |
Exported functionality
|
static |
| int tpcc::create_random_last_name | ( | char * | out_buffer, |
| int | cust_num | ||
| ) |
|
static |
| stock_level_input_t tpcc::create_stock_level_input | ( | int | sf, |
| int | specificWH, | ||
| int | tspread | ||
| ) |
| tpcc::DECLARE_TABLE_SCHEMA | ( | warehouse_t | ) |
| tpcc::DECLARE_TABLE_SCHEMA | ( | district_t | ) |
| tpcc::DECLARE_TABLE_SCHEMA | ( | stock_t | ) |
| tpcc::DECLARE_TABLE_SCHEMA | ( | order_line_t | ) |
| tpcc::DECLARE_TABLE_SCHEMA | ( | customer_t | ) |
| tpcc::DECLARE_TABLE_SCHEMA | ( | history_t | ) |
| tpcc::DECLARE_TABLE_SCHEMA | ( | order_t | ) |
| tpcc::DECLARE_TABLE_SCHEMA | ( | new_order_t | ) |
| tpcc::DECLARE_TABLE_SCHEMA | ( | item_t | ) |
| tpcc::DEFINE_TRX | ( | ShoreTPCCEnv | , |
| new_order | |||
| ) |
| tpcc::DEFINE_TRX | ( | ShoreTPCCEnv | , |
| payment | |||
| ) |
| tpcc::DEFINE_TRX | ( | ShoreTPCCEnv | , |
| order_status | |||
| ) |
| tpcc::DEFINE_TRX | ( | ShoreTPCCEnv | , |
| delivery | |||
| ) |
| tpcc::DEFINE_TRX | ( | ShoreTPCCEnv | , |
| stock_level | |||
| ) |
| tpcc::DEFINE_TRX | ( | ShoreTPCCEnv | , |
| mbench_wh | |||
| ) |
| tpcc::DEFINE_TRX | ( | ShoreTPCCEnv | , |
| mbench_cust | |||
| ) |
|
static |
| int tpcc::generate_cust_last | ( | int | select, |
| char * | dest | ||
| ) |
| int tpcc::get_wh | ( | int | sf, |
| int | specificWH, | ||
| int | tspread | ||
| ) |
| int tpcc::NURand | ( | int | A, |
| int | low, | ||
| int | high | ||
| ) |
Generates a non-uniform random number.
Terminology
[x .. y]: Represents a closed range of values starting with x and ending with y NURand(A, x, y): Non-uniform distributed value between x and y URand(x, y): Uniformly distributed value between x and yExported Functions
| int tpcc::NUrand_val | ( | int | A, |
| int | x, | ||
| int | y, | ||
| int | C | ||
| ) |
|
static |
| tpcc::random | ( | int | low, |
| int | high, | ||
| randgen_t * | rp | ||
| ) |
Generates a uniform random number between low and high. Not seen by public.
Terminology
[x .. y]: Represents a closed range of values starting with x and ending with y
random(x,y): uniformly distributed value between x and y.
NURand(A, x, y): (((random(0, A) | random(x, y)) + C) % (y - x + 1)) + x non-uniform random, where exp-1 | exp-2: bitwise logical OR exp-1 % exp-2: exp-1 modulo exp-2 C: random(0, A)
| int tpcc::random_xct_type | ( | int | selected | ) |
| void tpcc::test_serialization | ( | table_row_t * | prol | ) |
| tpcc::URand | ( | int | low, |
| int | high | ||
| ) |
Generates a uniform random number between (low) and (high)
| bool tpcc::_change_load = false |
|
static |
| const char* tpcc::CUST_LAST[10] |
|
static |
| const int tpcc::CUSTOMERS_PER_DISTRICT = 3000 |
| unsigned int tpcc::delivery_abort_ctr = 0 |
| const int tpcc::DISTRICTS_PER_WAREHOUSE = 10 |
|
static |
| const int tpcc::ITEMS = 100000 |
|
static |
| const int tpcc::MAX_OL_PER_ORDER = 15 |
| const int tpcc::MAX_RECORD_LENGTH = 512 |
| const int tpcc::MAX_TABLENAM_LENGTH = 20 |
| const int tpcc::MIN_OL_PER_ORDER = 5 |
|
static |
|
static |
| const int tpcc::NU_ORDERS_PER_DISTRICT = 900 |
|
static |
|
static |
| const int tpcc::PROB_DELIVERY = 4 |
| const int tpcc::PROB_NEWORDER = 45 |
| const int tpcc::PROB_ORDER_STATUS = 4 |
| const int tpcc::PROB_PAYMENT = 43 |
| const int tpcc::PROB_STOCK_LEVEL = 4 |
| const int tpcc::SHORE_TPCC_TABLES = 9 |
|
static |
| const int tpcc::STOCK_PER_WAREHOUSE = ITEMS |
| const int tpcc::TPCC_C_FIRST_SZ = 16 |
| const int tpcc::TPCC_C_LAST_SZ = 16 |
| const int tpcc::TPCC_CUSTOMER_FCOUNT = 22 |
| const int tpcc::TPCC_DISTRICT_FCOUNT = 11 |
| const int tpcc::TPCC_HISTORY_FCOUNT = 8 |
| const int tpcc::TPCC_ITEM_FCOUNT = 5 |
| const int tpcc::TPCC_NEW_ORDER_FCOUNT = 3 |
| const int tpcc::TPCC_ORDER_FCOUNT = 8 |
| const int tpcc::TPCC_ORDER_LINE_FCOUNT = 10 |
| const int tpcc::TPCC_STOCK_FCOUNT = 17 |
| const int tpcc::TPCC_WAREHOUSE_FCOUNT = 9 |
|
static |
|
static |
|
static |
| skewer_t tpcc::w_skewer |
Exported variables
| const int tpcc::XCT_DELIVERY = 4 |
| const int tpcc::XCT_LITTLE_MIX = 9 |
| const int tpcc::XCT_MBENCH_CUST = 12 |
| const int tpcc::XCT_MBENCH_WH = 11 |
| const int tpcc::XCT_MIX = 0 |
| const int tpcc::XCT_NEW_ORDER = 1 |
| const int tpcc::XCT_ORDER_STATUS = 3 |
| const int tpcc::XCT_PAYMENT = 2 |
| const int tpcc::XCT_STOCK_LEVEL = 5 |
1.8.12