K6 is an open-source load testing tool, it is flexible to set testing situation so that the test is closer to real situation, and it provides customize metric for developer. Test life cycle init: Declare global variable and import file or module. setup: Set up test environment and generate shared data, run before…