3bea4c16 |
1 | puts "============" |
2 | puts "OCC19793" |
3 | puts "============" |
4 | puts "" |
5 | ####################################################################### |
6 | # Fuse problem of symetrical shapes. Appendix for NPAL19789 |
7 | ####################################################################### |
8 | |
4292bee1 |
9 | cpulimit 2500 |
3bea4c16 |
10 | set BugNumber OCC19793 |
11 | |
12 | puts "Load first shape ..." |
13 | restore [locate_data_file bug19793_new_shape.brep] b1 |
14 | puts "Load second shape ..." |
15 | restore [locate_data_file bug19793_shape.brep] b2 |
16 | |
17 | puts "Prepare boolean operation ..." |
1e07a0fa |
18 | dchrono perf_h reset |
19 | dchrono perf_h start |
3bea4c16 |
20 | bop b1 b2 |
1e07a0fa |
21 | dchrono perf_h stop |
3bea4c16 |
22 | |
23 | puts "Start boolean operation ..." |
24 | bopsection result |
25 | puts "Finish boolean operation ..." |
26 | |
27 | set length 17730.1 |
28 | |
29 | set nb_e_good 1190 |
30 | set nb_v_good 68 |
31 | set nb_e_good 70 |
32 | set nb_w_good 0 |
33 | set nb_f_good 0 |
34 | set nb_sh_good 0 |
35 | set nb_sol_good 0 |
36 | set nb_compsol_good 0 |
37 | set nb_compound_good 1 |
38 | set nb_shape_good 139 |
39 | |
1e07a0fa |
40 | # OCC23753 processing |
41 | # Performance verification of bop operation |
42 | set chrono_info [dchrono perf_h show] |
43 | regexp {CPU user time: ([-0-9.+eE]+) seconds} $chrono_info full CPU_time |
4292bee1 |
44 | |
45 | if { [regexp {Debug mode} [dversion]] } { |
46 | if { [regexp {Windows} [dversion]] } { |
47 | puts "Checking WINDOWS performance..." |
48 | if {$CPU_time > 1000.} { |
49 | puts "ERROR: OCC23753 is reproduced." |
50 | puts " Low performance: $CPU_time" |
51 | } |
52 | } else { |
53 | puts "Checking LINUX performance..." |
54 | if {$CPU_time > 2500.} { |
55 | puts "ERROR: OCC23753 is reproduced." |
56 | puts " Low performance: $CPU_time" |
57 | } |
1e07a0fa |
58 | } |
4292bee1 |
59 | } else { |
60 | if { [regexp {Windows} [dversion]] } { |
61 | puts "Checking WINDOWS performance..." |
62 | # Initial CPU_time is 92-94 seconds for Windows |
4dcc5ecb |
63 | if {$CPU_time > 300.} { |
4292bee1 |
64 | puts "ERROR: OCC23753 is reproduced." |
65 | puts " Low performance: $CPU_time" |
66 | } |
67 | } else { |
68 | puts "Checking LINUX performance..." |
69 | # Initial CPU_time is 287-289 seconds for Linux |
4dcc5ecb |
70 | if {$CPU_time > 350.} { |
4292bee1 |
71 | puts "ERROR: OCC23753 is reproduced." |
72 | puts " Low performance: $CPU_time" |
73 | } |
1e07a0fa |
74 | } |
75 | } |
3bea4c16 |
76 | |
77 | set 2dviewer 0 |