0027691: Remove dchrono from all test cases and move its to perf group
[occt.git] / tests / perf / modalg / bug26674
diff --git a/tests/perf/modalg/bug26674 b/tests/perf/modalg/bug26674
new file mode 100644 (file)
index 0000000..d9ede81
--- /dev/null
@@ -0,0 +1,23 @@
+puts "========"
+puts "OCC26674"
+puts "========"
+puts ""
+#################################################
+# Performance regression in BRepExtrema_DistShapeShape in OCCT 6.9.0 in compare with OCCT 6.7.1
+#################################################
+
+set max_time 1
+
+restore [locate_data_file OCC26674-face.brep] a1
+restore [locate_data_file OCC26674-shell.brep] a2
+
+dchrono cr restart
+distmini dd a1 a2
+dchrono cr stop counter distmini
+
+regexp {([-0-9.+eE]+)$} [dump dd_val] full dist
+
+set expected_dist 0.0
+set tol_abs_dist 1.0e-07
+set tol_rel_dist 0.0
+checkreal "Dump of dd_val" ${dist} ${expected_dist} ${tol_abs_dist} ${tol_rel_dist}