9e506120 |
1 | pload QAcommands |
2 | |
53a1447a |
3 | puts "TODO ?OCC29132 Windows: ERROR: performance" |
4 | |
5 | |
9e506120 |
6 | set info [QANTestNCollectionIndexedDataMap] |
7 | |
8 | set keys {} |
9 | set values {} |
10 | foreach line [split $info "\n"] { |
11 | set key [string trim [string range $line 0 [expr {[string first ":" $line] - 1}]]] |
12 | set value [string trim [string range $line [expr {[string first ":" $line] + 1}] [expr {[string length $line] - 1}]]] |
13 | if {[string length $key] != 0} { |
14 | if {[string length $value] != 0} { |
15 | lappend keys $key |
16 | lappend values $value |
17 | } |
18 | } |
19 | } |
20 | |
863f782a |
21 | if { [checkplatform -windows] } { |
9e506120 |
22 | set check_values { 0.017762852 |
23 | 0.008435507 |
24 | 0.018746851 |
25 | 0.079263713 |
26 | } |
863f782a |
27 | } else { |
28 | set check_values { 0.1549615 |
29 | 0.1290805 |
30 | 0.1602191 |
31 | 0.3487175 |
32 | } |
9e506120 |
33 | } |
34 | |
35 | set index 0 |
36 | foreach key $keys { |
37 | set value [lindex $values $index] |
38 | if { $value > [lindex $check_values $index] } { |
39 | puts "ERROR: performance of $key become worse" |
40 | } else { |
41 | puts "OK: performance of $key is OK" |
42 | } |
43 | incr index |
44 | } |