61c421bf |
1 | puts "TODO ?OCC12345 ALL: Elapsed time is more then 20.0 seconds - Faulty" |
2 | puts "TODO ?OCC12345 ALL: Faulty OCC1454" |
3 | |
4 | puts "===== OCC1454 =====" |
5 | ####################################################################################### |
6 | # Improve performance of TDF_Label::FindChild |
7 | ####################################################################################### |
8 | |
9 | puts "Info: Open the document with 80000 sublabels of the label 0:2" |
10 | chrono h reset; chrono h start |
11 | Open [locate_data_file OCC1726.std] D |
12 | chrono h stop; set TimeList [chrono h show] |
13 | |
14 | set ElapsedTime_min [lindex ${TimeList} 4] |
15 | set ElapsedTime_sec [lindex ${TimeList} 6] |
16 | set CPUusertime [lindex ${TimeList} 11] |
17 | set CPUsystemtime [lindex ${TimeList} 16] |
18 | puts "ElapsedTime = ${ElapsedTime_min} min ${ElapsedTime_sec} sec CPUusertime = ${CPUusertime} CPUsystemtime = ${CPUsystemtime}" |
19 | |
20 | if { ${ElapsedTime_sec} > 20.0 || ${ElapsedTime_min} != 0 } { |
21 | puts "Elapsed time is more then 20.0 seconds - Faulty" |
22 | puts "Faulty OCC1454" |
23 | } elseif { ${CPUusertime} > 12 } { |
24 | puts "CPUusertime is more then 12 seconds - Faulty" |
25 | puts "Faulty OCC1454" |
26 | } elseif { ${CPUsystemtime} > 0.6 } { |
27 | puts "CPUsystemtime is more then 0.6 seconds" |
28 | puts "Faulty OCC1454" |
29 | } else { |
30 | puts "Elapsed time is less then 20 seconds - OK" |
31 | puts "CPU user time is less then 12 seconds - OK" |
32 | puts "CPU system time is less then 0.6 seconds - OK" |
33 | puts "OK for OCC1454" |
34 | } |