5 #######################################################################
6 # BOP perfomance improvemen
7 #######################################################################
11 restore [locate_data_file OCC10160-2.brep] b1
12 restore [locate_data_file OCC10160-3.brep] b2
16 puts "Prepare boolean operation ..."
17 dchrono h0 reset; dchrono h0 start
19 dchrono h0 stop; set CPU_time0_List [dchrono h0 show]
20 regexp {CPU user time: ([-0-9.+eE]+) seconds} $CPU_time0_List full CPU_user_time0
21 puts "CPU_user_time0=${CPU_user_time0}"
23 puts "Start boolean operation ..."
24 dchrono h reset; dchrono h start
26 # BOOLEAN OPERATION ----- START
28 for {set i 1} {$i <= ${NbTests}} {incr i} {
32 # BOOLEAN OPERATION ----- FINISH
34 dchrono h stop; set CPU_time_List [dchrono h show]
35 regexp {CPU user time: ([-0-9.+eE]+) seconds} $CPU_time_List full CPU_user_time
36 puts "Finish boolean operation ..."
37 puts "CPU_user_time=${CPU_user_time}"
38 set CPU_user_time [expr ${CPU_user_time} / ${NbTests}]
39 puts "CPU_user_time=${CPU_user_time}"
41 set square 6.38359e+06
43 # Analysis of "nbshapes res"
51 set nb_compound_good 1