0027691: Remove dchrono from all test cases and move its to perf group
[occt.git] / tests / perf / modalg / bug10160_11
CommitLineData
61c421bf 1puts "============"
2puts "OCC10160"
3puts "============"
4puts ""
5#######################################################################
6# BOP perfomance improvemen
7#######################################################################
8
9set BugNumber OCC10160
10
11restore [locate_data_file OCC10160-2.brep] b1
12restore [locate_data_file OCC10160-3.brep] b2
13
14set NbTests 3
15
16puts "Prepare boolean operation ..."
44fae8b1 17dchrono h0 restart
61c421bf 18bop b1 b2
44fae8b1 19dchrono h0 stop counter bop
61c421bf 20
21puts "Start boolean operation ..."
44fae8b1 22dchrono h restart
61c421bf 23#
24# BOOLEAN OPERATION ----- START
25#
26for {set i 1} {$i <= ${NbTests}} {incr i} {
27 bopcut result
28}
29#
30# BOOLEAN OPERATION ----- FINISH
31#
44fae8b1 32dchrono h stop counter bopcut
61c421bf 33
58cf74e0 34checkprops result -s 3.05154e+07
35checkshape result
61c421bf 36
37# Analysis of "nbshapes res"
a4eba920 38checknbshapes result -vertex 96 -edge 143 -wire 51 -face 48 -shell 1 -solid 1 -compsolid 0 -compound 1 -shape 341
5747059b 39checkview -display result -2d -path ${imagedir}/${test_image}.png