]> OCCT Git - occt-copy.git/commitdiff
Adjusting CPU time for new testing cases.
authormkv <mkv@opencascade.com>
Mon, 1 Dec 2014 08:01:56 +0000 (11:01 +0300)
committerbugmaster <bugmaster@opencascade.com>
Mon, 1 Dec 2014 09:06:02 +0000 (12:06 +0300)
tests/bugs/moddata_3/bug25487_1
tests/bugs/moddata_3/bug25487_2

index a6eb5627255aad86b8aca071096c3b384c0ff8c9..8d7fa1feac7a32a2d3a08a4c4cfc25ac72338ae6 100644 (file)
@@ -51,21 +51,21 @@ if {[string compare $currentOS "Windows NT"] == 0} {
 if {[string compare $currentOS "Linux"] == 0} {
   if {[regexp {Debug mode} [dversion]]} {
     # DEBUG mode
-    # initial CPU_time for LINUX in DEBUG mode is 292 ((132+14)*2) sec
+    # initial CPU_time for LINUX in DEBUG mode is 900 sec
     puts "Checking LINUX performance in debug mode..."
-    if {$CPU_time > 292.} {
+    if {$CPU_time > 900.} {
       puts "ERROR: OCC25487 is reproduced."
-      puts "       Low performance: $CPU_time (but should be less than 292 sec)"
+      puts "       Low performance: $CPU_time (but should be less than 900 sec)"
     } else {
       puts "Done!"
     }
   } else {
     # OPTIMIZE mode
-    # initial CPU_time for LINUX in OPTIMIZE mode is 146 (132+14) sec
+    # initial CPU_time for LINUX in OPTIMIZE mode is 190 (173+17) sec
     puts "Checking LINUX performance in optimize mode..."
-    if {$CPU_time > 146.} {
+    if {$CPU_time > 190.} {
       puts "ERROR: OCC25487 is reproduced."
-      puts "       Low performance: $CPU_time (but should be less than 146 sec)"
+      puts "       Low performance: $CPU_time (but should be less than 190 sec)"
     } else {
       puts "Done!"
     }
index 41f8cacd0ceb654c0fb709bb80225fe5b46127a6..c4bc26e3fb0b20f75cbf7045a5d0a1763095f649 100644 (file)
@@ -6,6 +6,8 @@ puts ""
 # Extrema_GenExtPS needs to be optimized
 ##########################################
 
+cpulimit 1500
+
 pload DATAEXCHANGEKERNEL
 
 # Restore testing shape and get timing characteristics for operation stepread
@@ -51,21 +53,21 @@ if {[string compare $currentOS "Windows NT"] == 0} {
 if {[string compare $currentOS "Linux"] == 0} {
   if {[regexp {Debug mode} [dversion]]} {
     # DEBUG mode
-    # initial CPU_time for LINUX in DEBUG mode is 902 ((410+41)*2) sec
+    # initial CPU_time for LINUX in DEBUG mode is 1500 sec
     puts "Checking LINUX performance in debug mode..."
-    if {$CPU_time > 902.} {
+    if {$CPU_time > 1500.} {
       puts "ERROR: OCC25487 is reproduced."
-      puts "       Low performance: $CPU_time (but should be less than 902 sec)"
+      puts "       Low performance: $CPU_time (but should be less than 1500 sec)"
     } else {
       puts "Done!"
     }
   } else {
     # OPTIMIZE mode
-    # initial CPU_time for LINUX in OPTIMIZE mode is 451 (410+41) sec
+    # initial CPU_time for LINUX in OPTIMIZE mode is 575 (523+52) sec
     puts "Checking LINUX performance in optimize mode..."
-    if {$CPU_time > 451.} {
+    if {$CPU_time > 575.} {
       puts "ERROR: OCC25487 is reproduced."
-      puts "       Low performance: $CPU_time (but should be less than 451 sec)"
+      puts "       Low performance: $CPU_time (but should be less than 575 sec)"
     } else {
       puts "Done!"
     }