module BenchmarkModule

Public Class Methods

benchmark() { || ... } click to toggle source
# File vendor/qwik/lib/qwik/bench-module-session.rb, line 8
def benchmark
  result = nil
  Benchmark.bm {|x|
    x.report { 
      result = yield 
    }
  }
  return result
end

Private Instance Methods

benchmark() { || ... } click to toggle source
# File vendor/qwik/lib/qwik/bench-module-session.rb, line 8
def benchmark
  result = nil
  Benchmark.bm {|x|
    x.report { 
      result = yield 
    }
  }
  return result
end