Sha256: de7b97756186c80df43cf0f0eac1ad70d381f206c4d52ec912e95a738fa8c744

Contents?: true

Size: 286 Bytes

Versions: 10

Compression:

Stored size: 286 Bytes

Contents

module SpecSupport

  def benchmark(&block)
    require 'benchmark'

    puts "Benchmark:"
    puts Benchmark.measure(&block)
  end

  def profile_methods
    require 'method_profiler'

    profiler = MethodProfiler.observe(Wasabi::Parser)
    yield
    puts profiler.report
  end

end

Version data entries

10 entries across 10 versions & 3 rubygems

Version Path
wasabi-3.5.0 spec/support/profiling.rb
wasabi-3.4.0 spec/support/profiling.rb
wasabi-3.3.1 spec/support/profiling.rb
wasabi-3.3.0 spec/support/profiling.rb
wasabi_with_adapter-3.2.4 spec/support/profiling.rb
wasabi-3.2.3 spec/support/profiling.rb
wasabi-3.2.2 spec/support/profiling.rb
wasabi-3.2.1 spec/support/profiling.rb
wasabi-ng-1.6-3.3.0 spec/support/profiling.rb
wasabi-3.2.0 spec/support/profiling.rb