0027691: Remove dchrono from all test cases and move its to perf group
[occt.git] / tests / bugs / moddata_3 / bug27048_2
1 puts "============"
2 puts "OCC27048"
3 puts "============"
4 puts ""
5 ############################################################################
6 #  Recalculation of BSpline cache causes a performance problems
7 ############################################################################
8
9 pload XSDRAW
10
11 dchrono t reset
12 dchrono t start
13 testreadstep [locate_data_file bug27048.stp] result
14 dchrono t stop
15 set elapsed [dchrono t show]
16
17 regexp {CPU user time: ([-0-9.+eE]+) seconds} $elapsed full cpu_time
18 set max_time 40
19
20 if { $cpu_time > ${max_time} } {
21     puts "Error: reading document Doc is too long (greater than ${max_time} sec)"
22 } else {
23     puts "OK: performance reading document Doc is suitable"
24 }
25
26 smallview
27 fit
28 checkview -screenshot -2d -path ${imagedir}/${test_image}.png