Skip to content
Myr

Added sass 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 e0f94b0 · Browse files · 6 files+108 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

6 files+108 added−3 removed

  • other:+108 added−3 removed

6 files+108 added−3 removed

modified:benchmarks/express/haml.js+1 added-1 removed
added:benchmarks/express/sass.js+16 added
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/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 haml; 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+3 added-1 removed
51 unmodified lines
52bm express simple.js53bm express static.js54bm express static.large.js55bm express haml.js56bm express sass.js57bm thin simple.ru58bm thin static.ru59bm thin static.large.ru59bm thin haml.ru60bm thin haml.ru61bm thin sass.ru