5 #################################################
6 # Performance regression in BRepExtrema_DistShapeShape in OCCT 6.9.0 in compare with OCCT 6.7.1
7 #################################################
11 restore [locate_data_file OCC26674-face.brep] a1
12 restore [locate_data_file OCC26674-shell.brep] a2
21 set log [dchrono cr show]
23 regexp {CPU user time: ([-0-9.+eE]+) seconds} $log full z
26 if { $z > ${max_time} } {
27 puts "Elapsed time of BRepExtrema_DistShapeShape is more than ${max_time} seconds - Error"
29 puts "Elapsed time of BRepExtrema_DistShapeShape is less than ${max_time} seconds - OK"
32 regexp {([-0-9.+eE]+)$} [dump dd_val] full dist
35 set tol_abs_dist 1.0e-07
37 checkreal "Dump of dd_val" ${dist} ${expected_dist} ${tol_abs_dist} ${tol_rel_dist}