Commit 6567ed4
authored
perf(cli): enable Node.js compile cache (#192)
Before
```bash
hyperfine --warmup 3 'node /Users/fengmk2/git/github.com/voidzero-dev/vite-plus/packages/global/bin/vp lint'
Benchmark 1: node /Users/fengmk2/git/github.com/voidzero-dev/vite-plus/packages/global/bin/vp lint
Time (mean ± σ): 129.9 ms ± 1.6 ms [User: 121.1 ms, System: 156.8 ms]
Range (min … max): 128.1 ms … 133.8 ms 22 runs
```
After
```bash
hyperfine --warmup 3 'node /Users/fengmk2/git/github.com/voidzero-dev/vite-plus/packages/global/bin/vp lint'
Benchmark 1: node /Users/fengmk2/git/github.com/voidzero-dev/vite-plus/packages/global/bin/vp lint
Time (mean ± σ): 101.9 ms ± 2.0 ms [User: 92.5 ms, System: 157.0 ms]
Range (min … max): 99.6 ms … 110.1 ms 28 runs
```1 parent 08cdc56 commit 6567ed4
2 files changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
3 | 7 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
2 | 7 | | |
0 commit comments