5 ##########################################
6 # Extrema_GenExtPS needs to be optimized
7 ##########################################
9 pload DATAEXCHANGEKERNEL
11 # Restore testing shape and get timing characteristics for operation stepread
14 stepread [locate_data_file OCC25487_LP1.stp] a *
17 # Get elapsed time for operation stepread
18 set chrono_info [dchrono perf_h show]
19 regexp {CPU user time: ([-0-9.+eE]+) seconds} $chrono_info full CPU_time
20 puts "Elapsed time is: $CPU_time"
22 # Check prformance on Windows
23 if { [checkplatform -windows] } {
24 if {[regexp {Debug mode} [dversion]]} {
26 # initial CPU_time for WINDOWS in DEBUG mode is 410 ((186+19)*2) sec
27 puts "Checking WINDOWS performance in debug mode..."
28 if {$CPU_time > 410.} {
29 puts "ERROR: OCC25487 is reproduced."
30 puts " Low performance: $CPU_time (but should be less than 410 sec)"
36 # initial CPU_time for WINDOWS in OPTIMIZE mode is 205 (186+19) sec
37 puts "Checking WINDOWS performance in optimize mode..."
38 if {$CPU_time > 205.} {
39 puts "ERROR: OCC25487 is reproduced."
40 puts " Low performance: $CPU_time (but should be less than 205 sec)"
46 if {[regexp {Debug mode} [dversion]]} {
48 # initial CPU_time for LINUX in DEBUG mode is 900 sec
49 puts "Checking LINUX performance in debug mode..."
50 if {$CPU_time > 900.} {
51 puts "ERROR: OCC25487 is reproduced."
52 puts " Low performance: $CPU_time (but should be less than 900 sec)"
58 # initial CPU_time for LINUX in OPTIMIZE mode is 190 (173+17) sec
59 puts "Checking LINUX performance in optimize mode..."
60 if {$CPU_time > 190.} {
61 puts "ERROR: OCC25487 is reproduced."
62 puts " Low performance: $CPU_time (but should be less than 190 sec)"