tlds
Transactional Operations for Linked Data Structures
|
#include <stm/config.h>
#include <iostream>
#include <alt-license/rand_r_32.h>
#include <api/api.hpp>
#include "bmconfig.hpp"
#include "DList.hpp"
Functions | |
void | bench_init () |
void | bench_test (uintptr_t, uint32_t *seed) |
bool | bench_verify () |
void | bench_reparse () |
Variables | |
DList * | SET |
void bench_init | ( | ) |
BENCHMARKS IMPLEMENT THE FOLLOWING FUNCTIONS
Step 3: Declare an instance of the data type, and provide init, test, and verify functions
void bench_reparse | ( | ) |
Step 4: Include the code that has the main() function, and the code for creating threads and calling the three above-named functions. Don't forget to provide an arg reparser.
void bench_test | ( | uintptr_t | , |
uint32_t * | seed | ||
) |
bool bench_verify | ( | ) |
DList* SET |
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. Step 3: Declare an instance of the data type, and provide init, test, and verify functions