module ApiValve::Benchmarking

Public Instance Methods

benchmark() { || ... } click to toggle source
# File lib/api_valve/benchmarking.rb, line 3
def benchmark
  result = nil
  time = Benchmark.realtime do
    result = yield
  end
  [result, time]
end