2 # Copyright (C) 2007-2008 CEA/DEN, EDF R&D
4 # This library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2.1 of the License.
9 # This library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 # Lesser General Public License for more details.
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with this library; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 # should be run from the build directory, so that ./PerfTest is available
23 RES_FILE=perf_OPTIMIZE
25 #outputs lines of form :
26 #"no. source elems no. target elems user time"
28 echo -n $1 | sed 's/\(PerfCyl\)\([0-9]*\)/\2/' | sed 's/\(PerfBoxT\)\([0-9]*\)/\2/' | sed 's/\(PerfBox\)\([0-9]*\)/\2/' >> $RES_FILE
29 echo -n " " >> $RES_FILE
30 echo -n $2 | sed 's/\(PerfCyl\)\([0-9]*\)/\2/' | sed 's/\(PerfBoxT\)\([0-9]*\)/\2/' | sed 's/\(PerfBox\)\([0-9]*\)/\2/' >> $RES_FILE
31 echo -n " " >> $RES_FILE
32 time -o $RES_FILE --append -f"%U" ./PerfTest $1 $2
36 function test_box_box {
37 echo PerfBox PerfBox >> $RES_FILE
39 test_pair PerfBox1495 PerfBox1495
40 test_pair PerfBox2506 PerfBox2506
41 test_pair PerfBox5708 PerfBox5708
42 test_pair PerfBox13461 PerfBox13461
43 test_pair PerfBox30808 PerfBox30808
44 test_pair PerfBox47176 PerfBox47176
46 test_pair PerfBox1495 PerfBox2506
47 test_pair PerfBox1495 PerfBox5708
48 test_pair PerfBox1495 PerfBox13461
49 test_pair PerfBox1495 PerfBox30808
50 test_pair PerfBox1495 PerfBox47176
52 test_pair PerfBox2506 PerfBox5708
53 test_pair PerfBox2506 PerfBox13461
54 test_pair PerfBox2506 PerfBox30808
55 test_pair PerfBox2506 PerfBox47176
57 test_pair PerfBox5708 PerfBox13461
58 test_pair PerfBox5708 PerfBox30808
59 test_pair PerfBox5708 PerfBox47176
61 test_pair PerfBox13461 PerfBox30808
62 test_pair PerfBox13461 PerfBox47176
64 test_pair PerfBox30808 PerfBox47176
68 function test_cyl_cyl {
69 echo PerfCyl PerfCyl >> $RES_FILE
71 test_pair PerfCyl1047 PerfCyl1047
72 test_pair PerfCyl3020 PerfCyl3020
73 test_pair PerfCyl6556 PerfCyl6556
74 test_pair PerfCyl9766 PerfCyl9766
75 test_pair PerfCyl25745 PerfCyl25745
76 test_pair PerfCyl47601 PerfCyl47601
78 test_pair PerfCyl1047 PerfCyl3020
79 test_pair PerfCyl1047 PerfCyl6556
80 test_pair PerfCyl1047 PerfCyl9766
81 test_pair PerfCyl1047 PerfCyl25745
82 test_pair PerfCyl1047 PerfCyl47601
84 test_pair PerfCyl3020 PerfCyl6556
85 test_pair PerfCyl3020 PerfCyl9766
86 test_pair PerfCyl3020 PerfCyl25745
87 test_pair PerfCyl3020 PerfCyl47601
89 test_pair PerfCyl6556 PerfCyl9766
90 test_pair PerfCyl6556 PerfCyl25745
91 test_pair PerfCyl6556 PerfCyl47601
93 test_pair PerfCyl9766 PerfCyl25745
94 test_pair PerfCyl9766 PerfCyl47601
96 test_pair PerfCyl25745 PerfCyl47601
100 function test_box_cyl {
101 echo PerfBox PerfCyl >> $RES_FILE
102 test_pair PerfBox1495 PerfCyl1047
103 test_pair PerfBox1495 PerfCyl3020
104 test_pair PerfBox1495 PerfCyl6556
105 test_pair PerfBox1495 PerfCyl9766
106 test_pair PerfBox1495 PerfCyl25745
107 test_pair PerfBox1495 PerfCyl47601
109 test_pair PerfBox2506 PerfCyl1047
110 test_pair PerfBox2506 PerfCyl3020
111 test_pair PerfBox2506 PerfCyl6556
112 test_pair PerfBox2506 PerfCyl9766
113 test_pair PerfBox2506 PerfCyl25745
114 test_pair PerfBox2506 PerfCyl47601
116 test_pair PerfBox5708 PerfCyl1047
117 test_pair PerfBox5708 PerfCyl3020
118 test_pair PerfBox5708 PerfCyl6556
119 test_pair PerfBox5708 PerfCyl9766
120 test_pair PerfBox5708 PerfCyl25745
121 test_pair PerfBox5708 PerfCyl47601
123 test_pair PerfBox13461 PerfCyl1047
124 test_pair PerfBox13461 PerfCyl3020
125 test_pair PerfBox13461 PerfCyl6556
126 test_pair PerfBox13461 PerfCyl9766
127 test_pair PerfBox13461 PerfCyl25745
128 test_pair PerfBox13461 PerfCyl47601
130 test_pair PerfBox30808 PerfCyl1047
131 test_pair PerfBox30808 PerfCyl3020
132 test_pair PerfBox30808 PerfCyl6556
133 test_pair PerfBox30808 PerfCyl9766
134 test_pair PerfBox30808 PerfCyl25745
135 test_pair PerfBox30808 PerfCyl47601
137 test_pair PerfBox47176 PerfCyl1047
138 test_pair PerfBox47176 PerfCyl3020
139 test_pair PerfBox47176 PerfCyl6556
140 test_pair PerfBox47176 PerfCyl9766
141 test_pair PerfBox47176 PerfCyl25745
142 test_pair PerfBox47176 PerfCyl47601
145 function test_box_transbox {
146 echo PerfBox PerfBoxT >> $RES_FILE
147 test_pair PerfBox1495 PerfBoxT1493
148 test_pair PerfBox2506 PerfBoxT2676
149 test_pair PerfBox5708 PerfBoxT5717
150 test_pair PerfBox13461 PerfBoxT12469
151 test_pair PerfBox30808 PerfBoxT29019
152 test_pair PerfBox47176 PerfBoxT47278
157 #functions to execute :
159 echo PerfTest execution on `date` > $RES_FILE