Sha256: b0cab7a05fab470b31f9eaac7aab17f47450c6e52824478c1c63e3ac0d81557a
Contents?: true
Size: 459 Bytes
Versions: 8
Compression:
Stored size: 459 Bytes
Contents
require "benchmark" require File.dirname(__FILE__) + '/../lib/tadpole' Tadpole.register_template_path File.dirname(__FILE__) + '/../examples/example1' TESTS = 1 Benchmark.bm do |b| b.report("no-cache") do Tadpole.caching = false t = Tadpole('custom/html').new TESTS.times { t.run(:object => 1) } end b.report("cache ") do Tadpole.caching = true t = Tadpole('custom/html').new TESTS.times { t.run(:object => 1) } end end
Version data entries
8 entries across 8 versions & 1 rubygems