Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit142d42f

Browse files
committed
Scripts to run queries and data.
1 parentdbde5ca commit142d42f

File tree

10 files changed

+16451
-0
lines changed

10 files changed

+16451
-0
lines changed

‎src/test/performance/sqls/connection

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
`echo "" | time $FrontEnd`;

‎src/test/performance/sqls/crtsimple

Lines changed: 5 additions & 0 deletions
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+
}
Lines changed: 5 additions & 0 deletions
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

Lines changed: 5 additions & 0 deletions
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

Lines changed: 29 additions & 0 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp