Switch branches/tags
Nothing to show
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
1 Emulate slow network and throttle CPU example Feb 4, 2018
2 initial commit Feb 4, 2018
3 initial commit Feb 4, 2018
4 Emulate slow network and throttle CPU example Feb 4, 2018
5 remove emulation enable Feb 4, 2018
6 unregister sw Feb 4, 2018
results remove emulation enable Feb 4, 2018
.gitignore add tests for final results Feb 4, 2018
LICENSE Initial commit Feb 4, 2018
README.md Create README.md Feb 4, 2018
package-lock.json chore: uptdate puppeteer version Jul 28, 2018
package.json chore: uptdate puppeteer version Jul 28, 2018

README.md

test-website-performance-with-puppeteer

Code used in article https://michaljanaszek.com/blog/test-website-performance-with-puppeteer

Build Setup

Build vue hn applictaion

Clone https://github.com/Everettss/vue-hackernews-2.0 and inside that project run:

# install dependencies
npm install

# build for production
npm run build

# serve in production mode at `localhost:8080`
npm start

This fork of vue-hackernews-2.0 enables ServiceWorker on localhost and adds console.timeStamp in src/views/ItemList.vue

Run tests

# install dependencies
npm install

If you have running vue-hackernews-2.0 on localhost:8080 run test (for example):

# run Navigation Timing API test
# https://michaljanaszek.com/blog/test-website-performance-with-puppeteer#navigationTimingAPI
node 1/index.js