Created
March 23, 2011 09:38
-
-
Save dekart/882847 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
httperf_report do |r| | |
r.cookies :signed_request => 'asdasd' | |
r.group 'Mission List' do |g| | |
1000.times do | |
g.get '/mission_groups' | |
end | |
end | |
r.group 'Mission Group Switch' do |g| | |
1000.times do |i| | |
g.get "/mission_groups/#{(i % 2) + 1}" # 1 or 2 | |
end | |
end | |
r.group 'Opponent List' do |g| | |
1000.times do | |
g.get "/fights/new" | |
end | |
end | |
r.group 'Purchase Item' do |g| | |
100.times do | |
g.post '/inventories', :item_id => 123 # Post params | |
end | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Performance Report | |
------------------ | |
Group Number of Requests Total Average Min Max | |
Mission List: 1000 requests 120s 120ms 60ms 210ms | |
Mission Group Switch: 1000 requests 150s 145ms 60ms 210ms | |
Opponent List: 1000 requests 110s 145ms 60ms 210ms | |
Purchase Item: 100 requests 70s 670ms 60ms 210ms |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment