Skip to content

Commit

Permalink
Update results
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Dec 13, 2022
1 parent 14bdd9d commit 7f6a0d0
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 49 deletions.
46 changes: 22 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

Various benchmarks to have feedback about [PostCSS] perfomance.

All results below was runned on Node 15.2.1, Fedora 33, Intel Core i7-1065G7,
and 16 GB RAM:
All results below was run on Node 19.2.0, GitHub Actions:

[PostCSS]: https://github.com/postcss/postcss

Expand All @@ -13,14 +12,13 @@ and 16 GB RAM:
Compare [CSS processors] for parsings, nested rules, mixins, variables and math:

```
Rework: 33 ms (1.2 times faster)
PostCSS sync: 36 ms (1.1 times faster)
PostCSS: 38 ms
Dart Sass sync: 66 ms (1.7 times slower)
LibSass sync: 68 ms (1.8 times slower)
LibSass: 69 ms (1.8 times slower)
Dart Sass: 130 ms (3.4 times slower)
Less: 256 ms (6.7 times slower)
PostCSS sync: 74 ms (1.1 times faster)
PostCSS: 78 ms
LibSass sync: 110 ms (1.4 times slower)
LibSass: 112 ms (1.4 times slower)
Less: 140 ms (1.8 times slower)
Dart Sass sync: 197 ms (2.5 times slower)
Dart Sass: 376 ms (4.8 times slower)
```

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

```
Stylis: 5 ms (3.1 times faster)
CSSTree: 9 ms (1.7 times faster)
PostCSS: 16 ms
CSSOM: 18 ms (1.2 times slower)
Mensch: 21 ms (1.3 times slower)
Rework: 27 ms (1.7 times slower)
Stylecow: 39 ms (2.5 times slower)
PostCSS Full: 67 ms (4.3 times slower)
ParserLib: 74 ms (4.7 times slower)
Gonzales: 74 ms (4.7 times slower)
Gonzales PE: 82 ms (5.2 times slower)
Stylis: 14 ms (2.3 times faster)
CSSOM: 22 ms (1.5 times faster)
CSSTree: 31 ms (1.1 times faster)
PostCSS: 33 ms
Mensch: 33 ms (1.0 times slower)
Rework: 51 ms (1.5 times slower)
Stylecow: 66 ms (2.0 times slower)
PostCSS Full: 93 ms (2.8 times slower)
ParserLib: 141 ms (4.2 times slower)
Gonzales: 159 ms (4.8 times slower)
```

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

```
Stylis: 8 ms (5.1 times faster)
Autoprefixer: 42 ms
Stylecow: 343 ms (8.2 times slower)
Lightning CSS: 12 ms (7.9 times faster)
Stylis: 18 ms (5.2 times faster)
Autoprefixer: 94 ms
Stylecow: 835 ms (8.9 times slower)
```

To get results on your environment:
Expand Down
23 changes: 11 additions & 12 deletions parsers.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
/* Results on Node.js 15.2.1, Fedora 33, Intel Core i7-1065G7, and 16 GB RAM:
/* Results on Node 19.2.0, GitHub Actions:
Stylis: 5 ms (3.1 times faster)
CSSTree: 9 ms (1.7 times faster)
PostCSS: 16 ms
CSSOM: 18 ms (1.2 times slower)
Mensch: 21 ms (1.3 times slower)
Rework: 27 ms (1.7 times slower)
Stylecow: 39 ms (2.5 times slower)
PostCSS Full: 67 ms (4.3 times slower)
ParserLib: 74 ms (4.7 times slower)
Gonzales: 74 ms (4.7 times slower)
Gonzales PE: 82 ms (5.2 times slower)
Stylis: 14 ms (2.3 times faster)
CSSOM: 22 ms (1.5 times faster)
CSSTree: 31 ms (1.1 times faster)
PostCSS: 33 ms
Mensch: 33 ms (1.0 times slower)
Rework: 51 ms (1.5 times slower)
Stylecow: 66 ms (2.0 times slower)
PostCSS Full: 93 ms (2.8 times slower)
ParserLib: 141 ms (4.2 times slower)
Gonzales: 159 ms (4.8 times slower)
*/

let { readFileSync, existsSync } = require('fs')
Expand Down
9 changes: 5 additions & 4 deletions prefixers.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
/* Results on Node.js 15.2.1, Fedora 33, Intel Core i7-1065G7, and 16 GB RAM:
/* Results on Node 19.2.0, GitHub Actions:
Stylis: 8 ms (5.1 times faster)
Autoprefixer: 42 ms
Stylecow: 343 ms (8.2 times slower)
Lightning CSS: 12 ms (7.9 times faster)
Stylis: 18 ms (5.2 times faster)
Autoprefixer: 94 ms
Stylecow: 835 ms (8.9 times slower)
*/

let { existsSync, readFileSync } = require('fs')
Expand Down
17 changes: 8 additions & 9 deletions preprocessors.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
/* Results on Node.js 15.2.1, Fedora 33, Intel Core i7-1065G7, and 16 GB RAM:
/* Results on Node 19.2.0, GitHub Actions:
Rework: 33 ms (1.2 times faster)
PostCSS sync: 36 ms (1.1 times faster)
PostCSS: 38 ms
Dart Sass sync: 66 ms (1.7 times slower)
LibSass sync: 68 ms (1.8 times slower)
LibSass: 69 ms (1.8 times slower)
Dart Sass: 130 ms (3.4 times slower)
Less: 256 ms (6.7 times slower)
PostCSS sync: 74 ms (1.1 times faster)
PostCSS: 78 ms
LibSass sync: 110 ms (1.4 times slower)
LibSass: 112 ms (1.4 times slower)
Less: 140 ms (1.8 times slower)
Dart Sass sync: 197 ms (2.5 times slower)
Dart Sass: 376 ms (4.8 times slower)
*/

let { readFileSync, writeFileSync, existsSync } = require('fs')
Expand Down

0 comments on commit 7f6a0d0

Please sign in to comment.