1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-05 18:16:23 +03:00
occt/tests/bugs/modalg_6/bug27021
pdn 8447359f09 0027021: TopExp::Vertices performance optimization
TopExp::Vertices optimized for sequential calls. BRep_Tool::Curve performance regression fixed. Update for fetching point done.

Casts modified to pointers

Test case for issue CR27021

gcc warnings elimination
2016-01-13 14:41:49 +03:00

48 lines
1.4 KiB
Plaintext

puts "========"
puts "OCC27021"
puts "========"
puts ""
###########################################################
# TopExp::Vertices performance optimization
###########################################################
pload QAcommands
if { [regexp {Debug mode} [dversion]] } {
if { [regexp {Windows} [dversion]] } {
set max_time 8.
set max_time2 5.
} else {
set max_time 8.
set max_time2 5.
}
} else {
if { [regexp {Windows} [dversion]] } {
set max_time 8.
set max_time2 5.
} else {
set max_time 8.
set max_time2 5.
}
}
restore [locate_data_file bug27021_shape.brep] f
set log [OCC27021 f]
regexp {Retrieving 100000000 vertices using approach A\)\.\.\.done in ([-0-9.+eE]+) seconds} ${log} full A_sec
regexp {Retrieving 100000000 vertices using approach B\)\.\.\.done in ([-0-9.+eE]+) seconds} ${log} full B_sec
if { ${A_sec} > ${max_time} } {
puts "Retrieving 100000000 vertices using approach A) is more than ${max_time} seconds - Faulty"
} else {
puts "Retrieving 100000000 vertices using approach A) is less than ${max_time} seconds - OK"
}
if { ${B_sec} > ${max_time2} } {
puts "Retrieving 100000000 vertices using approach A) is more than ${max_time2} seconds - Faulty"
} else {
puts "Retrieving 100000000 vertices using approach A) is less than ${max_time2} seconds - OK"
}