Skip to content

Commit

Permalink
Added haml-js benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Jun 27, 2010
1 parent 772da5a commit 3793da4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@
[submodule "benchmarks/haml"]
path = benchmarks/haml
url = git://github.com/visionmedia/haml.js.git
[submodule "benchmark/haml-js"]
path = benchmark/haml-js
url = http://github.com/creationix/haml-js.git
1 change: 1 addition & 0 deletions benchmark/haml-js
Submodule haml-js added at 34fb09
7 changes: 6 additions & 1 deletion benchmark/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
var sys = require('sys'),
fs = require('fs'),
jade = require('./../lib/jade'),
haml = require('./haml/lib/haml');
haml = require('./haml/lib/haml'),
hamljs = require('./haml-js/lib/haml');

/**
* Iterations.
Expand Down Expand Up @@ -49,6 +50,10 @@ bm('haml.js render', function(){
haml.render(hamlStr, { locals: { title: 'Haml' }});
});

bm('haml-js render', function(){
hamljs.render(hamlStr, { locals: { title: 'Haml' }});
});

bm('jade cached', function(){
jade.render(jadeStr, { cache: true, filename: 'layout.jade', locals: { title: 'Jade' }});
});
Expand Down

0 comments on commit 3793da4

Please sign in to comment.