unjs / webpackbar

Elegant ProgressBar and Profiler for Webpack 3 , 4 and 5
MIT License
2.07k stars 66 forks source link

feat: replace text-table with markdown-table #79

Closed ambar closed 3 years ago

ambar commented 3 years ago

Markdown's more compact, has rules, and can be used in GitHub/GitLab comments.

Size

Before

Profile results for Server

> Stats by Ext

Ext    Requests  Time   Time/Request  Description

js     5582      6s     989μs         JavaScript files

css    2063      2s     960μs         css files

svg    323       499ms  2ms           svg files

png    622       451ms  725μs         png files

gif    14        6ms    413μs         gif files

jpg    35        5ms    139μs         jpg files

md     1         1ms    1ms           md files

Total  8640      8s

...

After

Profile results for Server

> Stats by Ext

| Ext   | Requests | Time  | Time/Request | Description      |
| ----- | -------- | ----- | ------------ | ---------------- |
| js    | 5393     | 5s    | 990μs        | JavaScript files |
| css   | 2313     | 2s    | 1ms          | css files        |
| svg   | 316      | 499ms | 2ms          | svg files        |
| md    | 1        | 673μs | 673μs        | md files         |
| png   | 581      | 493ms | 848μs        | png files        |
| jpg   | 36       | 17ms  | 477μs        | jpg files        |
| gif   | 9        | 8ms   | 834μs        | gif files        |
| Total | 8649     | 9s    |              |                  |

...

renders to comment:

Stats by Ext

Ext Requests Time Time/Request Description
js 5393 5s 990μs JavaScript files
css 2313 2s 1ms css files
svg 316 499ms 2ms svg files
md 1 673μs 673μs md files
png 581 493ms 848μs png files
jpg 36 17ms 477μs jpg files
gif 9 8ms 834μs gif files
Total 8649 9s
pi0 commented 3 years ago

Thanks!