| 1 | puts "==========" |
| 2 | puts "OCC24024" |
| 3 | puts "==========" |
| 4 | puts "" |
| 5 | ###################################### |
| 6 | # Slow import of specific STEP data |
| 7 | ###################################### |
| 8 | |
| 9 | dchrono h reset |
| 10 | dchrono h start |
| 11 | stepread [locate_data_file bug24024_slow_import.stp] a * |
| 12 | dchrono h stop |
| 13 | |
| 14 | tpcompound result |
| 15 | |
| 16 | set info [dchrono h show] |
| 17 | regexp {CPU user time: ([-0-9.+eE]+) seconds} $info full cpu_time |
| 18 | if { $cpu_time > 300 } { |
| 19 | puts "Error: performance of import of data is low" |
| 20 | } else { |
| 21 | puts "OK: performance of import of data is high" |
| 22 | } |
| 23 | |
| 24 | set 2dviewer 1 |
| 25 | |