Skip to content

Commit

Permalink
feat(benchmark): improve benchmarks
Browse files Browse the repository at this point in the history
- Document the port to view deopt info on.
- Return parse tree, so I can conveniently `console.log()` it if
  desired.
  • Loading branch information
wincent committed Aug 6, 2023
1 parent b851fdd commit d6e0a68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/benchmark/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,5 @@ yarn
(cd packages/v8-deopt-webapp && yarn build)
node_modules/.bin/v8-deopt-viewer -i $path_to_v8_log
(cd v8-deopt-viewer && python3 -m http.server)
open http://localhost:8000
```
2 changes: 1 addition & 1 deletion packages/benchmark/src/benchmark-table-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const readFile = promisify(fs.readFile);

function parse(source: string) {
const tokens = [...lex(source)];
parseWithTable(table, tokens, grammar, makeNode);
return parseWithTable(table, tokens, grammar, makeNode);
}

async function read(file: string): Promise<string> {
Expand Down

0 comments on commit d6e0a68

Please sign in to comment.