Member-only story
Create A K6 Performance Load Test for Websites
It is better to set up a dummy or sandbox environment for your testing, just incase you actually do crash your live website. for our example we will be using YouTube’s homepage because I know they can handle for the small traffic that we will throw their way.
If you are new to K6 you may want to check out this article first explaining everthing about it.
Install
First, you must install K6, this is pretty straightforward via the command line. Follow the official documentation here
Once started, lets launch it!
Open up your command line and then navigate to what ever folder has the K6 program, usually program files, type in the following:
“K6 version”-and then press enter
“K6 help”-and then press enter
Your screen should look like this