module Yardstick
def self.measure(config = Config.new)
- Api: - public
Returns:
-
(Yardstick::MeasurementSet)
-
Parameters:
-
config
(Config
) --
def self.measure(config = Config.new) Processor.new(config).process end
def self.measure_string(string, config = Config.new)
- Api: - public
Returns:
-
(Yardstick::MeasurementSet)
-
Parameters:
-
config
(Config
) -- -
string
(#to_str
) --
def self.measure_string(string, config = Config.new) Processor.new(config).process_string(string) end
def self.round_percentage(percentage)
- Api: - private
Returns:
-
(Float)
-
Parameters:
-
percentage
(Float
) --
def self.round_percentage(percentage) (percentage * 10).floor / 10.0 end