Skip to content

Commit

Permalink
Update results
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Jul 6, 2023
1 parent aac5161 commit a8f3836
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 50 deletions.
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 run on Node 19.2.0, GitHub Actions:
All results below was run on Node 20.3.1, Github Actions:

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

Expand All @@ -12,13 +12,13 @@ All results below was run on Node 19.2.0, GitHub Actions:
Compare [CSS processors] for parsings, nested rules, mixins, variables and math:

```
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)
PostCSS sync: 70 ms (1.0 times faster)
PostCSS: 72 ms
LibSass sync: 118 ms (1.6 times slower)
LibSass: 123 ms (1.7 times slower)
Less: 139 ms (1.9 times slower)
Dart Sass sync: 219 ms (3.0 times slower)
Dart Sass: 397 ms (5.5 times slower)
```

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

```
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)
Stylis: 15 ms (1.8 times faster)
CSSOM: 24 ms (1.2 times faster)
PostCSS: 28 ms
CSSTree: 37 ms (1.3 times slower)
Mensch: 37 ms (1.3 times slower)
Rework: 49 ms (1.8 times slower)
Stylecow: 73 ms (2.6 times slower)
PostCSS Full: 95 ms (3.4 times slower)
ParserLib: 153 ms (5.5 times slower)
Gonzales: 177 ms (6.4 times slower)
```

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

```
Lightning CSS: 13 ms (9.0 times faster)
Stylis: 21 ms (5.8 times faster)
Autoprefixer: 120 ms
Stylecow: 1061 ms (8.9 times slower)
Lightning CSS: 12 ms (7.7 times faster)
Stylis: 18 ms (5.3 times faster)
Autoprefixer: 96 ms
Stylecow: 1009 ms (10.5 times slower)
```

To get results on your environment:
Expand Down
4 changes: 2 additions & 2 deletions linters.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* Results on Node 19.9.0, GitHub Actions:
/* Results on Node 20.3.1, Github Actions:
PostCSS: 826 ms
PostCSS: 577 ms
*/

let { existsSync, readFileSync } = require('fs')
Expand Down
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 19.9.0, GitHub Actions:
/* Results on Node 20.3.1, Github Actions:
Stylis: 14 ms (2.3 times faster)
CSSOM: 25 ms (1.3 times faster)
CSSTree: 32 ms (1.0 times faster)
PostCSS: 33 ms
Mensch: 34 ms (1.0 times slower)
Rework: 52 ms (1.6 times slower)
Stylecow: 75 ms (2.3 times slower)
PostCSS Full: 98 ms (3.0 times slower)
Gonzales: 159 ms (4.8 times slower)
ParserLib: 161 ms (4.9 times slower)
Stylis: 15 ms (1.8 times faster)
CSSOM: 24 ms (1.2 times faster)
PostCSS: 28 ms
CSSTree: 37 ms (1.3 times slower)
Mensch: 37 ms (1.3 times slower)
Rework: 49 ms (1.8 times slower)
Stylecow: 73 ms (2.6 times slower)
PostCSS Full: 95 ms (3.4 times slower)
ParserLib: 153 ms (5.5 times slower)
Gonzales: 177 ms (6.4 times slower)
*/

let { existsSync, readFileSync } = require('fs')
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 19.9.0, GitHub Actions:
/* Results on Node 20.3.1, Github Actions:
Lightning CSS: 15 ms (6.9 times faster)
Stylis: 17 ms (5.8 times faster)
Autoprefixer: 101 ms
Stylecow: 1032 ms (10.2 times slower)
Lightning CSS: 12 ms (7.7 times faster)
Stylis: 18 ms (5.3 times faster)
Autoprefixer: 96 ms
Stylecow: 1009 ms (10.5 times slower)
*/

let { existsSync, readFileSync } = require('fs')
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 19.9.0, GitHub Actions:
/* Results on Node 20.3.1, Github Actions:
PostCSS sync: 76 ms (1.0 times faster)
PostCSS: 79 ms
LibSass sync: 123 ms (1.6 times slower)
LibSass: 124 ms (1.6 times slower)
Less: 150 ms (1.9 times slower)
Dart Sass sync: 199 ms (2.5 times slower)
Dart Sass: 372 ms (4.7 times slower)
PostCSS sync: 70 ms (1.0 times faster)
PostCSS: 72 ms
LibSass sync: 118 ms (1.6 times slower)
LibSass: 123 ms (1.7 times slower)
Less: 139 ms (1.9 times slower)
Dart Sass sync: 219 ms (3.0 times slower)
Dart Sass: 397 ms (5.5 times slower)
*/

let { existsSync, readFileSync, writeFileSync } = require('fs')
Expand Down
4 changes: 2 additions & 2 deletions tokenizers.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* Results on Node 19.9.0, GitHub Actions:
/* Results on Node 20.3.1, Github Actions:
PostCSS: 9 ms
PostCSS: 11 ms
*/

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

0 comments on commit a8f3836

Please sign in to comment.