Skip to content
Myr

Merge branch 'benchmarks'

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

authored by visionmedia · committed by visionmedia · parents 5af315c, 8b7787a · Browse files · 12 files+172 added−3 removed
This commit

State

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

Diff stats

12 files+172 added−3 removed

  • other:+172 added−3 removed

12 files+172 added−3 removed

added:benchmarks/express/haml.js+16 added
added:benchmarks/express/sass.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/shared/style.css.sass+73 added
1body2 :font-family "Helvetica Neue", "Lucida Grande", "Arial"3 :font-size 13px4 :text-align center5 :color #5556 7h1, h28 :margin 09 :font-size 22px10 :color #34343411h112 :text-shadow 1px 2px 2px #ddd13 :font-size 60px14 15img.bubble16 :position absolute17 :top -25px18 :left 120px19 20#wrapper21 :position relative22 :margin 100px auto23 :width 500px24 :text-align left25 26ul27 :margin 028 :padding 029 :max-height 300px30 :overflow-x hidden31 li32 :margin 5px 033 :padding 3px 8px34 :list-style none35 :border 1px solid #eee36 li:hover37 :cursor pointer38 :color #2E2E2E3940input[type=text]41 :padding 5px42 :border 1px solid #ddd43 :outline none44input[type=text]:focus45 :border-color #00C3FF4647input[type=submit]48 :padding 6px 10px49 :border solid 1px #99950 :background -webkit-gradient(linear, 0% 0%, 0% 100%, from(#fff), to(#ddd))51 :color #33352 :text-decoration none53 :cursor pointer54 :display inline-block55 :text-align center56 :text-shadow 0px 1px 1px #fff57 :line-height 158input[type=submit]:hover59 :background -webkit-gradient(linear, 0% 0%, 0% 100%, from(#fff), to(#E6E4E4))60input[type=submit]:active61 :background -webkit-gradient(linear, 0% 0%, 0% 100%, from(#fff), to(#c7c7c7))62input[name=name]63 :width 80px64 65a66 :color #1ABFF167a:hover68 :padding 0 5px69a:hover:before70 :content 'visit: '71 72#online73 :font-size 12px
added:benchmarks/thin/haml.ru+14 added
12require 'rubygems'3require 'sinatra'4require 'haml'56configure do7 set 'views', File.dirname(__FILE__) + '/../shared'8end910get '/' do11 haml :page, :ugly => true12end1314run Sinatra::Application
added:benchmarks/thin/sass.ru+14 added
12require 'rubygems'3require 'sinatra'4require 'sass'56configure do7 set 'views', File.dirname(__FILE__) + '/../shared'8end910get '/' do11 sass :'style.css'12end1314run Sinatra::Application
modified:benchmarks/graph+1 added-1 removed
53 unmodified lines
54}5556mkdir -p benchmarks/graphs5758for type in simple static static.large; do58for type in simple haml sass static static.large; do59 plot=benchmarks/graphs/$type.p60 log generating benchmarks/graphs/$type.png61 line $type \62 node/$type.js.dat \
22 unmodified lines
modified:benchmarks/run+5 added-1 removed
50 unmodified lines
51bm node static.large.js52bm express simple.js53bm express static.js54bm express static.large.js55bm express haml.js56bm express sass.js57bm thin simple.ru58bm thin static.ru57bm thin static.large.ru59bm thin static.large.ru60bm thin haml.ru61bm thin sass.ru
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