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
8c73dfcc
Commit
8c73dfcc
authored
Oct 03, 2005
by
Teodor Sigaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Optimize benchmark query and update benchmark's results.
parent
a87174dc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
12 deletions
+14
-12
contrib/intarray/README.intarray
contrib/intarray/README.intarray
+11
-11
contrib/intarray/bench/bench.pl
contrib/intarray/bench/bench.pl
+3
-1
No files found.
contrib/intarray/README.intarray
View file @
8c73dfcc
...
...
@@ -144,21 +144,21 @@ BENCHMARK:
see availbale options.
a)test without RD-Tree (OR)
./bench.pl -d TEST -s 1,2 -v
./bench.pl -d TEST -
c -
s 1,2 -v
b)test with RD-Tree
./bench.pl -d TEST -s 1,2 -v -r
./bench.pl -d TEST -
c -
s 1,2 -v -r
BENCHMARKS:
Size of table <message>: 200000
Size of table <message_section_map>: 26
8538
Size of table <message_section_map>: 26
9133
Distribution of messages by sections:
section 0: 7
3899
messages
section 1: 162
98
messages
section 50: 12
41
messages
section 99:
705
messages
section 0: 7
4377
messages
section 1: 162
84
messages
section 50: 12
29
messages
section 99:
683
messages
old - without RD-Tree support,
new - with RD-Tree
...
...
@@ -168,11 +168,11 @@ new - with RD-Tree
| +-------+-------+--------+-------+
| | old | new | old | new |
+----------+-------+-------+--------+-------+
| 1|
1.427| 0.215
| -| -|
| 1|
0.625| 0.101
| -| -|
+----------+-------+-------+--------+-------+
| 99|
1.029| 0.018
| -| -|
| 99|
0.018| 0.017
| -| -|
+----------+-------+-------+--------+-------+
| 1,2|
1.829| 0.334| 5.654| 0.042
|
| 1,2|
0.766| 0.133| 0.628| 0.045
|
+----------+-------+-------+--------+-------+
| 1,2,50,6
0| 2.057| 0.359| 5.044| 0.007
|
| 1,2,50,6
5| 0.794| 0.141| 0.030| 0.006
|
+----------+-------+-------+--------+-------+
contrib/intarray/bench/bench.pl
View file @
8c73dfcc
...
...
@@ -42,7 +42,9 @@ if ( $opt{a} ) {
push
@where
,
"
message.sections @ '{
$opt
{s}}'
";
}
else
{
foreach
my
$sid
(
split
(
/[,\s]+/
,
$opt
{
s} )) {
push @where, "EXISTS ( select message_section_map.mid from message_section_map where message.mid=message_section_map.mid and message_section_map.sid = $sid )";
push @where, "message.mid = msp$sid.mid";
push @where, "msp$sid.sid = $sid";
$table{"message_section_map msp$sid"}=1;
}
}
}
else
{
...
...
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