Sha256: da28027035e84c5b4f1f5439a6bba56c3a43e4025b85735c3168a57b60467c9b

Contents?: true

Size: 296 Bytes

Versions: 59

Compression:

Stored size: 296 Bytes

Contents

#!/usr/bin/env ruby

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

require 'slim'
require 'context'

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

10000.times { slim.render(context) }

Version data entries

59 entries across 59 versions & 5 rubygems

Version Path
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/slim-4.1.0/benchmarks/profile-render.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/slim-4.1.0/benchmarks/profile-render.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/slim-4.1.0/benchmarks/profile-render.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/slim-4.1.0/benchmarks/profile-render.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/slim-4.1.0/benchmarks/profile-render.rb
slim-5.0.0 benchmarks/profile-render.rb
slim-4.1.0 benchmarks/profile-render.rb
slim-4.0.1 benchmarks/profile-render.rb
slim-4.0.0 benchmarks/profile-render.rb
brakeman-4.3.1 bundle/ruby/2.5.0/gems/slim-3.0.7/benchmarks/profile-render.rb
brakeman-4.3.0 bundle/ruby/2.5.0/gems/slim-3.0.7/benchmarks/profile-render.rb
brakeman-4.2.1 bundle/ruby/2.5.0/gems/slim-3.0.7/benchmarks/profile-render.rb
brakeman-4.2.0 bundle/ruby/2.3.0/gems/slim-3.0.7/benchmarks/profile-render.rb
brakeman-4.1.1 bundle/ruby/2.3.0/gems/slim-3.0.7/benchmarks/profile-render.rb
brakeman-4.1.0 bundle/ruby/2.3.0/gems/slim-3.0.7/benchmarks/profile-render.rb
slim-3.0.9 benchmarks/profile-render.rb
brakeman-4.0.1 bundle/ruby/2.3.0/gems/slim-3.0.7/benchmarks/profile-render.rb
brakeman-4.0.1.pre1 bundle/ruby/2.3.0/gems/slim-3.0.7/benchmarks/profile-render.rb
brakeman-4.0.0 bundle/ruby/2.3.0/gems/slim-3.0.7/benchmarks/profile-render.rb
brakeman-3.7.2 bundle/ruby/2.3.0/gems/slim-3.0.7/benchmarks/profile-render.rb