Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
8ac356cd
Commit
8ac356cd
authored
Mar 21, 2015
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rm src/test/performance
Last changed in 1997. Report by Andres Freund
parent
1c7087af
Changes
13
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
0 additions
and
16613 deletions
+0
-16613
src/test/performance/results/PgSQL.970926
src/test/performance/results/PgSQL.970926
+0
-16
src/test/performance/runtests.pl
src/test/performance/runtests.pl
+0
-148
src/test/performance/sqls/connection
src/test/performance/sqls/connection
+0
-1
src/test/performance/sqls/crtsimple
src/test/performance/sqls/crtsimple
+0
-4
src/test/performance/sqls/crtsimpleidx
src/test/performance/sqls/crtsimpleidx
+0
-4
src/test/performance/sqls/drpsimple
src/test/performance/sqls/drpsimple
+0
-4
src/test/performance/sqls/inssimple
src/test/performance/sqls/inssimple
+0
-28
src/test/performance/sqls/inssimple.data
src/test/performance/sqls/inssimple.data
+0
-8192
src/test/performance/sqls/orbsimple
src/test/performance/sqls/orbsimple
+0
-1
src/test/performance/sqls/slcsimple
src/test/performance/sqls/slcsimple
+0
-13
src/test/performance/sqls/slcsimple.data
src/test/performance/sqls/slcsimple.data
+0
-8192
src/test/performance/sqls/vacuum
src/test/performance/sqls/vacuum
+0
-4
src/test/performance/start-pgsql.sh
src/test/performance/start-pgsql.sh
+0
-6
No files found.
src/test/performance/results/PgSQL.970926
deleted
100644 → 0
View file @
1c7087af
DBMS: PostgreSQL 6.2b10
OS: FreeBSD 2.1.5-RELEASE
HardWare: i586/90, 24M RAM, IDE
StartUp: postmaster -B 256 '-o -S 2048' -S
Compiler: gcc 2.6.3
Compiled: -O, without CASSERT checking, with
-DTBL_FREE_CMD_MEMORY (to free memory
if BEGIN/END after each query execution)
DB connection startup: 0.20
8192 INSERTs INTO SIMPLE (1 xact): 39.58
8192 INSERTs INTO SIMPLE (8192 xacts): 1190.98
Create INDEX on SIMPLE: 3.69
8192 INSERTs INTO SIMPLE with INDEX (1 xact): 46.65
8192 random INDEX scans on SIMPLE (1 xact): 65.49
ORDER BY SIMPLE: 2.27
src/test/performance/runtests.pl
deleted
100755 → 0
View file @
1c7087af
#!/usr/bin/perl
#
# Accepts one argument - DBMS name (pgsql, ...) and initializes
# global variable $TestDBMS with this name.
#
# Where to run tests
$DBNAME
=
'
perftest
';
# This describtion for all DBMS supported by test
# DBMS_name => [FrontEnd, DestroyDB command, CreateDB command]
%
DBMS
=
('
pgsql
'
=>
[
"
psql -q -d
$DBNAME
",
"
destroydb
$DBNAME
",
"
createdb
$DBNAME
"
]);
# Tests to run: test' script, test' description, ...
# Test' script is in form
#
# script_name[.ntm][ T]
#
# script_name is name of file in ./sqls
# .ntm means that script will be used for some initialization
# and should not be timed: runtests.pl opens /dev/null as STDERR
# in this case and restore STDERR to result file after script done.
# Script shouldn't notice either he is running for test or for
# initialization purposes.
# T means that all queries in this test (initialization ?) are to be
# executed in SINGLE transaction. In this case global variable $XACTBLOCK
# is not empty string. Otherwise, each query in test is to be executed
# in own transaction ($XACTBLOCK is empty string). In accordance with
# $XACTBLOCK, script is to do DBMS specific preparation before execution
# of queries. (Look at example in sqls/inssimple for MySQL - it gives
# an idea of what can be done for features unsupported by an DBMS.)
#
@perftests
=
(
# It speed up things
'
connection.ntm
',
'
DB connection startup (no timing)
',
# Just connection startup time (echo "" | psql ... - for PgSQL)
'
connection
',
'
DB connection startup
',
'
crtsimple.ntm
',
'
Create SIMPLE table (no timing)
',
# 8192 inserts in single xaction
'
inssimple T
',
'
8192 INSERTs INTO SIMPLE (1 xact)
',
'
drpsimple.ntm
',
'
Drop SIMPLE table (no timing)
',
'
crtsimple.ntm
',
'
Create SIMPLE table (no timing)
',
# 8192 inserts in 8192 xactions
'
inssimple
',
'
8192 INSERTs INTO SIMPLE (8192 xacts)
',
'
vacuum.ntm
',
'
Vacuum (no timing)
',
# Fast (after table filled with data) index creation test
'
crtsimpleidx
',
'
Create INDEX on SIMPLE
',
'
drpsimple.ntm
',
'
Drop SIMPLE table (no timing)
',
'
crtsimple.ntm
',
'
Create SIMPLE table (no timing)
',
'
crtsimpleidx.ntm
',
'
Create INDEX on SIMPLE (no timing)
',
# 8192 inserts in single xaction into table with index
'
inssimple T
',
'
8192 INSERTs INTO SIMPLE with INDEX (1 xact)
',
# 8192 SELECT * FROM simple WHERE justint = <random_key> in single xaction
'
slcsimple T
',
'
8192 random INDEX scans on SIMPLE (1 xact)
',
# SELECT * FROM simple ORDER BY justint
'
orbsimple
',
'
ORDER BY SIMPLE
',);
#
# It seems that nothing below need to be changed
#
$TestDBMS
=
$ARGV
[
0
];
die
"
Unsupported DBMS
$TestDBMS
\n
"
if
!
exists
$DBMS
{
$TestDBMS
};
$FrontEnd
=
$DBMS
{
$TestDBMS
}[
0
];
$DestroyDB
=
$DBMS
{
$TestDBMS
}[
1
];
$CreateDB
=
$DBMS
{
$TestDBMS
}[
2
];
print
"
(Re)create DataBase
$DBNAME
\n
";
`
$DestroyDB
`;
# Destroy DB
`
$CreateDB
`;
# Create DB
$ResFile
=
"
Results.
$TestDBMS
";
$TmpFile
=
"
Tmp.
$TestDBMS
";
open
(
SAVEOUT
,
"
>&STDOUT
");
open
(
STDOUT
,
"
>/dev/null
")
or
die
;
open
(
SAVEERR
,
"
>&STDERR
");
open
(
STDERR
,
"
>
$TmpFile
")
or
die
;
select
(
STDERR
);
$|
=
1
;
for
(
$i
=
0
;
$i
<=
$#perftests
;
$i
++
)
{
$test
=
$perftests
[
$i
];
(
$test
,
$XACTBLOCK
)
=
split
(
/ /
,
$test
);
$runtest
=
$test
;
if
(
$test
=~
/\.ntm/
)
{
#
# No timing for this queries
#
close
(
STDERR
);
# close $TmpFile
open
(
STDERR
,
"
>/dev/null
")
or
die
;
$runtest
=~
s/\.ntm//
;
}
else
{
close
(
STDOUT
);
open
(
STDOUT
,
"
>&SAVEOUT
");
print
STDOUT
"
\n
Running:
$perftests
[
$i
+1] ...
";
close
(
STDOUT
);
open
(
STDOUT
,
"
>/dev/null
")
or
die
;
select
(
STDERR
);
$|
=
1
;
printf
"
$perftests
[
$i
+1]:
";
}
do
"
sqls/
$runtest
";
# Restore STDERR to $TmpFile
if
(
$test
=~
/\.ntm/
)
{
close
(
STDERR
);
open
(
STDERR
,
"
>>
$TmpFile
")
or
die
;
}
select
(
STDERR
);
$|
=
1
;
$i
++
;
}
close
(
STDERR
);
open
(
STDERR
,
"
>&SAVEERR
");
open
(
TMPF
,
"
<
$TmpFile
")
or
die
;
open
(
RESF
,
"
>
$ResFile
")
or
die
;
while
(
<
TMPF
>
)
{
$str
=
$_
;
(
$test
,
$rtime
)
=
split
(
/:/
,
$str
);
(
$tmp
,
$rtime
,
$rest
)
=
split
(
/[ ]+/
,
$rtime
);
print
RESF
"
$test
:
$rtime
\n
";
}
src/test/performance/sqls/connection
deleted
100644 → 0
View file @
1c7087af
`echo "" | time $FrontEnd`;
src/test/performance/sqls/crtsimple
deleted
100644 → 0
View file @
1c7087af
if ( $TestDBMS =~ /^pgsql/ )
{
`echo "CREATE TABLE simple (justint int);" | time $FrontEnd`;
}
src/test/performance/sqls/crtsimpleidx
deleted
100644 → 0
View file @
1c7087af
if ( $TestDBMS =~ /^pgsql/ )
{
`echo "CREATE INDEX simpleidx ON simple (justint);" | time $FrontEnd`;
}
src/test/performance/sqls/drpsimple
deleted
100644 → 0
View file @
1c7087af
if ( $TestDBMS =~ /^pgsql/ )
{
`echo "DROP TABLE simple;" | time $FrontEnd`;
}
src/test/performance/sqls/inssimple
deleted
100644 → 0
View file @
1c7087af
# src/test/performance/sqls/inssimple
#
# Transactions are unsupported by MySQL - so for insertion of
# 8192 rows, 1 INSERT per Xaction, we returned "Transactions unsupported"
#
if ( $TestDBMS =~ /^mysql/ && $XACTBLOCK eq '' )
{
print STDERR " No_Xact\n";
return;
}
`> .sqlf`; # clean file
#
# PgSQL specific: if all queries from inssimple.data must be executed in
# single xaction ($XACTBLOCK ne '') then add BEGIN/END arround queries
#
`echo "BEGIN;" >> .sqlf` if ( $TestDBMS =~ /^pgsql/ && $XACTBLOCK ne '' );
`cat sqls/inssimple.data >> .sqlf`;
# PgSQL (see above)
`echo "END;" >> .sqlf` if ( $TestDBMS =~ /^pgsql/ && $XACTBLOCK ne '' );
# Ok - run queries
`time $FrontEnd < .sqlf`;
src/test/performance/sqls/inssimple.data
deleted
100644 → 0
View file @
1c7087af
This diff is collapsed.
Click to expand it.
src/test/performance/sqls/orbsimple
deleted
100644 → 0
View file @
1c7087af
`echo "SELECT * FROM simple ORDER BY justint;" | time $FrontEnd`;
src/test/performance/sqls/slcsimple
deleted
100644 → 0
View file @
1c7087af
`> .sqlf`;
# PgSQL specific to execute all queries in single xaction
`echo "BEGIN;" >> .sqlf` if ( $TestDBMS =~ /^pgsql/ && $XACTBLOCK ne '' );
`cat sqls/slcsimple.data >> .sqlf`;
`echo "END;" >> .sqlf` if ( $TestDBMS =~ /^pgsql/ && $XACTBLOCK ne '' );
# Run queries
`time $FrontEnd < .sqlf`;
src/test/performance/sqls/slcsimple.data
deleted
100644 → 0
View file @
1c7087af
This diff is collapsed.
Click to expand it.
src/test/performance/sqls/vacuum
deleted
100644 → 0
View file @
1c7087af
if ( $TestDBMS =~ /^pgsql/ )
{
`time $FrontEnd -c 'vacuum'`;
}
src/test/performance/start-pgsql.sh
deleted
100755 → 0
View file @
1c7087af
#!/bin/sh
# Please choose amount of sort memory (-S XXX) as appropriate
# for your system: more is better, but swapping breaks performance!
exec
postmaster
'-o -S 2048'
-S
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment