module Eco module API class Session class Batch module Launcher module Benchmarking private def str_per_sec(start, count) now = Time.now secs = (now - start).round(2) return ' -- ' unless secs > 0.0 per_sec = (count.to_f / secs).round(2) "#{secs}s -> #{per_sec} people/s" end end end end end end end