lib/peatio/bench/order_processing/direct.rb
def result
        @result ||=
        begin
          processing_ops = @orders_number / (@processing_finished_at - @processing_started_at)

          # TODO: Deal with calling iso8601(6) everywhere.
          { config: @config,
            order_processing: {
              started_at:  @processing_started_at.iso8601(6),
              finished_at: @processing_finished_at.iso8601(6),
              operations:  @orders_number,
              ops:         processing_ops
            }
          }
        end
      end
# TODO: Add more useful metrics to result.
Add more useful metrics to result.
Add more useful metrics to result .
def result
        @result ||=
        begin
          processing_ops = @orders_number / (@processing_finished_at - @processing_started_at)
          { config: @config,
            order_processing: {
              started_at:  @processing_started_at.iso8601(6),
              finished_at: @processing_finished_at.iso8601(6),
              operations:  @orders_number,
              ops:         processing_ops
            }
          }
        end
      end
def result @result ||= begin processing_ops = @orders_number / ( @processing_finished_at - @processing_started_at ) { config : @config , order_processing : { started_at : @processing_started_at . iso8601 ( 6 ) , finished_at : @processing_finished_at . iso8601 ( 6 ) , operations : @orders_number , ops : processing_ops } } end end
TODO: Add more useful metrics to result.
TODO : Add more useful metrics to result .
# TODO: Deal with calling iso8601(6) everywhere.