Skip to content

Commit 8b4df05

Browse files
docs: add example traces
1 parent f99537b commit 8b4df05

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

README.md

+21
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,27 @@ See [typescript-eslint/typescript-eslint#9571 Performance: parserOptions.project
5858
- Example measurements taken on an M1 Max Mac Studio with Node.js 22.4.1
5959
- These results are similar across TypeScript versions: 5.0.4, 5.4.5, and 5.5.3
6060

61+
### Tracing Measurements
62+
63+
See example `traces/Project 1 - Service 2.cpuprofile`.
64+
It was generated with:
65+
66+
```shell
67+
cd cases/files-1024-layout-even-singlerun-true-types-project
68+
node --inspect-brk ../../node_modules/eslint/bin/eslint.js
69+
cd ../files-1024-layout-even-singlerun-true-types-service
70+
node --inspect-brk ../../node_modules/eslint/bin/eslint.js
71+
```
72+
73+
Comparing equivalent code paths:
74+
75+
| Code Path | Project | Service |
76+
| ----------------- | ------- | ------- |
77+
| All `verifyText`s | 2040ms | 2859ms |
78+
| `parseForESLint` | 993ms | 1090ms |
79+
80+
You might consider using [0x](https://github.com/davidmarkclements/0x) for nice flamegraph visuals.
81+
6182
## Contributors
6283

6384
<!-- spellchecker: disable -->

traces/Project 1 - Service 2.cpuprofile

+1
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)