Skip to content

Instantly share code, notes, and snippets.

View hamiltont's full-sized avatar
🕵️‍♂️
huntin' wabbits

Hamilton Turner hamiltont

🕵️‍♂️
huntin' wabbits
View GitHub Profile
input {
stdin {
type => "stdin-type"
}
#file {
# type => "syslog"
# path => [ "/var/log/*.log", "/var/log/messages", "/var/log/syslog" ]
# start_position => "beginning"
#}
cd "deployment/vagrant-production"
vagrant up --provider=aws
vagrant ssh --command "cd ~/FrameworkBenchmarks && screen -L -d -m toolset/run-tests.py --install server --verbose && sleep 20"
================================================================================
Running Tests...
================================================================================
-------------------------------------------------------------------------------- | Full ETA: --:--:--
Running Test: sinatra-puma
--------------------------------------------------------------------------------
INFO:root:Running setup module start (cwd=/home/vagrant/FrameworkBenchmarks/frameworks/Ruby)
INFO:root:Start completed, running verify
INFO:root:Running setup module stop (cwd=/home/vagrant/FrameworkBenchmarks/frameworks/Ruby)
-------------------------------------------------------------------------------- | Full ETA: 00:08:10
================================================================================
Verification Summary
| Test: sinatra-puma
| fortune : PASS
| plaintext : PASS
| db : PASS
| update : PASS
| json : PASS
| query : PASS
| Test: sinatra-puma-jruby
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.
Unknown ruby string (do not know how to handle): jruby-1.7.8.
Unknown ruby string (do not know how to handle): jruby-1.7.8.
jruby-1.7.8 - #removing src/jruby-1.7.8..
Searching for binary rubies, this might take some time.
Unknown ruby string (do not know how to handle): jruby-1.7.8.
Unknown ruby string (do not know how to handle): jruby-1.7.8.
Unknown ruby string (do not know how to handle): jruby-1.7.8.
Unknown ruby string (do not know how to handle): jruby-1.7.8.
#!/usr/bin/env python
# print grid of all colors and brightnesses
# uses stdout.write to write chars with no newline nor spaces between them
# This should run more-or-less identically on Windows and Unix.
from __future__ import print_function
import sys
from colorama import init, Fore, Back, Style
init()
class attrExample(d:
def __getattr__(self, item):
"""
Returns the attr if it's part of attrExample, otherwise
return the attr from foo
"""
try:
return self.item
except KeyError:
if benchmarker is None:
default_config = setup_util.get_fwroot() + "/benchmark.cfg.example"
config = ConfigParser.SafeConfigParser()
config.read(default_config)
defaults = dict(config.items("Defaults"))
benchmarker = Benchmarker(defaults)
@hamiltont
hamiltont / console-debug.log
Last active August 29, 2015 14:04
Output of 1) console with DEBUG 2) console 3) test log file
╰─$ toolset/run-tests.py --test go --sleep 5 --type json --max-threads 8 --max-concurrency 8 --log DEBUG
FWROOT is /localhdd
run-tests : INFO Configuration: Namespace(client_host='10.0.2.17', client_identity_file='~/.ssh/id_rsa', client_user='hamiltont', conf_file='benchmark.cfg', database_host='10.0.2.18', database_identity_file='~/.ssh/id_rsa', database_os='linux', database_user='hamiltont', duration=15, exclude=None, install=None, install_error_action='continue', install_strategy='pertest', list_test_metadata=False, list_tests=False, log='DEBUG', max_concurrency=8, max_queries=20, max_threads=8, mode='benchmark', name='ec2', os='linux', parse=None, password_prompt=False, query_interval=5, server_host='10.0.2.3', sleep=5, starting_concurrency=8, test=['go'], type='json')
benchmarker : DEBUG latest_results_directory
benchmarker : INFO __gather_tests
benchmarker : INFO run
benchmarker : INFO __gather_tests
================================================================================
sudo apt-get -y install \
cmake build-essential automake `# Needed for building code` \
curl wget unzip `# Common tools` \
software-properties-common `# Needed for add-apt-repository` \
git-core mercurial `# Version control systems` \
libpcre3 libpcre3-dev libpcrecpp0 `# Regular expression support` \
libssl-dev libcurl4-openssl-dev `# SSL libraries` \
libmysqlclient-dev \
mongodb-clients \
libsqlite3-dev sqlite3 `# Database libraries` \