Skip to content

Rails plugin for performing Siege load tests and browsing results

License

Notifications You must be signed in to change notification settings

tbprojects/siege_load_test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Siege Load Test Plugin

This plugin allows you to run Siege (www.joedog.org/index/siege-home) load tests directly from Rails application.

For delayed testing purposes this plugin requires Navvy gem to be installed (github.com/jeffkreeftmeijer/navvy.git)

Repository is on github: github.com/boro-selleo/siege_load_test

Install with:

rails plugin install git://github.com/boro-selleo/siege_load_test.git

Usage

> http://localhost:3000/testing/siege_load_tests

or

> $ rails c	
> test = SiegeLoadTest.new(options)
> test.add_url("example.com")
> test.perform

Options

  • options - TIME, allows you to run the test for a selected period of time. Parameter accepts integer of seconds. Default is 60

  • options - Each siege simulated user is delayed for a random number of seconds between one and NUM. Default is 1

  • options - Concurrent users ( requires argument ). This option allows the user to stress the web server with NUM number of simulated users. Default is 15

  • options - This option is used with a configuration file, that is a file containing many URLs. With this option in place, each user randomly hits any one of the URLs in the file each time it hits the server. Default is false

Authentication

  • options - Username that allow to set current_user in ActionController. Default is “”

Siege Load Test uses autologin mechanizm to access pages witch are avaialble only for certain / logged in users

Output information

date, transactions, availability, elapsed time, data transferred, response time, transaction rate, throughput, concurrency, successful transactions, failed transactions

test.logs

> {...}

Copyright © 2011 Tomasz Borowski, released under the MIT license

About

Rails plugin for performing Siege load tests and browsing results

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages