0027691: Remove dchrono from all test cases and move its to perf group
[occt.git] / tests / perf / modalg / bug10160_12
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 boptuc result
28}
29#
30# BOOLEAN OPERATION ----- FINISH
31#
44fae8b1 32dchrono h stop counter boptuc
61c421bf 33
58cf74e0 34checkprops result -s 6.38359e+06
35checkshape result
61c421bf 36
37# Analysis of "nbshapes res"
a4eba920 38checknbshapes result -vertex 108 -edge 161 -wire 61 -face 60 -shell 3 -solid 3 -compsolid 0 -compound 1 -shape 397
5747059b 39checkview -display result -2d -path ${imagedir}/${test_image}.png