0023766: Shape orientation processing mechanism redesign
[occt.git] / tests / bugs / caf / bug5023
CommitLineData
352ffd73 1puts "================"
2puts "OCC5023"
3puts "================"
4puts ""
5######################################################
6# Performance regression in opening OCAF file
7######################################################
8
9set aFile [locate_data_file OCC5023.std]
10
11puts "Info: Restore the document"
12
13if [info exists DD] {
14 catch {Close DD}; unset DD
15}
16
17dchrono h reset
18dchrono h start
19
20Open ${aFile} DD
21dchrono h stop
22set list [dchrono h show]
23Close DD
24
25regexp {CPU user time: +([-0-9.+eE]+)} $list full CPU_user_time
26
27set Good_CPU_user_time 2.
28
29set CPU_user_time_percent [expr (${CPU_user_time} - ${Good_CPU_user_time}) / ${Good_CPU_user_time} * 100.]
30set percent_max 0.1
31
32puts "CPU_user_time = ${CPU_user_time}"
33puts "Good_CPU_user_time = ${Good_CPU_user_time}"
34puts "CPU_user_time_percent = ${CPU_user_time_percent}"
35
36if {${CPU_user_time_percent} > ${percent_max}} {
37 puts "Faulty OCC5023 : CPU user time is wrong"
38}
39