Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 142d42f

Browse files
committed
Scripts to run queries and data.
1 parent dbde5ca commit 142d42f

File tree

10 files changed

+16451
-0
lines changed

10 files changed

+16451
-0
lines changed

src/test/performance/sqls/connection

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
`echo "" | time $FrontEnd`;

src/test/performance/sqls/crtsimple

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
if ( $TestDBMS =~ /^pgsql/ )
3+
{
4+
`echo "CREATE TABLE simple (justint int);" | time $FrontEnd`;
5+
}
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
if ( $TestDBMS =~ /^pgsql/ )
2+
{
3+
`echo "CREATE INDEX simpleidx ON simple (justint);" | time $FrontEnd`;
4+
}
5+

src/test/performance/sqls/drpsimple

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
if ( $TestDBMS =~ /^pgsql/ )
3+
{
4+
`echo "DROP TABLE simple;" | time $FrontEnd`;
5+
}

src/test/performance/sqls/inssimple

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
2+
#
3+
# Transactions are unsupported by MySQL - so for insertion of
4+
# 8192 rows, 1 INSERT per Xaction, we returned "Transactions unsupported"
5+
#
6+
if ( $TestDBMS =~ /^mysql/ && $XACTBLOCK eq '' )
7+
{
8+
print STDERR " No_Xact\n";
9+
return;
10+
}
11+
12+
`> .sqlf`; # clean file
13+
14+
#
15+
# PgSQL specific: if all queries from inssimple.data must be executed in
16+
# single xaction ($XACTBLOCK ne '') then add BEGIN/END arround queries
17+
#
18+
`echo "BEGIN;" >> .sqlf` if ( $TestDBMS =~ /^pgsql/ && $XACTBLOCK ne '' );
19+
20+
21+
`cat sqls/inssimple.data >> .sqlf`;
22+
23+
24+
# PgSQL (see above)
25+
`echo "END;" >> .sqlf` if ( $TestDBMS =~ /^pgsql/ && $XACTBLOCK ne '' );
26+
27+
# Ok - run queries
28+
`time $FrontEnd < .sqlf`;
29+

0 commit comments

Comments
 (0)