Browse Source

Added some sleep calls between runs

Patrick Falls 12 years ago
parent
commit
6c10a8748c
1 changed files with 4 additions and 0 deletions
  1. 4 0
      framework_test.py

+ 4 - 0
framework_test.py

@@ -20,6 +20,7 @@ class FrameworkTest:
     echo "---------------------------------------------------------"
     echo ""
     wrk -r {runs} -c {max_concurrency} -t {max_threads} http://{server_host}:{port}{url}
+    sleep 5
     for c in {interval}
     do
       echo ""
@@ -29,6 +30,7 @@ class FrameworkTest:
       echo "---------------------------------------------------------"
       echo ""
       wrk -r {runs} -c "$c" -t "$(($c>{max_threads}?{max_threads}:$c))" http://{server_host}:{port}{url}
+      sleep 2
     done
   """
 
@@ -42,6 +44,7 @@ class FrameworkTest:
     echo "---------------------------------------------------------"
     echo ""
     wrk -r {runs} -c {max_concurrency} -t {max_threads} http://{server_host}:{port}{url}2
+    sleep 5
     for c in {interval}
     do
       echo ""
@@ -51,6 +54,7 @@ class FrameworkTest:
       echo "---------------------------------------------------------"
       echo ""
       wrk -r {runs} -c {max_concurrency} -t {max_threads} http://{server_host}:{port}{url}"$c"
+      sleep 2
     done
   """