0024024: Slow import of specific STEP data
authorapn <apn@opencascade.com>
Thu, 30 Jan 2014 08:33:15 +0000 (12:33 +0400)
committerbugmaster <bugmaster@opencascade.com>
Thu, 30 Jan 2014 10:27:23 +0000 (14:27 +0400)
Added test case bugs/step/bug24024

tests/bugs/step/bug24024 [new file with mode: 0644]

diff --git a/tests/bugs/step/bug24024 b/tests/bugs/step/bug24024
new file mode 100644 (file)
index 0000000..bdbfbd7
--- /dev/null
@@ -0,0 +1,25 @@
+puts "=========="
+puts "OCC24024"
+puts "=========="
+puts ""
+######################################
+# Slow import of specific STEP data
+######################################
+
+dchrono h reset
+dchrono h start
+stepread [locate_data_file bug24024_slow_import.stp] a *
+dchrono h stop
+
+tpcompound result
+
+set info [dchrono h show]
+regexp {CPU user time: ([-0-9.+eE]+) seconds} $info full cpu_time
+if { $cpu_time > 300 } {
+    puts "Error: performance of import of data is low"
+} else {
+    puts "OK: performance of import of data is high"
+}
+
+set 2dviewer 1
+