var search_data = {"index":{"searchIndex":["bigbench","benchmark","benchmark","looper","bot","configuration","config","invalidoptions","executor","invalidcommand","fragment","fragment","output","runner","nobenchmarksdefined","store","tracker","tracker","eventmachineloop","float","helpers","object","add()","add_option()","add_tracking()","all()","all_requests_done?()","authorized?()","benchmark()","benchmarks()","bot_is_checking()","bot_is_working()","bot_received_test_instructions()","bot_stopped_working()","bots()","check_config!()","check_test!()","config()","config()","configure=()","configure=()","count_trackings()","delete()","deployed_test()","done()","duration()","finished_bots_loop()","finished_running_benchmarks()","finished_writing_trackings()","get()","is_running?()","load_test!()","loaded_tests()","loop!()","max_duration()","message()","message()","message()","new()","new()","new()","new()","new()","new()","next_fragment()","parse()","pop_tracking()","post()","protected!()","put()","request!()","reset()","reset!()","reset!()","reset!()","reset!()","run!()","run!()","run!()","run!()","run!()","running?()","running_benchmarks()","running_bots_loop()","setup!()","start()","start()","starting_bots_loop()","stop()","test()","test=()","to_milliseconds()","track()","track!()","valid?()","write_local_trackings_to_file!()","write_store_trackings_to_file!()","write_trackings_to_store!()","writing_trackings()","wrote_trackings()","gemfile","rakefile","executor"],"longSearchIndex":["bigbench","bigbench::benchmark","bigbench::benchmark::benchmark","bigbench::benchmark::looper","bigbench::bot","bigbench::configuration","bigbench::configuration::config","bigbench::configuration::invalidoptions","bigbench::executor","bigbench::executor::invalidcommand","bigbench::fragment","bigbench::fragment::fragment","bigbench::output","bigbench::runner","bigbench::runner::nobenchmarksdefined","bigbench::store","bigbench::tracker","bigbench::tracker::tracker","eventmachineloop","float","helpers","object","bigbench::benchmark::add()","bigbench::configuration::config::add_option()","bigbench::store::add_tracking()","bigbench::benchmark::all()","eventmachineloop#all_requests_done?()","object#authorized?()","bigbench::benchmark()","bigbench::benchmarks()","bigbench::output::bot_is_checking()","bigbench::store::bot_is_working()","bigbench::output::bot_received_test_instructions()","bigbench::store::bot_stopped_working()","bigbench::store::bots()","bigbench::check_config!()","bigbench::bot::check_test!()","bigbench::config()","bigbench::configuration::config()","bigbench::configure=()","bigbench::configuration::configure=()","bigbench::store::count_trackings()","bigbench::fragment::delete()","bigbench::output::deployed_test()","bigbench::output::done()","bigbench::duration()","bigbench::output::finished_bots_loop()","bigbench::output::finished_running_benchmarks()","bigbench::output::finished_writing_trackings()","bigbench::fragment::get()","bigbench::benchmark::benchmark#is_running?()","bigbench::load_test!()","bigbench::output::loaded_tests()","bigbench::benchmark::looper#loop!()","bigbench::benchmark::max_duration()","bigbench::configuration::invalidoptions#message()","bigbench::executor::invalidcommand#message()","bigbench::runner::nobenchmarksdefined#message()","bigbench::benchmark::benchmark::new()","bigbench::benchmark::looper::new()","bigbench::configuration::config::new()","bigbench::fragment::fragment::new()","bigbench::tracker::tracker::new()","eventmachineloop::new()","bigbench::benchmark::looper#next_fragment()","bigbench::fragment::parse()","bigbench::store::pop_tracking()","bigbench::fragment::post()","object#protected!()","bigbench::fragment::put()","eventmachineloop#request!()","bigbench::output::reset()","bigbench::benchmark::reset!()","bigbench::configuration::reset!()","bigbench::fragment::reset!()","bigbench::store::reset!()","bigbench::run!()","bigbench::benchmark::benchmark#run!()","bigbench::executor::run!()","bigbench::fragment::fragment#run!()","bigbench::runner::run!()","bigbench::store::running?()","bigbench::output::running_benchmarks()","bigbench::output::running_bots_loop()","bigbench::store::setup!()","bigbench::output::start()","bigbench::store::start()","bigbench::output::starting_bots_loop()","bigbench::store::stop()","bigbench::store::test()","bigbench::store::test=()","float#to_milliseconds()","bigbench::tracker::tracker#track()","bigbench::fragment::fragment#track!()","bigbench::configuration::config#valid?()","bigbench::write_local_trackings_to_file!()","bigbench::write_store_trackings_to_file!()","bigbench::write_trackings_to_store!()","bigbench::output::writing_trackings()","bigbench::output::wrote_trackings()","","",""],"info":[["BigBench","","BigBench.html","",""],["BigBench::Benchmark","","BigBench/Benchmark.html","","
Holds the actual benchmark methods. A benchmark is a sequence of requests\nto the same server, but to …\n"],["BigBench::Benchmark::Benchmark","","BigBench/Benchmark/Benchmark.html","",""],["BigBench::Benchmark::Looper","","BigBench/Benchmark/Looper.html","",""],["BigBench::Bot","","BigBench/Bot.html","","
A bot is used for remote testing. It is running in the background of a\nmachine and waits for tests to …\n"],["BigBench::Configuration","","BigBench/Configuration.html","","
The configuration is configured in the test reciepts and looks like this:\n\n
BigBench.configure = {\n :duration ...\n"],["BigBench::Configuration::Config","","BigBench/Configuration/Config.html","","
The main config object for BigBench. It allows config options to be added\nand forces some default values …\n"],["BigBench::Configuration::InvalidOptions","","BigBench/Configuration/InvalidOptions.html","","
Is returned if the configuration is not filled sufficiently\n"],["BigBench::Executor","","BigBench/Executor.html","","
Dispatches the command line commands to BigBench calls. Available commands\nare:\n
Usage:\n\n
# Local Testing ...\n"],["BigBench::Executor::InvalidCommand","","BigBench/Executor/InvalidCommand.html","","
Is thrown when the command is not known\n"],["BigBench::Fragment","","BigBench/Fragment.html","","
A fragment represents a single http request inside a benchmark. It is\nexecuted by the benchmark and resides …\n"],["BigBench::Fragment::Fragment","","BigBench/Fragment/Fragment.html","",""],["BigBench::Output","","BigBench/Output.html","","
This module is used to keep all the command line outputs in a single place.\nThe output module gets notified …\n"],["BigBench::Runner","","BigBench/Runner.html","","
The runner runs all available benchmarks and returns as soon as all of them\nare finished. Additionally …\n"],["BigBench::Runner::NoBenchmarksDefined","","BigBench/Runner/NoBenchmarksDefined.html","","
Is thrown when no benchmarks are defined\n"],["BigBench::Store","","BigBench/Store.html","","
The store encapsulates the communication with the redis key-value store. To\nthe outside it looks like …\n"],["BigBench::Tracker","","BigBench/Tracker.html","","
The tracker records all request results a benchmark makes. When the\nbenchmark is finished, the trackings …\n"],["BigBench::Tracker::Tracker","","BigBench/Tracker/Tracker.html","",""],["EventMachineLoop","","EventMachineLoop.html","",""],["Float","","Float.html","","
Adds the to_milliseconds
method to any float value\n"],["Helpers","","Helpers.html","",""],["Object","","Object.html","",""],["add","BigBench::Benchmark","BigBench/Benchmark.html#method-c-add","(options, &block)","
Adds a benchmark to the BigBench
module. It can later be\nretrieved with the all
method.\n"],["add_option","BigBench::Configuration::Config","BigBench/Configuration/Config.html#method-c-add_option","(name)",""],["add_tracking","BigBench::Store","BigBench/Store.html#method-c-add_tracking","(tracking)","
Add a tracking to the trackings\n"],["all","BigBench::Benchmark","BigBench/Benchmark.html#method-c-all","()","
Returns all benchmarks that are registered\n"],["all_requests_done?","EventMachineLoop","EventMachineLoop.html#method-i-all_requests_done-3F","()",""],["authorized?","Object","Object.html#method-i-authorized-3F","()",""],["benchmark","BigBench","BigBench.html#method-c-benchmark","(options)","
Add a benchmark like this:\n\n
benchmark "default website pages" => "http://localhost:3000" do\n get "/" ...\n\n"],["benchmarks","BigBench","BigBench.html#method-c-benchmarks","()","
List all available benchmarks\n"],["bot_is_checking","BigBench::Output","BigBench/Output.html#method-c-bot_is_checking","()",""],["bot_is_working","BigBench::Store","BigBench/Store.html#method-c-bot_is_working","(id)","
Adds a bot to the currently working bots list\n"],["bot_received_test_instructions","BigBench::Output","BigBench/Output.html#method-c-bot_received_test_instructions","()",""],["bot_stopped_working","BigBench::Store","BigBench/Store.html#method-c-bot_stopped_working","(id)","
Removes a bot to the currently working bots list\n"],["bots","BigBench::Store","BigBench/Store.html#method-c-bots","()","
Shows all currently working bots\n"],["check_config!","BigBench","BigBench.html#method-c-check_config-21","()","
Checks if all necessary config options are set and raises an\nInvalidOptions
exception if not\n"],["check_test!","BigBench::Bot","BigBench/Bot.html#method-c-check_test-21","()","
Checks if there is a new test waiting on the store.\n
If yes, it loads this test and executes it. After …\n"],["config","BigBench","BigBench.html#method-c-config","()","
Set and retreive the config values like this:\n\n
BigBench.config.duration # => 10.seconds\nBigBench.config.duration ...\n\n"],["config","BigBench::Configuration","BigBench/Configuration.html#method-c-config","()","
Returns the current config object\n"],["configure=","BigBench","BigBench.html#method-c-configure-3D","(config)","
Configure the benchmark by supplying a hash of options like this:\n\n
BigBench.configure = {\n :duration ...\n"],["configure=","BigBench::Configuration","BigBench/Configuration.html#method-c-configure-3D","(config)","
Configures the benchmarks with a hash. If the config methods are not\npresent yet, they are added to the …\n"],["count_trackings","BigBench::Store","BigBench/Store.html#method-c-count_trackings","()","
How many trackings are in the list\n"],["delete","BigBench::Fragment","BigBench/Fragment.html#method-c-delete","(path, options = {})","
Performs a DELETE request to the given url, e.g.\n\n
delete "/books/5"\n"],["deployed_test","BigBench::Output","BigBench/Output.html#method-c-deployed_test","()",""],["done","BigBench::Output","BigBench/Output.html#method-c-done","()",""],["duration","BigBench","BigBench.html#method-c-duration","()","
Returns the duration of all benchmarks - ergo the duration of the longest\none\n"],["finished_bots_loop","BigBench::Output","BigBench/Output.html#method-c-finished_bots_loop","()",""],["finished_running_benchmarks","BigBench::Output","BigBench/Output.html#method-c-finished_running_benchmarks","()",""],["finished_writing_trackings","BigBench::Output","BigBench/Output.html#method-c-finished_writing_trackings","(count)",""],["get","BigBench::Fragment","BigBench/Fragment.html#method-c-get","(path, options = {})","
Performs a GET request to the given url, e.g.\n\n
get "/some/page"\n"],["is_running?","BigBench::Benchmark::Benchmark","BigBench/Benchmark/Benchmark.html#method-i-is_running-3F","()","
Returns if this benchmark is currently running\n"],["load_test!","BigBench","BigBench.html#method-c-load_test-21","(test)","
Loads a test from a string file that is either parsed from a local file or\nretreived from the key-value …\n"],["loaded_tests","BigBench::Output","BigBench/Output.html#method-c-loaded_tests","()",""],["loop!","BigBench::Benchmark::Looper","BigBench/Benchmark/Looper.html#method-i-loop-21","()",""],["max_duration","BigBench::Benchmark","BigBench/Benchmark.html#method-c-max_duration","()","
Returns the longest duration of all benchmarks\n"],["message","BigBench::Configuration::InvalidOptions","BigBench/Configuration/InvalidOptions.html#method-i-message","()",""],["message","BigBench::Executor::InvalidCommand","BigBench/Executor/InvalidCommand.html#method-i-message","()",""],["message","BigBench::Runner::NoBenchmarksDefined","BigBench/Runner/NoBenchmarksDefined.html#method-i-message","()",""],["new","BigBench::Benchmark::Benchmark","BigBench/Benchmark/Benchmark.html#method-c-new","(name, url, options, &block)","
Initizalizes a new benchmark\n"],["new","BigBench::Benchmark::Looper","BigBench/Benchmark/Looper.html#method-c-new","(benchmark)",""],["new","BigBench::Configuration::Config","BigBench/Configuration/Config.html#method-c-new","()",""],["new","BigBench::Fragment::Fragment","BigBench/Fragment/Fragment.html#method-c-new","(benchmark, path, method, options = {})",""],["new","BigBench::Tracker::Tracker","BigBench/Tracker/Tracker.html#method-c-new","()",""],["new","EventMachineLoop","EventMachineLoop.html#method-c-new","(loops)",""],["next_fragment","BigBench::Benchmark::Looper","BigBench/Benchmark/Looper.html#method-i-next_fragment","()",""],["parse","BigBench::Fragment","BigBench/Fragment.html#method-c-parse","(benchmark, &block)","
Evaluates a benchmark block full of puts and gets and returns an array of\nfully configured fragments …\n"],["pop_tracking","BigBench::Store","BigBench/Store.html#method-c-pop_tracking","()","
Pop a tracking from the beginning of the list\n"],["post","BigBench::Fragment","BigBench/Fragment.html#method-c-post","(path, options = {})","
Performs a POST request to the given url, e.g.\n\n
post "/login"\n"],["protected!","Object","Object.html#method-i-protected-21","()",""],["put","BigBench::Fragment","BigBench/Fragment.html#method-c-put","(path, options = {})","
Performs a PUT request to the given url, e.g.\n\n
put "/books"\n"],["request!","EventMachineLoop","EventMachineLoop.html#method-i-request-21","()",""],["reset","BigBench::Output","BigBench/Output.html#method-c-reset","()",""],["reset!","BigBench::Benchmark","BigBench/Benchmark.html#method-c-reset-21","()","
Resets all benchmarks\n"],["reset!","BigBench::Configuration","BigBench/Configuration.html#method-c-reset-21","()","
Resets the config object\n"],["reset!","BigBench::Fragment","BigBench/Fragment.html#method-c-reset-21","()","
Reset all fragments\n"],["reset!","BigBench::Store","BigBench/Store.html#method-c-reset-21","()","
Deletes all BigBench related keys on the redis store\n"],["run!","BigBench","BigBench.html#method-c-run-21","()","
Runs all initialized benchmarks\n"],["run!","BigBench::Benchmark::Benchmark","BigBench/Benchmark/Benchmark.html#method-i-run-21","()","
Execute this benchmark\n"],["run!","BigBench::Executor","BigBench/Executor.html#method-c-run-21","(argv)","
Parses and runs the BigBench funtion that is supplied via the commandline’s\nARGV. It throws an InvalidCommand
…\n"],["run!","BigBench::Fragment::Fragment","BigBench/Fragment/Fragment.html#method-i-run-21","()","
Initiates the request in the context of a Net::HTTP.start
\nblock\n"],["run!","BigBench::Runner","BigBench/Runner.html#method-c-run-21","()","
Runs all benchmarks\n"],["running?","BigBench::Store","BigBench/Store.html#method-c-running-3F","()","
Returns true if a bot test has been started\n"],["running_benchmarks","BigBench::Output","BigBench/Output.html#method-c-running_benchmarks","()",""],["running_bots_loop","BigBench::Output","BigBench/Output.html#method-c-running_bots_loop","(bots)",""],["setup!","BigBench::Store","BigBench/Store.html#method-c-setup-21","(url = \"localhost:6379\", password = nil)","
Setup the redis storage. Default values are localhost:6379
and\nno password. This needs to be called for …\n"],["start","BigBench::Output","BigBench/Output.html#method-c-start","()",""],["start","BigBench::Store","BigBench/Store.html#method-c-start","()","
Start the tests for all bots by setting the running key\n"],["starting_bots_loop","BigBench::Output","BigBench/Output.html#method-c-starting_bots_loop","()",""],["stop","BigBench::Store","BigBench/Store.html#method-c-stop","()","
Stops the test for all bots by unsetting the running key\n"],["test","BigBench::Store","BigBench/Store.html#method-c-test","()","
Gets the current test from the redis\n"],["test=","BigBench::Store","BigBench/Store.html#method-c-test-3D","(test)","
Stores the current test receipt for all bots on the redis instance\n"],["to_milliseconds","Float","Float.html#method-i-to_milliseconds","()",""],["track","BigBench::Tracker::Tracker","BigBench/Tracker/Tracker.html#method-i-track","(object)",""],["track!","BigBench::Fragment::Fragment","BigBench/Fragment/Fragment.html#method-i-track-21","(start, stop, http)","
Adds the current tracking result as a hash to the benchmark’s tracker\n"],["valid?","BigBench::Configuration::Config","BigBench/Configuration/Config.html#method-i-valid-3F","()",""],["write_local_trackings_to_file!","BigBench","BigBench.html#method-c-write_local_trackings_to_file-21","()","
Writes the locals trackings from the benchmark to a file\n"],["write_store_trackings_to_file!","BigBench","BigBench.html#method-c-write_store_trackings_to_file-21","()","
Gathers the trackings from the redis and writes them to a local file\n"],["write_trackings_to_store!","BigBench","BigBench.html#method-c-write_trackings_to_store-21","()","
Writes the trackings of a bot to the redis after he finishes the run\n"],["writing_trackings","BigBench::Output","BigBench/Output.html#method-c-writing_trackings","(count)",""],["wrote_trackings","BigBench::Output","BigBench/Output.html#method-c-wrote_trackings","(count)",""],["Gemfile","","Gemfile.html","","
source “rubygems.org”\n
# Specify your gem’s dependencies in big_bench.gemspec gemspec\n"],["Rakefile","","Rakefile.html","","
require “bundler/gem_tasks” require “rack”\n
namespace :bigbench do\n\n
desc "Create and ...\n"],["executor","","lib/bigbench/help/executor_txt.html","","
Usage:\n\n
# Local Testing\nbigbench run local PATH_TO_TEST # Runs a ...\n"]]}}