forked from cmu-db/benchbase
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding Missing Test cases and test case refactoring (cmu-db#144)
* working on cleaning up and adding missing tests * working on resourcestresser and tpch * fixed tpch * twitter test case broken until config refactor is merged * adding back mockbenchmark * in low SF runs here the entrySet size is only 1, then `this.max_value` is never set. think this is a bug * moving collection of procedure classes from HashSet back to List to preserve ordering; also reducing logging output * applyed custom SF to TPCHWorker only to improve run time down from 14 minutes to 6 seconds * toning down some logging * cleaning up logging. starting hsqldb on random port to avoid port rare but possible port conflicts; also waiting during stop incase there is a problem brining hsqldb down * fixing some test flakes * making change to NoOp based on feedback from @pavlo * updating logging to capture test name * fixing conflict * fixing conflict
- Loading branch information
Showing
68 changed files
with
1,586 additions
and
905 deletions.
There are no files selected for viewing
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
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
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
22 changes: 12 additions & 10 deletions
22
src/main/resources/benchmarks/chbenchmark/ddl-generic.sql
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0"?> | ||
<dialects> | ||
<dialect type="HSQLDB"> | ||
<procedure name="NoOp"> | ||
<statement name="noopStmt"> | ||
<![CDATA[SELECT 1]]> | ||
</statement> | ||
</procedure> | ||
</dialect> | ||
</dialects> |
25 changes: 25 additions & 0 deletions
25
src/main/resources/benchmarks/resourcestresser/dialect-hsqldb.xml
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0"?> | ||
<dialects> | ||
<dialect type="HSQLDB"> | ||
<procedure name="CPU1"> | ||
<statement name="cpuSelect"> | ||
<![CDATA[SELECT count(*) FROM (SELECT concat(concat(concat(concat(concat(passwd,?),?),?),?),?) FROM cputable WHERE empid >= 0 AND empid < 100) AS T1]]> | ||
</statement> | ||
</procedure> | ||
<procedure name="CPU2"> | ||
<statement name="cpuSelect"> | ||
<![CDATA[SELECT count(*) FROM (SELECT concat(concat(concat(concat(concat(passwd,?),?),?),?),?) FROM cputable WHERE empid >= 0 AND empid < 100) AS T2]]> | ||
</statement> | ||
</procedure> | ||
<procedure name="Contention1"> | ||
<statement name="lockSleep"> | ||
select 1 from locktable where empid = ? | ||
</statement> | ||
</procedure> | ||
<procedure name="Contention2"> | ||
<statement name="lockSleep"> | ||
select 1 from locktable where empid = ? | ||
</statement> | ||
</procedure> | ||
</dialect> | ||
</dialects> |
Oops, something went wrong.