Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added haml-js benchmarks

  • Loading branch information...
commit 3793da471b0e1a01fcec649cbeef9fcd86ba2728 1 parent 772da5a
@tj tj authored
Showing with 10 additions and 1 deletion.
  1. +3 −0  .gitmodules
  2. +1 −0  benchmark/haml-js
  3. +6 −1 benchmark/run.js
View
3  .gitmodules
@@ -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  benchmark/haml-js
@@ -0,0 +1 @@
+Subproject commit 34fb092db3fff6d3b95a361dea4c21b63b8553c9
View
7 benchmark/run.js
@@ -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.
@@ -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' }});
});
Please sign in to comment.
Something went wrong with that request. Please try again.