tlds
Transactional Operations for Linked Data Structures
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
CustomForest Struct Reference
Collaboration diagram for CustomForest:

Public Member Functions

 CustomForest (uint32_t keys, uint32_t ro, uint32_t numtrees, uint32_t per)
 
 ~CustomForest ()
 

Public Attributes

uint32_t keydepths
 
uint32_t roratio
 
uint32_t insratio
 
uint32_t total_trees
 
uint32_t trees_per_tx
 
RBTree ** trees
 

Detailed Description

Copyright (C) 2011 University of Rochester Department of Computer Science and Lehigh University Department of Computer Science and Engineering

License: Modified BSD Please see the file LICENSE.RSTM for licensing information Step 1: Include the configuration code for the harness, and the API code. We provide the option to build the entire benchmark in a single source. The bmconfig.hpp include defines all of the important functions that are implemented in this file, and bmharness.cpp defines the execution infrastructure. Step 2: Declare the data type that will be stress tested via this benchmark. Also provide any functions that will be needed to manipulate the data type. Take care to avoid unnecessary indirection. Forest of RBTrees

In the past, we made this have lots of different sized trees. That, in turn, led to a lot of complexity, and resulted in the benchmark not receiving much use. In this new instance, we make things less configurable, but hopefully more useful.

The Forest holds many trees, all of which are exactly the same wrt key range and lookup ratio. A transaction performs a fixed number of tree ops on the forest, selecting trees at random (with replacement).

Constructor & Destructor Documentation

CustomForest::CustomForest ( uint32_t  keys,
uint32_t  ro,
uint32_t  numtrees,
uint32_t  per 
)
inline

Here is the call graph for this function:

CustomForest::~CustomForest ( )
inline

Member Data Documentation

uint32_t CustomForest::insratio
uint32_t CustomForest::keydepths
uint32_t CustomForest::roratio
uint32_t CustomForest::total_trees
RBTree** CustomForest::trees
uint32_t CustomForest::trees_per_tx

The documentation for this struct was generated from the following file: