Skip to content

Instantly share code, notes, and snippets.

@justinph
Created February 3, 2017 19:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinph/36348b413614b80e31521d4ede89c61f to your computer and use it in GitHub Desktop.
Save justinph/36348b413614b80e31521d4ede89c61f to your computer and use it in GitHub Desktop.
Webpage performance testing with nightmare.js Raw
#!/bin/bash
for run in {1..40}
do
baseline=$(node nightmare.js 'http://www.nytimes.com/2016/test-page-1.html')
secondary=$(node nightmare.js 'http://www.nytimes.com/2016/test-page-2.html')
echo $baseline, $secondary
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment