hulk_smash 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/hulk_smash/smasher.rb +3 -3
- data/lib/hulk_smash/version.rb +1 -1
- metadata +2 -2
data/lib/hulk_smash/smasher.rb
CHANGED
@@ -3,7 +3,7 @@ require 'stringio'
|
|
3
3
|
|
4
4
|
module HulkSmash
|
5
5
|
class Smasher
|
6
|
-
attr_reader :url, :duration, :concurrent_users
|
6
|
+
attr_reader :url, :duration, :concurrent_users, :result
|
7
7
|
|
8
8
|
def initialize(url='http://localhost', options={})
|
9
9
|
@duration = options[:duration] || self.class.default_duration
|
@@ -12,11 +12,11 @@ module HulkSmash
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def run_load_test
|
15
|
-
execute_siege_command "siege -b -t#{duration} -c#{concurrent_users} #{url}"
|
15
|
+
@result = execute_siege_command "siege -b -t#{duration} -c#{concurrent_users} #{url}"
|
16
16
|
end
|
17
17
|
|
18
18
|
def run_scalability_test
|
19
|
-
execute_siege_command "siege -t#{duration} -c#{concurrent_users} #{url}"
|
19
|
+
@result = execute_siege_command "siege -t#{duration} -c#{concurrent_users} #{url}"
|
20
20
|
end
|
21
21
|
|
22
22
|
private
|
data/lib/hulk_smash/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hulk_smash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-08-
|
12
|
+
date: 2012-08-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|