Sha256: 23b3e84189322c73fc7726bd6042ea5e459d000c9dcdde3b6010c991e360a2c2

Contents?: true

Size: 300 Bytes

Versions: 96

Compression:

Stored size: 300 Bytes

Contents

#!/usr/bin/env ruby

$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'), File.dirname(__FILE__))

require 'slim'
require 'complex_view'

content = File.read(File.dirname(__FILE__) + '/view.slim')
slim = Slim::Template.new { content }
view  = ComplexView.new

10000.times { slim.render(view) }

Version data entries

96 entries across 51 versions & 2 rubygems

Version Path
classiccms-0.5.13 vendor/bundle/gems/slim-1.2.0/benchmarks/profile-render.rb
classiccms-0.5.13 vendor/bundle/gems/slim-1.2.1/benchmarks/profile-render.rb
classiccms-0.5.12 vendor/bundle/gems/slim-1.2.0/benchmarks/profile-render.rb
classiccms-0.5.12 vendor/bundle/gems/slim-1.2.1/benchmarks/profile-render.rb
classiccms-0.5.11 vendor/bundle/gems/slim-1.2.0/benchmarks/profile-render.rb
classiccms-0.5.11 vendor/bundle/gems/slim-1.2.1/benchmarks/profile-render.rb
classiccms-0.5.10 vendor/bundle/gems/slim-1.2.0/benchmarks/profile-render.rb
classiccms-0.5.10 vendor/bundle/gems/slim-1.2.1/benchmarks/profile-render.rb
classiccms-0.5.9 vendor/bundle/gems/slim-1.2.1/benchmarks/profile-render.rb
classiccms-0.5.9 vendor/bundle/gems/slim-1.2.0/benchmarks/profile-render.rb
classiccms-0.5.8 vendor/bundle/gems/slim-1.2.1/benchmarks/profile-render.rb
classiccms-0.5.8 vendor/bundle/gems/slim-1.2.0/benchmarks/profile-render.rb
classiccms-0.5.7 vendor/bundle/gems/slim-1.2.0/benchmarks/profile-render.rb
classiccms-0.5.7 vendor/bundle/gems/slim-1.2.1/benchmarks/profile-render.rb
classiccms-0.5.6 vendor/bundle/gems/slim-1.2.0/benchmarks/profile-render.rb
classiccms-0.5.6 vendor/bundle/gems/slim-1.2.1/benchmarks/profile-render.rb
classiccms-0.5.5 vendor/bundle/gems/slim-1.2.0/benchmarks/profile-render.rb
classiccms-0.5.5 vendor/bundle/gems/slim-1.2.1/benchmarks/profile-render.rb
classiccms-0.5.2 vendor/bundle/gems/slim-1.2.0/benchmarks/profile-render.rb
classiccms-0.5.2 vendor/bundle/gems/slim-1.2.1/benchmarks/profile-render.rb