神刀安全网

speedline – Calculate the speed index and visual performance metrics from chrome dev tool t…

speedline speedline - Calculate the speed index and visual performance metrics from chrome dev tool t...

speedline - Calculate the speed index and visual performance metrics from chrome dev tool t...

The Navigation Timing API provides useful data that can be used to measure the performance of a website. Unfortunately this API has never been good at capturing the actual user experience .

The Speed Index , introduced by WebpageTest.org , aims to solve this issue. It measures how fast the page content is visually displayed.

Install

Before using speedline , please install ImageMagick and ensure that your version of node is greater than 4.0.

$ npm install -g speedline

CLI

Note:You should enable the screenshot options before recording the timeline.

$ speedline --help    Usage     $ speedline <timeline> [options]    Options     -p, --pretty  Pretty print the output    Examples     $ speedline ./timeline.json

By default the CLI will output the same output asvisual metrics. You can use the --pretty option if you want to have the histogram.

License

MIT ©Pierre-Marie Dartus

转载本站任何文章请注明:转载至神刀安全网,谢谢神刀安全网 » speedline – Calculate the speed index and visual performance metrics from chrome dev tool t…

分享到:更多 ()

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
分享按钮