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
Provenance
- Commit
8b7787a- Tree
d6480ac- Author
visionmedia <tj@vision-media.ca>- Committer
visionmedia <tj@vision-media.ca>- Parent
e0f94b0
6 files changed+108 added−3 removed
modified:benchmarks/express/haml.js+1 added-1 removed
2 unmodified lines3456778910115 unmodified lines2 unmodified linesrequire('express')require('express/plugins')
configure(function(){ //enable('throw exceptions') enable('cache view contents') set('root', __dirname) set('views', __dirname + '/../shared')})
5 unmodified linesadded:benchmarks/express/sass.js+16 added
12345678910111213141516
require.paths.unshift('lib')require('express')require('express/plugins')
configure(function(){ enable('cache view contents') set('root', __dirname) set('views', __dirname + '/../shared')})
get('/', function(){ this.render('style.css.sass', { layout: false })})
run()No newline at end of fileadded:benchmarks/shared/style.css.sass+73 added
1+body2+ :font-family "Helvetica Neue", "Lucida Grande", "Arial"3+ :font-size 13px4+ :text-align center5+ :color #5556+ 7+h1, h28+ :margin 09+ :font-size 22px10+ :color #34343411+h112+ :text-shadow 1px 2px 2px #ddd13+ :font-size 60px14+ 15+img.bubble16+ :position absolute17+ :top -25px18+ :left 120px19+ 20+#wrapper21+ :position relative22+ :margin 100px auto23+ :width 500px24+ :text-align left25+ 26+ul27+ :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 #2E2E2E39+40+input[type=text]41+ :padding 5px42+ :border 1px solid #ddd43+ :outline none44+input[type=text]:focus45+ :border-color #00C3FF46+47+input[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 158+input[type=submit]:hover59+ :background -webkit-gradient(linear, 0% 0%, 0% 100%, from(#fff), to(#E6E4E4))60+input[type=submit]:active61+ :background -webkit-gradient(linear, 0% 0%, 0% 100%, from(#fff), to(#c7c7c7))62+input[name=name]63+ :width 80px64+ 65+a66+ :color #1ABFF167+a:hover68+ :padding 0 5px69+a:hover:before70+ :content 'visit: '71+ 72+#online73+ :font-size 12pxadded:benchmarks/thin/sass.ru+14 added
1+2+require 'rubygems'3+require 'sinatra'4+require 'sass'5+6+configure do7+ set 'views', File.dirname(__FILE__) + '/../shared'8+end9+10+get '/' do11+ sass :'style.css'12+end13+14+run Sinatra::Applicationmodified:benchmarks/graph+1 added-1 removed
53 unmodified lines54 }55 56 mkdir -p benchmarks/graphs57 58-for type in simple static static.large haml; do58+for 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 linesmodified:benchmarks/run+3 added-1 removed
51 unmodified lines52 bm express simple.js53 bm express static.js54 bm express static.large.js55 bm express haml.js56+bm express sass.js57 bm thin simple.ru58 bm thin static.ru59 bm thin static.large.ru59-bm thin haml.ru60+bm thin haml.ru61+bm thin sass.ru