Sha256: 75b6ce5d23faa8f33daf82c2213aa07d4531206ed83d32252a32ffb92fc9cc00
Contents?: true
Size: 1.23 KB
Versions: 1
Compression:
Stored size: 1.23 KB
Contents
module Stella::Test module SummaryBase attr_reader :message attr_reader :elapsed_time_avg, :transaction_rate_avg, :vusers_avg, :response_time_avg attr_reader :elapsed_time_sdev, :transaction_rate_sdev, :vusers_sdev, :response_time_sdev attr_accessor :transactions_total, :headers_transferred_total, :data_transferred_total attr_accessor :successful_total, :failed_total, :elapsed_time_total def availability return 0 if @successful_total == 0 (@transactions_total / @successful_total).to_f * 100 end def throughput return 0 if @elapsed_time_total == 0 (@data_transferred_total / @elapsed_time_total).to_f end # Defines the fields the are output by to_hash and to_csv. # For to_csv, this also determines the field order def field_names [ :message, :elapsed_time_avg, :transaction_rate_avg, :vusers_avg, :response_time_avg, :elapsed_time_sdev, :transaction_rate_sdev, :vusers_sdev, :response_time_sdev, :transactions_total, :successful_total, :failed_total, :data_transferred_total, :headers_transferred_total, :elapsed_time_total, :availability, :throughput ] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stella-0.5.1 | lib/stella/test/summarybase.rb |