MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
com.mysql.cluster.crund.Driver Class Reference
Inheritance diagram for com.mysql.cluster.crund.Driver:
Collaboration diagram for com.mysql.cluster.crund.Driver:

Public Member Functions

 Driver ()
void run ()

Static Public Member Functions

static void parseArguments (String[] args)

Protected Member Functions

void init () throws Exception
void close () throws Exception
boolean parseBoolean (String k, boolean vdefault)
int parseInt (String k, int vdefault)
void initProperties ()
void printProperties ()
void writeProperties (String fileName)
abstract void runTests () throws Exception
void clearLogBuffers ()
void writeLogBuffers (String descr)
void begin (String name)
void finish (String name)

Static Protected Member Functions

static void exitUsage ()
static void loadSystemLibrary (String name)

Protected Attributes

final Properties props = new Properties()
boolean logRealTime
boolean logMemUsage
boolean includeFullGC
int nRuns
PrintWriter log
String descr = ""
boolean logHeader
StringBuilder header
StringBuilder rtimes
StringBuilder musage
long t0 = 0
long m0 = 0

Static Protected Attributes

static final PrintWriter out = new PrintWriter(System.out, true)
static final PrintWriter err = new PrintWriter(System.err, true)
static final String endl = System.getProperty("line.separator")
static final Runtime rt = Runtime.getRuntime()

Detailed Description

This class benchmarks standard database operations over a series of transactions on an increasing data set.

The abstract database operations are variations of: Create, Read, Update, Navigate, and Delete – hence, the benchmark's name: CRUND.

The actual operations are defined by subclasses to allow measuring the operation performance across different datastore implementations.

See Also
Urban Dictionary: crund
  1. used to debase people who torture others with their illogical attempts to make people laugh;
  2. reference to cracking obsolete jokes;
  3. a dance form;
  4. to hit hard or smash.

Definition at line 58 of file Driver.java.

Constructor & Destructor Documentation

com.mysql.cluster.crund.Driver.Driver ( )
inline

Creates an instance.

Definition at line 142 of file Driver.java.

Member Function Documentation

static void com.mysql.cluster.crund.Driver.exitUsage ( )
inlinestaticprotected

Prints a command-line usage message and exits.

Definition at line 96 of file Driver.java.

Here is the caller graph for this function:

static void com.mysql.cluster.crund.Driver.parseArguments ( String[]  args)
inlinestatic

Parses the benchmark's command-line arguments.

Definition at line 108 of file Driver.java.

Here is the call graph for this function:

void com.mysql.cluster.crund.Driver.run ( )
inline

Runs the benchmark.

Definition at line 147 of file Driver.java.


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