1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-10 18:51:21 +03:00
occt/tests/bugs/caf/bug1454
apn 9aa684edf4 0025987: Integration part of modified unstable test cases
Unstable test cases were reviewed
Modified test cases using checktrend command
Modified test cases for Linux platform
Modified test cases for Debug mode
2015-03-26 18:10:29 +03:00

35 lines
1.4 KiB
Plaintext

puts "===== OCC1454 ====="
#######################################################################################
# Improve performance of TDF_Label::FindChild
#######################################################################################
puts "Info: Open the document with 80000 sublabels of the label 0:2"
dchrono h reset
dchrono h start
Open [locate_data_file OCC1726.std] D
dchrono h stop
set TimeList [dchrono h show]
regexp {Elapsed time: [-0-9.+eE]+ Hours ([-0-9.+eE]+) Minutes ([-0-9.+eE]+) Seconds} $TimeList full ElapsedTime_min ElapsedTime_sec
regexp {CPU user time: ([-0-9.+eE]+) seconds} $TimeList full CPUusertime
regexp {CPU system time: ([-0-9.+eE]+) seconds} $TimeList full CPUsystemtime
puts "ElapsedTime = ${ElapsedTime_min} min ${ElapsedTime_sec} sec CPUusertime = ${CPUusertime} CPUsystemtime = ${CPUsystemtime}"
if { ${ElapsedTime_sec} > 20.0 || ${ElapsedTime_min} != 0 } {
puts "Elapsed time is more then 20.0 seconds - Faulty"
puts "Faulty OCC1454"
} elseif { ${CPUusertime} > 12 } {
puts "CPUusertime is more then 12 seconds - Faulty"
puts "Faulty OCC1454"
} elseif { ${CPUsystemtime} > 0.6 } {
puts "CPUsystemtime is more then 0.6 seconds"
puts "Faulty OCC1454"
} else {
puts "Elapsed time is less then 20 seconds - OK"
puts "CPU user time is less then 12 seconds - OK"
puts "CPU system time is less then 0.6 seconds - OK"
puts "OK for OCC1454"
}