Skip to content
Myr

Added haml benchmarks

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by visionmedia · committed by visionmedia · parent 5af315c · Browse files · 7 files+63 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

7 files+63 added−1 removed

  • other:+63 added−1 removed

7 files+63 added−1 removed

added:benchmarks/express/haml.js+16 added
added:benchmarks/shared/layout.haml+6 added
1!!!2%html3 %head4 %title Wahoo5 %body6 #primary= yield
added:benchmarks/shared/layout.html.haml+6 added
1!!!2%html3 %head4 %title Wahoo5 %body6 #primary!= body
added:benchmarks/shared/page.haml+10 added
1%h1 Some title2%ul3 %li a4 %li b5 %li c6 %li7 %ol8 %li d9 %li e10 %li f
added:benchmarks/shared/page.html.haml+10 added
1%h1 Some title2%ul3 %li a4 %li b5 %li c6 %li7 %ol8 %li d9 %li e10 %li f
added:benchmarks/thin/haml.ru+14 added
12require 'rubygems'3require 'sinatra'4require 'haml'56configure do7 set 'views', File.dirname(__FILE__) + '/../shared'8end910get '/' do11 haml :page12end1314run Sinatra::Application
modified:lib/express/request.js+1 added-1 removed
117 unmodified lines
118 */119120 accepts: function() {121 var accept = this.header('accept')122 if (!accept) return true122 if (!accept || accept === '*/*') return true123 return arguments.any(function(path){124 var type = mime.type(path)125 return accept.indexOf(type) !== -1 ||126 accept.indexOf(type.split('/')[0] + '/*') !== -1
284 unmodified lines