Skip to content

Commit

Permalink
Use PostCSS 6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed May 8, 2017
1 parent 2f2f89d commit 1c2bbd3
Show file tree
Hide file tree
Showing 7 changed files with 446 additions and 375 deletions.
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ GEM
sass (>= 3.3.0, < 3.5)
compass-import-once (1.0.5)
sass (>= 3.2, < 3.5)
ffi (1.9.17)
ffi (1.9.18)
multi_json (1.12.1)
rb-fsevent (0.9.8)
rb-inotify (0.9.8)
Expand All @@ -29,4 +29,4 @@ DEPENDENCIES
sass

BUNDLED WITH
1.13.7
1.14.6
42 changes: 21 additions & 21 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 7.5.0, Fedora 25, Intel Core i7-6500U,
All results below was runned on node 7.10.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 7.5.0, Fedora 25, Intel Core i7-6500U,
Compare [CSS processors] for parsings, nested rules, mixins, variables and math:

```
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)
PostCSS: 39 ms
Rework: 68 ms (1.8 times slower)
libsass: 100 ms (2.6 times slower)
Less: 134 ms (3.5 times slower)
Stylus: 171 ms (4.4 times slower)
Stylecow: 296 ms (7.6 times slower)
Ruby Sass: 1692 ms (43.6 times slower)
```

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

```
CSSTree: 6 ms (4.7 times faster)
PostCSS: 27 ms
CSSOM: 28 ms (1.0 times slower)
CSSTree: 6 ms (4.9 times faster)
PostCSS: 29 ms
CSSOM: 29 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)
Rework: 49 ms (1.7 times slower)
PostCSS Full: 75 ms (2.6 times slower)
Gonzales: 116 ms (4.0 times slower)
Stylecow: 140 ms (4.8 times slower)
Gonzales PE: 150 ms (5.1 times slower)
ParserLib: 316 ms (10.8 times slower)
```

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

```
Autoprefixer: 47 ms
Stylecow: 274 ms (5.8 times slower)
nib: 326 ms (6.9 times slower)
Compass: 3313 ms (70.2 times slower)
Autoprefixer: 51 ms
Stylecow: 294 ms (5.7 times slower)
nib: 313 ms (6.1 times slower)
Compass: 3298 ms (64.4 times slower)
```

To get results on your environment:
Expand Down
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"private": true,
"dependencies": {
"autoprefixer": "^6.7.2",
"autoprefixer": "^7.0.1",
"css-tree": "^1.0.0-alpha14",
"cssom": "^0.3.2",
"eslint-config-postcss": "^2.0.2",
"fs-extra": "^2.0.0",
"fs-extra": "^3.0.1",
"gonzales": "^1.0.7",
"gonzales-pe": "^4.0.3",
"gulp": "^3.9.1",
Expand All @@ -15,26 +15,26 @@
"gulp-sequence": "^0.4.6",
"gulp-util": "^3.0.8",
"less": "^2.7.2",
"lint-staged": "^3.3.0",
"lint-staged": "^3.4.1",
"load-resources": "^0.1.1",
"mensch": "^0.3.3",
"myth": "^1.5.0",
"nib": "^1.1.2",
"node-sass": "^4.5.0",
"node-sass": "^4.5.2",
"parserlib": "^1.1.1",
"postcss": "^5.2.11",
"postcss": "^6.0.1",
"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-mixins": "^6.0.0",
"postcss-nested": "^2.0.0",
"postcss-selector-parser": "^2.2.3",
"postcss-simple-vars": "^4.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-prefixes": "^6.0.5",
"stylecow-plugin-variables": "^5.1.1",
"stylus": "^0.54.5",
"through2": "^2.0.3"
Expand Down
20 changes: 10 additions & 10 deletions parsers.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
/* Results on node 7.5.0, Fedora 25, Intel Core i7-6500U, 8 GB RAM and SSD:
/* Results on node 7.10.0, Fedora 25, Intel Core i7-6500U, 8 GB RAM and SSD:
CSSTree: 6 ms (4.7 times faster)
PostCSS: 27 ms
CSSOM: 28 ms (1.0 times slower)
CSSTree: 6 ms (4.9 times faster)
PostCSS: 29 ms
CSSOM: 29 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)
Rework: 49 ms (1.7 times slower)
PostCSS Full: 75 ms (2.6 times slower)
Gonzales: 116 ms (4.0 times slower)
Stylecow: 140 ms (4.8 times slower)
Gonzales PE: 150 ms (5.1 times slower)
ParserLib: 316 ms (10.8 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 7.5.0, Fedora 25, Intel Core i7-6500U, 8 GB RAM and SSD:
/* Results on node 7.10.0, Fedora 25, Intel Core i7-6500U, 8 GB RAM and SSD:
Autoprefixer: 47 ms
Stylecow: 274 ms (5.8 times slower)
nib: 326 ms (6.9 times slower)
Compass: 3313 ms (70.2 times slower)
Autoprefixer: 51 ms
Stylecow: 294 ms (5.7 times slower)
nib: 313 ms (6.1 times slower)
Compass: 3298 ms (64.4 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 7.5.0, Fedora 25, Intel Core i7-6500U, 8 GB RAM and SSD:
/* Results on node 7.10.0, Fedora 25, Intel Core i7-6500U, 8 GB RAM and SSD:
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)
PostCSS: 39 ms
Rework: 68 ms (1.8 times slower)
libsass: 100 ms (2.6 times slower)
Less: 134 ms (3.5 times slower)
Stylus: 171 ms (4.4 times slower)
Stylecow: 296 ms (7.6 times slower)
Ruby Sass: 1692 ms (43.6 times slower)
*/

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

0 comments on commit 1c2bbd3

Please sign in to comment.