Sha256: 412b1ed56ec163d4d28411021fb250de447c992e29fa72dbf61a22874c7151be

Contents?: true

Size: 220 Bytes

Versions: 5

Compression:

Stored size: 220 Bytes

Contents

### My little tool for benchmarking code blocks
class BasicBenchmark
  def initialize(label)
    time = Time.now
    puts "--> #{label}"
    yield
    puts "======= Completed in #{(Time.now - time)} s ======="
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
date_book-0.0.6 spec/dummy/lib/basic_benchmark.rb
date_book-0.0.5 spec/dummy/lib/basic_benchmark.rb
date_book-0.0.3 spec/dummy/lib/basic_benchmark.rb
date_book-0.0.2 spec/dummy/lib/basic_benchmark.rb
date_book-0.0.1 spec/dummy/lib/basic_benchmark.rb