Skip to content

Commit

Permalink
chore(benchmark): update Meriyah
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbonnet committed Jul 15, 2019
1 parent 3e3bf2e commit 6e56162
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,17 +114,17 @@ Operations per second for generating each sample code from a pre-parsed AST:

| code sample (length) | escodegen | astring | uglify | babel | prettier |
| :------------------- | --------: | --------: | ------: | ------: | -------: |
| tiny code (11) | 1,080,269 | 6,259,030 | 104,059 | 120,674 | 284 |
| everything (8532) | 1,128 | 6,247 | 0 | 263 | 42 |
| tiny code (11) | 1,257,527 | 7,185,642 | 129,467 | 156,184 | 333 |
| everything (8532) | 1,366 | 8,008 | 0 | 346 | 64 |

### Parsing and generating code

Operations per second for parsing and generating each sample code:

| code sample (length) | acorn + astring | meriyah + astring | buble | sucrase |
| :------------------- | --------------: | ----------------: | -----: | ------: |
| tiny code (11) | 71,504 | 555,398 | 19,970 | 446,721 |
| everything (8532) | 425 | 0 | 86 | 1,037 |
| tiny code (11) | 92,578 | 864,665 | 25,911 | 575,370 |
| everything (8532) | 706 | 1,425 | 132 | 1,403 |

## Examples

Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"glob": "^7.1.4",
"husky": "^2.7.0",
"lodash": "^4.17.14",
"meriyah": "^1.3.1",
"meriyah": "^1.3.4",
"normalize-newline": "^3.0.0",
"nyc": "^14.1.1",
"prettier": "^1.18.2",
Expand Down
1 change: 1 addition & 0 deletions src/tests/benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export default function benchmarkWithCode(code) {
const babelOptions = {}
const meriyahOptions = {
module: true,
specDeviation: true,
}
const prettierOptions = { parser: () => babelAst }
const sucraseOptions = { transforms: [] }
Expand Down

0 comments on commit 6e56162

Please sign in to comment.