Skip to content

Use Browserstack Hub for measuring Critical Rendering Path on your site using real devices

License

Notifications You must be signed in to change notification settings

olpeh/browserstack-measure-crp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

browserstack-measure-crp

Use Browserstack Hub to measure Critical Rendering Path on your site using real devices and send the performance results to InfluxDB

Usage

  • Make sure you have a Browserstack account available
  • Create a InfluxDb instance @TODO: instructions?
  • Install dependencies: yarn
  • Create .env with required parameters. See .env.sample
  • Run: npm start
  • Visualize results using Graphana or similar
  • ???
  • Profit

Parameters

By default this script will test all TEST_ENDPOINTS in all TEST_ENVS defined in .env file. The tests are run 3 times by default unless a integer is passed as a parameter to npm start. The endpoint URLs are opened by default 6 times in order to test the first view with cold caches and 5 times the loading performance with caches warmed.

Example: npm start 1 3 will run tests only once and open the endpoints 3 times.

About

Use Browserstack Hub for measuring Critical Rendering Path on your site using real devices

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published