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"
23 set currentOS $tcl_platform(os)
25 # Check prformance on Windows
26 if {[string compare $currentOS "Windows NT"] == 0} {
27 if {[regexp {Debug mode} [dversion]]} {
29 # initial CPU_time for WINDOWS in DEBUG mode is 410 ((186+19)*2) sec
30 puts "Checking WINDOWS performance in debug mode..."
31 if {$CPU_time > 410.} {
32 puts "ERROR: OCC25487 is reproduced."
33 puts " Low performance: $CPU_time (but should be less than 410 sec)"
39 # initial CPU_time for WINDOWS in OPTIMIZE mode is 205 (186+19) sec
40 puts "Checking WINDOWS performance in optimize mode..."
41 if {$CPU_time > 205.} {
42 puts "ERROR: OCC25487 is reproduced."
43 puts " Low performance: $CPU_time (but should be less than 205 sec)"
50 # Check performance on Linux
51 if {[string compare $currentOS "Linux"] == 0} {
52 if {[regexp {Debug mode} [dversion]]} {
54 # initial CPU_time for LINUX in DEBUG mode is 292 ((132+14)*2) sec
55 puts "Checking LINUX performance in debug mode..."
56 if {$CPU_time > 292.} {
57 puts "ERROR: OCC25487 is reproduced."
58 puts " Low performance: $CPU_time (but should be less than 292 sec)"
64 # initial CPU_time for LINUX in OPTIMIZE mode is 146 (132+14) sec
65 puts "Checking LINUX performance in optimize mode..."
66 if {$CPU_time > 146.} {
67 puts "ERROR: OCC25487 is reproduced."
68 puts " Low performance: $CPU_time (but should be less than 146 sec)"