1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0024024: Slow import of specific STEP data

Added test case bugs/step/bug24024
This commit is contained in:
apn
2014-01-30 12:33:15 +04:00
committed by abv
parent f5600b5c5f
commit 0ccbaa485f

25
tests/bugs/step/bug24024 Normal file
View File

@@ -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