This repository has been archived by the owner on Aug 23, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Made several changes for use with TPC-H implementation and col-stores…
… DBs: - New benchmark states for cold and hot query runs. - Can run queries serially (run each query in sequential order on one terminal) exactly once (a `latency' run) or for a set amount of time (looping through the query list until the timer expires). - Added support for MonetDB in TPC-C. - Can re-run a test using the .raw output. Submits identical queries to the system at the same time; for repeatability of tests. - Can specify `groupings' of query weights in config file. A shorthand to make config management a little easier.
- Loading branch information
Ben Reilly
committed
Dec 13, 2013
1 parent
7f8d589
commit e371037
Showing
23 changed files
with
1,185 additions
and
232 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,18 +1,18 @@ | |||
|
|
||
truncate table warehouse; | delete warehouse; | ||
|
|
||
truncate table item; | delete item; | ||
|
|
||
truncate table stock; | delete stock; | ||
|
|
||
truncate table district; | delete district; | ||
|
|
||
truncate table customer; | delete customer; | ||
|
|
||
truncate table history; | delete history; | ||
|
|
||
truncate table oorder; | delete oorder; | ||
|
|
||
truncate table order_line; | delete order_line; | ||
|
|
||
truncate table new_order; | delete new_order; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,33 @@ | |||
package com.oltpbenchmark; | |||
|
|||
import java.util.ArrayList; | |||
import java.util.Iterator; | |||
import java.util.List; | |||
import java.util.LinkedList; | |||
|
|||
import com.oltpbenchmark.types.State; | |||
import com.oltpbenchmark.util.QueueLimitException; | |||
import org.apache.log4j.Logger; | |||
|
|||
/** | |||
* This class is used for keeping track of the procedures that have been | |||
* submitted to the system when running a rate-limited benchmark. | |||
* @author breilly | |||
*/ | |||
public class SubmittedProcedure { | |||
private final int type; | |||
private final long startTime; | |||
|
|||
SubmittedProcedure(int type) { | |||
this.type = type; | |||
this.startTime = System.nanoTime(); | |||
} | |||
|
|||
SubmittedProcedure(int type, long startTime) { | |||
this.type = type; | |||
this.startTime = startTime; | |||
} | |||
|
|||
public int getType() { return type; } | |||
public long getStartTime() { return startTime; } | |||
} |
Oops, something went wrong.