Permalink
Browse files

Merge pull request #51 from nivler/master

Update requirements, print number of failed requests.
  • Loading branch information...
2 parents df03e94 + 8880c06 commit 877458dcb9d2adb522e6d650020780739d833246 @cosmin cosmin committed Apr 13, 2013
Showing with 10 additions and 4 deletions.
  1. +6 −0 beeswithmachineguns/bees.py
  2. +2 −2 requirements.txt
  3. +2 −2 setup.py
@@ -213,12 +213,14 @@ def _attack(params):
return None
requests_per_second_search = re.search('Requests\ per\ second:\s+([0-9.]+)\ \[#\/sec\]\ \(mean\)', ab_results)
+ failed_requests = re.search('Failed\ requests:\s+([0-9.]+)', ab_results)
fifty_percent_search = re.search('\s+50\%\s+([0-9]+)', ab_results)
ninety_percent_search = re.search('\s+90\%\s+([0-9]+)', ab_results)
complete_requests_search = re.search('Complete\ requests:\s+([0-9]+)', ab_results)
response['ms_per_request'] = float(ms_per_request_search.group(1))
response['requests_per_second'] = float(requests_per_second_search.group(1))
+ response['failed_requests'] = float(failed_requests.group(1))
response['fifty_percent'] = float(fifty_percent_search.group(1))
response['ninety_percent'] = float(ninety_percent_search.group(1))
response['complete_requests'] = float(complete_requests_search.group(1))
@@ -258,6 +260,10 @@ def _print_results(results):
total_complete_requests = sum(complete_results)
print ' Complete requests:\t\t%i' % total_complete_requests
+ complete_results = [r['failed_requests'] for r in complete_bees]
+ total_failed_requests = sum(complete_results)
+ print ' Failed requests:\t\t%i' % total_failed_requests
+
complete_results = [r['requests_per_second'] for r in complete_bees]
mean_requests = sum(complete_results)
print ' Requests per second:\t%f [#/sec] (mean)' % mean_requests
View
@@ -1,2 +1,2 @@
-boto==2.7.0
-paramiko==1.7.7.1
+boto==2.8.0
+paramiko==1.10.1
View
@@ -12,8 +12,8 @@
packages=['beeswithmachineguns'],
scripts=['bees'],
install_requires=[
- 'boto==2.7.0',
- 'paramiko==1.7.7.1'
+ 'boto==2.8.0',
+ 'paramiko==1.10.1'
],
classifiers=[
'Development Status :: 4 - Beta',

0 comments on commit 877458d

Please sign in to comment.