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
# Parent class | |
class bookshelf | |
has_many :books | |
has_paper_trail | |
end | |
# Child class | |
class book | |
belongs_to :bookshelf | |
has_paper_trail |
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
require 'benchmark' | |
require 'hosted_graphite' | |
HostedGraphite.api_key = 'API-KEY' | |
HostedGraphite.protocol = HostedGraphite::UDP | |
require 'hosted_graphite/statsd' | |
def do_single | |
HostedGraphite.increment "benchmark.incrementer" |