Skip to content
Browse files

Clean up project.

  • Loading branch information...
1 parent 8630001 commit 343b315151b1286f90cfe16de68198b1c2a5ce3c @blambeau committed Jun 5, 2012
View
1 Gemfile
@@ -11,7 +11,6 @@ end
group :profiling do
gem "ruby-prof", "~> 0.11.2"
gem "mustache", "~> 0.99.4"
- #gem "viiite", :git => "git://github.com/blambeau/viiite.git"
end
group :development do
View
10 benchmarks/erb.rb
@@ -1,10 +0,0 @@
-require File.expand_path('../viiite_helper', __FILE__)
-
-Viiite.bench do |b|
- b.variation_point :ruby, Viiite.which_ruby
-
- b.report(:erb){
- tpl = template("table.erb")
- ERB.new(tpl.read).result(binding)
- }
-end
View
10 benchmarks/mustache.rb
@@ -1,10 +0,0 @@
-require File.expand_path('../viiite_helper', __FILE__)
-
-Viiite.bench do |b|
- b.variation_point :ruby, Viiite.which_ruby
-
- b.report(:mutache){
- tpl = template("table.mustache")
- Mustache.render(tpl.read, scope)
- }
-end
View
8 benchmarks/templates/table.erb
@@ -1,8 +0,0 @@
-<table>
- <% people.each do |p| %>
- <tr>
- <td><%= p.name %></td>
- <td><%= p.score %></td>
- </tr>
- <% end %>
-</table>
View
8 benchmarks/templates/table.mustache
@@ -1,8 +0,0 @@
-<table>
- {{#people}}
- <tr>
- <td>{{name}}</td>
- <td>{{score}}</td>
- </tr>
- {{/people}}
-</table>
View
8 benchmarks/templates/table.wlang2
@@ -1,8 +0,0 @@
-<table>
- *{people}{
- <tr>
- <td>${name}</td>
- <td>${score}</td>
- </tr>
- }
-</table>
View
30 benchmarks/viiite_helper.rb
@@ -1,30 +0,0 @@
-$:.unshift File.expand_path('../../lib', __FILE__)
-require 'rubygems' if RUBY_VERSION <= "1.9"
-require 'bundler/setup'
-require 'wlang/mustang'
-require 'wlang/html'
-require 'erb'
-require 'mustache'
-require 'viiite'
-require 'epath'
-
-People = Struct.new(:name, :score)
-
-module Helpers
-
- def people
- @people ||= (1..25000).map{|i|
- People.new("People#{i}", rand)
- }
- end
-
- def scope
- {:people => people}
- end
-
- def template(name)
- Path.dir/:templates/name
- end
-
-end
-include Helpers
View
10 benchmarks/wlang2.rb
@@ -1,10 +0,0 @@
-require File.expand_path('../viiite_helper', __FILE__)
-
-Viiite.bench do |b|
- b.variation_point :ruby, Viiite.which_ruby
-
- b.report(:wlang2){
- tpl = template("table.wlang2")
- WLang::Html.render(tpl, scope)
- }
-end
View
10 profiling/compiling.rb
@@ -1,10 +0,0 @@
-require File.expand_path('../../benchmarks/viiite_helper', __FILE__)
-require 'ruby-prof'
-
-RubyProf.start
-
-WLang::Html.compile template("table.wlang2")
-
-result = RubyProf.stop
-printer = RubyProf::FlatPrinter.new(result)
-printer.print(STDOUT)
View
12 profiling/instantiating.rb
@@ -1,12 +0,0 @@
-require File.expand_path('../../benchmarks/viiite_helper', __FILE__)
-require 'ruby-prof'
-
-tpl = WLang::Html.compile template("table.wlang2")
-
-RubyProf.start
-
-tpl.call(scope)
-
-result = RubyProf.stop
-printer = RubyProf::FlatPrinter.new(result)
-printer.print(STDOUT)
View
26 wlang.noespec
@@ -31,17 +31,15 @@ variables:
- http://blambeau.github.com/wlang
- http://revision-zero.org/wlang
dependencies:
- - {name: citrus, version: "~> 2.4.1", groups: [runtime]}
- - {name: temple, version: "~> 0.4.0", groups: [runtime]}
- - {name: backports, version: "~> 2.6.1", groups: [runtime]}
- - {name: quickl, version: "~> 0.4.3", groups: [runtime]}
- - {name: awesome_print, version: "~> 1.0.2", groups: [runtime]}
- - {name: ruby-prof, version: "~> 0.11.2", groups: [profiling]}
- - {name: mustache, version: "~> 0.99.4", groups: [profiling]}
- - {name: tilt, version: "~> 1.3", groups: [development]}
- - {name: rake, version: "~> 0.9.2", groups: [development]}
- - {name: bundler, version: "~> 1.0", groups: [development]}
- - {name: rspec, version: "~> 2.10.0", groups: [development]}
- - {name: epath, version: "~> 0.1.0", groups: [development]}
- - {name: yard, version: "~> 0.8.1", groups: [development]}
- - {name: bluecloth, version: "~> 2.2.0", groups: [development]}
+ - {name: citrus, version: "~> 2.4.1", groups: [runtime]}
+ - {name: temple, version: "~> 0.4.0", groups: [runtime]}
+ - {name: backports, version: "~> 2.6.1", groups: [runtime]}
+ - {name: quickl, version: "~> 0.4.3", groups: [runtime]}
+ - {name: awesome_print, version: "~> 1.0.2", groups: [runtime]}
+ - {name: tilt, version: "~> 1.3", groups: [development]}
+ - {name: rake, version: "~> 0.9.2", groups: [development]}
+ - {name: bundler, version: "~> 1.0", groups: [development]}
+ - {name: rspec, version: "~> 2.10.0", groups: [development]}
+ - {name: epath, version: "~> 0.1.0", groups: [development]}
+ - {name: yard, version: "~> 0.8.1", groups: [development]}
+ - {name: bluecloth, version: "~> 2.2.0", groups: [development]}

0 comments on commit 343b315

Please sign in to comment.
Something went wrong with that request. Please try again.