class CelluloidBenchmark::TextFormatter

Public Class Methods

status_text(trans) click to toggle source
# File lib/celluloid_benchmark/text_formatter.rb, line 9
def self.status_text(trans)
  if trans.ok?
    "[ OK ]"
  elsif trans.error?
    "[ERR ]"
  else
    "[FAIL]"
  end
end
to_s(benchmark_run) click to toggle source
# File lib/celluloid_benchmark/text_formatter.rb, line 5
def self.to_s(benchmark_run)
  tp benchmark_run.benchmarks.sort_by(&:label), :label, :threshold, :average_response_time, :min_response_time, :max_response_time, :responses
end