0027145: Remove redundant usage of GetPercent procedure
[occt.git] / tests / bugs / fclasses / bug26922
CommitLineData
586db386 1puts "============"
2puts "OCC26922"
3puts "============"
4puts ""
5###############################
6## Huge performance issue writing data to the output stream
7###############################
8
9pload XDE
10
11if { [regexp {Debug mode} [dversion]] } {
12 if { [regexp {Windows} [dversion]] } {
13 set max_time 0.5
14 } else {
15 set max_time 0.5
16 }
17} else {
18 if { [regexp {Windows} [dversion]] } {
19 set max_time 0.5
20 } else {
21 set max_time 0.5
22 }
23}
24
25psphere result 50.
26incmesh result 0.01
5d7a0489 27trinfo result
586db386 28
29set time_info [time {writevrml result ${imagedir}/bug26922.wrl 2 2}]
30regexp {([-0-9.+eE]+)} ${time_info} full time_performance
31set time_performance [expr {${time_performance} / 1e6}]
32puts "Performance data writing into the file is ${time_performance} seconds"
33
34if { ${time_performance} > ${max_time} } {
35 puts "Elapsed time of data writing into the file is more than ${max_time} seconds - Faulty"
36} else {
37 puts "Elapsed time of data writing into the file is less than ${max_time} seconds - OK"
38}