lib/peatio/bench/matching/direct.rb
# TODO: Add more useful metrics to result.
Add more useful metrics to result.
Add more useful metrics to result .
def result
        @result ||=
        begin
          matching_ops = @orders_number / (@matching_finished_at - @matching_started_at)
          { config: @config,
            matching: {
              started_at:  @matching_started_at.iso8601(6),
              finished_at: @matching_finished_at.iso8601(6),
              operations:  @orders_number,
              ops:         matching_ops
            }
          }
        end
      end
def result @result ||= begin matching_ops = @orders_number / ( @matching_finished_at - @matching_started_at ) { config : @config , matching : { started_at : @matching_started_at . iso8601 ( 6 ) , finished_at : @matching_finished_at . iso8601 ( 6 ) , operations : @orders_number , ops : matching_ops } } end end
TODO: Add more useful metrics to result.
TODO : Add more useful metrics to result .
# TODO: Deal with calling iso8601(6) everywhere.