Skip to content

Commit

Permalink
Add yarn, update dependencies and results
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Feb 4, 2017
1 parent ebacf39 commit 2f2f89d
Show file tree
Hide file tree
Showing 9 changed files with 3,586 additions and 94 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
*~

npm-debug.log
yarn-error.log
node_modules/
.bundle/

Expand Down
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
sudo: false
language: node_js
cache:
- yarn
- bundler
node_js:
- stable
before_script:
Expand Down
12 changes: 6 additions & 6 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
GEM
remote: https://rubygems.org/
specs:
chunky_png (1.3.6)
chunky_png (1.3.8)
compass (1.0.3)
chunky_png (~> 1.2)
compass-core (~> 1.0.2)
Expand All @@ -14,12 +14,12 @@ GEM
sass (>= 3.3.0, < 3.5)
compass-import-once (1.0.5)
sass (>= 3.2, < 3.5)
ffi (1.9.13)
ffi (1.9.17)
multi_json (1.12.1)
rb-fsevent (0.9.7)
rb-inotify (0.9.7)
rb-fsevent (0.9.8)
rb-inotify (0.9.8)
ffi (>= 0.5.0)
sass (3.4.22)
sass (3.4.23)

PLATFORMS
ruby
Expand All @@ -29,4 +29,4 @@ DEPENDENCIES
sass

BUNDLED WITH
1.12.4
1.13.7
44 changes: 22 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Various benchmarks to have feedback about [PostCSS] perfomance.

All results below was runned on node 6.6.0, Fedora 23, Intel Core i7-6500U,
All results below was runned on node 7.5.0, Fedora 25, Intel Core i7-6500U,
8 GB RAM and SSD:

[PostCSS]: https://github.com/postcss/postcss
Expand All @@ -12,13 +12,13 @@ All results below was runned on node 6.6.0, Fedora 23, Intel Core i7-6500U,
Compare [CSS processors] for parsings, nested rules, mixins, variables and math:

```
PostCSS: 42 ms
Rework: 68 ms (1.6 times slower)
libsass: 77 ms (1.9 times slower)
Less: 142 ms (3.4 times slower)
Stylus: 200 ms (4.8 times slower)
Stylecow: 259 ms (6.2 times slower)
Ruby Sass: 877 ms (21.0 times slower)
PostCSS: 45 ms
Rework: 64 ms (1.4 times slower)
libsass: 101 ms (2.2 times slower)
Less: 136 ms (3.0 times slower)
Stylus: 175 ms (3.9 times slower)
Stylecow: 291 ms (6.5 times slower)
Ruby Sass: 1731 ms (38.7 times slower)
```

To get results on your environment:
Expand All @@ -36,16 +36,16 @@ npm test preprocessors
Compare [CSS parsers] written on JS:

```
CSSTree: 14 ms (1.8 times faster)
Mensch: 21 ms (1.2 times faster)
CSSOM: 25 ms (1.0 times faster)
PostCSS: 25 ms
Rework: 49 ms (1.9 times slower)
PostCSS Full: 69 ms (2.7 times slower)
Stylecow: 102 ms (4.0 times slower)
Gonzales: 108 ms (4.3 times slower)
Gonzales PE: 134 ms (5.3 times slower)
ParserLib: 282 ms (11.1 times slower)
CSSTree: 6 ms (4.7 times faster)
PostCSS: 27 ms
CSSOM: 28 ms (1.0 times slower)
Mensch: 31 ms (1.1 times slower)
Rework: 45 ms (1.6 times slower)
PostCSS Full: 73 ms (2.6 times slower)
Gonzales: 119 ms (4.3 times slower)
Stylecow: 138 ms (5.0 times slower)
Gonzales PE: 148 ms (5.4 times slower)
ParserLib: 302 ms (11.0 times slower)
```

To get results on your environment:
Expand All @@ -62,10 +62,10 @@ npm test parsers
Compare [vendor prefixes tools]:

```
Autoprefixer: 44 ms
Stylecow: 200 ms (4.5 times slower)
nib: 340 ms (7.7 times slower)
Compass: 2417 ms (54.9 times slower)
Autoprefixer: 47 ms
Stylecow: 274 ms (5.8 times slower)
nib: 326 ms (6.9 times slower)
Compass: 3313 ms (70.2 times slower)
```

To get results on your environment:
Expand Down
83 changes: 42 additions & 41 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,54 +1,55 @@
{
"private": true,
"dependencies": {
"stylecow-plugin-nested-rules": "5.0.1",
"stylecow-plugin-variables": "5.1.1",
"stylecow-plugin-prefixes": "6.0.3",
"postcss-selector-parser": "2.2.1",
"eslint-config-postcss": "2.0.2",
"postcss-value-parser": "3.3.0",
"stylecow-plugin-calc": "2.0.0",
"postcss-simple-vars": "3.0.0",
"gulp-bench-summary": "0.1.0",
"load-resources": "0.1.1",
"postcss-nested": "1.0.0",
"postcss-mixins": "5.2.0",
"gulp-sequence": "0.4.6",
"stylecow-core": "2.3.1",
"autoprefixer": "6.4.1",
"postcss-calc": "5.3.1",
"gonzales-pe": "3.4.4",
"gulp-eslint": "3.0.1",
"lint-staged": "3.0.2",
"pre-commit": "1.1.3",
"gulp-bench": "1.1.0",
"parserlib": "1.0.0",
"gulp-util": "3.0.7",
"node-sass": "3.10.0",
"through2": "2.0.1",
"gonzales": "1.0.7",
"fs-extra": "0.30.0",
"css-tree": "1.0.0-alpha14",
"postcss": "5.2.0",
"mensch": "0.3.1",
"stylus": "0.54.5",
"rework": "1.0.1",
"cssom": "0.3.1",
"less": "2.7.1",
"myth": "1.5.0",
"gulp": "3.9.1",
"nib": "1.1.2"
"autoprefixer": "^6.7.2",
"css-tree": "^1.0.0-alpha14",
"cssom": "^0.3.2",
"eslint-config-postcss": "^2.0.2",
"fs-extra": "^2.0.0",
"gonzales": "^1.0.7",
"gonzales-pe": "^4.0.3",
"gulp": "^3.9.1",
"gulp-bench": "^1.1.0",
"gulp-bench-summary": "^0.1.0",
"gulp-eslint": "^3.0.1",
"gulp-sequence": "^0.4.6",
"gulp-util": "^3.0.8",
"less": "^2.7.2",
"lint-staged": "^3.3.0",
"load-resources": "^0.1.1",
"mensch": "^0.3.3",
"myth": "^1.5.0",
"nib": "^1.1.2",
"node-sass": "^4.5.0",
"parserlib": "^1.1.1",
"postcss": "^5.2.11",
"postcss-calc": "^5.3.1",
"postcss-mixins": "^5.4.1",
"postcss-nested": "^1.0.0",
"postcss-selector-parser": "^2.2.2",
"postcss-simple-vars": "^3.0.0",
"postcss-value-parser": "^3.3.0",
"pre-commit": "^1.2.2",
"rework": "^1.0.1",
"stylecow-core": "^2.4.2",
"stylecow-plugin-calc": "^2.0.0",
"stylecow-plugin-nested-rules": "^5.0.1",
"stylecow-plugin-prefixes": "^6.0.4",
"stylecow-plugin-variables": "^5.1.1",
"stylus": "^0.54.5",
"through2": "^2.0.3"
},
"scripts": {
"lint-staged": "lint-staged",
"test": "gulp"
"test": "gulp"
},
"eslintConfig": {
"extends": "eslint-config-postcss/es5"
},
"lint-staged": {
"test/*.js": "eslint",
"lib/*.es6": "eslint"
"test/*.js": "eslint"
},
"pre-commit": ["lint-staged"]
"pre-commit": [
"lint-staged"
]
}
22 changes: 11 additions & 11 deletions parsers.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
/* Results on node 6.6.0, Fedora 23, Intel Core i7-6500U, 8 GB RAM and SSD:
/* Results on node 7.5.0, Fedora 25, Intel Core i7-6500U, 8 GB RAM and SSD:
CSSTree: 14 ms (1.8 times faster)
Mensch: 21 ms (1.2 times faster)
CSSOM: 25 ms (1.0 times faster)
PostCSS: 25 ms
Rework: 49 ms (1.9 times slower)
PostCSS Full: 69 ms (2.7 times slower)
Stylecow: 102 ms (4.0 times slower)
Gonzales: 108 ms (4.3 times slower)
Gonzales PE: 134 ms (5.3 times slower)
ParserLib: 282 ms (11.1 times slower)
CSSTree: 6 ms (4.7 times faster)
PostCSS: 27 ms
CSSOM: 28 ms (1.0 times slower)
Mensch: 31 ms (1.1 times slower)
Rework: 45 ms (1.6 times slower)
PostCSS Full: 73 ms (2.6 times slower)
Gonzales: 119 ms (4.3 times slower)
Stylecow: 138 ms (5.0 times slower)
Gonzales PE: 148 ms (5.4 times slower)
ParserLib: 302 ms (11.0 times slower)
*/

var path = require('path');
Expand Down
10 changes: 5 additions & 5 deletions prefixers.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/* Results on node 6.6.0, Fedora 23, Intel Core i7-6500U, 8 GB RAM and SSD:
/* Results on node 7.5.0, Fedora 25, Intel Core i7-6500U, 8 GB RAM and SSD:
Autoprefixer: 44 ms
Stylecow: 200 ms (4.5 times slower)
nib: 340 ms (7.7 times slower)
Compass: 2417 ms (54.9 times slower)
Autoprefixer: 47 ms
Stylecow: 274 ms (5.8 times slower)
nib: 326 ms (6.9 times slower)
Compass: 3313 ms (70.2 times slower)
*/

var exec = require('child_process').exec;
Expand Down
16 changes: 8 additions & 8 deletions preprocessors.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/* Results on node 6.6.0, Fedora 23, Intel Core i7-6500U, 8 GB RAM and SSD:
/* Results on node 7.5.0, Fedora 25, Intel Core i7-6500U, 8 GB RAM and SSD:
PostCSS: 42 ms
Rework: 68 ms (1.6 times slower)
libsass: 77 ms (1.9 times slower)
Less: 142 ms (3.4 times slower)
Stylus: 200 ms (4.8 times slower)
Stylecow: 259 ms (6.2 times slower)
Ruby Sass: 877 ms (21.0 times slower)
PostCSS: 45 ms
Rework: 64 ms (1.4 times slower)
libsass: 101 ms (2.2 times slower)
Less: 136 ms (3.0 times slower)
Stylus: 175 ms (3.9 times slower)
Stylecow: 291 ms (6.5 times slower)
Ruby Sass: 1731 ms (38.7 times slower)
*/

var exec = require('child_process').exec;
Expand Down
Loading

0 comments on commit 2f2f89d

Please sign in to comment.