Skip to content

Commit 83a7f3b

Browse files
authored
Merge pull request #101 from line/docs/update-benchmark
docs: update benchmark
2 parents cfb1d72 + ce83ae7 commit 83a7f3b

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -218,13 +218,13 @@ tsr's behavior is clear by design. TypeScript is used to detect modules in your
218218

219219
tsr is designed to be minimal and serve a single purpose. The install size is substantially smaller. Also, tsr is runtime dependent, not relying on `@types/node`.
220220

221-
| tsr | Knip |
222-
| ----- | ------ |
221+
| tsr | Knip |
222+
| ---- | ------ |
223223
| 98kB | 5.86MB |
224224

225225
#### Better Performance
226226

227-
Our benchmark shows that tsr is 2.5x faster compared to Knip 🚀 (see `benchmark/vue_core.sh` for details)
227+
Our benchmark shows that tsr is 2.14x faster compared to Knip 🚀 (see `benchmark/vue_core.sh` for details)
228228

229229
<img width="400" src="./media/comparison.png" alt="benchmark of tsr and Knip" />
230230

@@ -234,14 +234,14 @@ tsr provides `---recursive` option which will edit your files until there are no
234234

235235
#### Key Differences
236236

237-
| Feature | tsr | Knip |
238-
| ------------------------ | ------------------------------ | ------------------------------------------ |
239-
| **Automatic Editing** | ✅ Comprehensive | Limited |
240-
| **Zero Configuration** | ✅ Works with `tsconfig.json` | Requires a config file for correct results |
241-
| **Predictable Behavior** | ✅ TypeScript-based logic | Assumptions for project structure |
237+
| Feature | tsr | Knip |
238+
| ------------------------ | ----------------------------- | ------------------------------------------ |
239+
| **Automatic Editing** | ✅ Comprehensive | Limited |
240+
| **Zero Configuration** | ✅ Works with `tsconfig.json` | Requires a config file for correct results |
241+
| **Predictable Behavior** | ✅ TypeScript-based logic | Assumptions for project structure |
242242
| **Install Size** | ✅ 98kB, minimal dependencies | 5.86MB, requires `@types/node` |
243-
| **Performance** | ✅ 2.5x faster | |
244-
| **Recursive Editing** |`--recursive` option | |
243+
| **Performance** | ✅ 2.14x faster | |
244+
| **Recursive Editing** |`--recursive` option | |
245245

246246
## Examples
247247

media/comparison.png

80 Bytes
Loading

0 commit comments

Comments
 (0)