mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
29 lines
775 B
Plaintext
29 lines
775 B
Plaintext
puts "============"
|
|
puts "OCC27048"
|
|
puts "============"
|
|
puts ""
|
|
############################################################################
|
|
# Recalculation of BSpline cache causes a performance problems
|
|
############################################################################
|
|
|
|
pload XSDRAW
|
|
|
|
dchrono t reset
|
|
dchrono t start
|
|
testreadstep [locate_data_file bug27048.stp] result
|
|
dchrono t stop
|
|
set elapsed [dchrono t show]
|
|
|
|
regexp {CPU user time: ([-0-9.+eE]+) seconds} $elapsed full cpu_time
|
|
set max_time 40
|
|
|
|
if { $cpu_time > ${max_time} } {
|
|
puts "Error: reading document Doc is too long (greater than ${max_time} sec)"
|
|
} else {
|
|
puts "OK: performance reading document Doc is suitable"
|
|
}
|
|
|
|
smallview
|
|
fit
|
|
checkview -screenshot -2d -path ${imagedir}/${test_image}.png
|