mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-04 18:06:22 +03:00
0026327: Performance degradation from version 6.8.0 on Boolean operations
Test case for issue CR26327
This commit is contained in:
parent
c8f62d27b0
commit
6b13d5288e
45
tests/bugs/modalg_6/bug26327
Executable file
45
tests/bugs/modalg_6/bug26327
Executable file
@ -0,0 +1,45 @@
|
||||
puts "============"
|
||||
puts "OCC24596"
|
||||
puts "============"
|
||||
puts ""
|
||||
###############################
|
||||
## Slow import of IGES data
|
||||
###############################
|
||||
|
||||
pload XDE
|
||||
|
||||
if { [regexp {Debug mode} [dversion]] } {
|
||||
if { [regexp {Windows} [dversion]] } {
|
||||
set max_time 30
|
||||
} else {
|
||||
set max_time 30
|
||||
}
|
||||
} else {
|
||||
if { [regexp {Windows} [dversion]] } {
|
||||
set max_time 10
|
||||
} else {
|
||||
set max_time 10
|
||||
}
|
||||
}
|
||||
|
||||
dchrono h reset
|
||||
dchrono h start
|
||||
|
||||
stepread [locate_data_file bug26327_fuse_input.stp] a *
|
||||
|
||||
for {set i 2} {$i < 22} {incr i} {
|
||||
puts "a_$i"
|
||||
bfuse a_1 a_1 a_$i
|
||||
}
|
||||
|
||||
dchrono h stop
|
||||
set q [dchrono h show]
|
||||
|
||||
regexp {CPU user time: ([-0-9.+eE]+) seconds} $q full z
|
||||
puts "$z"
|
||||
|
||||
if { $z > ${max_time} } {
|
||||
puts "Elapsed time of import of IGES data is more than ${max_time} seconds - Faulty"
|
||||
} else {
|
||||
puts "Elapsed time of import of IGES data is less than ${max_time} seconds - OK"
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user