586db386 |
1 | puts "============" |
2 | puts "OCC26922" |
3 | puts "============" |
4 | puts "" |
5 | ############################### |
6 | ## Huge performance issue writing data to the output stream |
7 | ############################### |
8 | |
9 | pload XDE |
10 | |
11 | if { [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 | |
25 | psphere result 50. |
26 | incmesh result 0.01 |
5d7a0489 |
27 | trinfo result |
586db386 |
28 | |
29 | set time_info [time {writevrml result ${imagedir}/bug26922.wrl 2 2}] |
30 | regexp {([-0-9.+eE]+)} ${time_info} full time_performance |
31 | set time_performance [expr {${time_performance} / 1e6}] |
32 | puts "Performance data writing into the file is ${time_performance} seconds" |
33 | |
34 | if { ${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 | } |