After creating a local environment, you can enable scheduled performance testing in GitHub.

data-variant=info
data-slots=text
To add variables, you must have administrative permissions in the target GitHub repository.
  1. In your browser, navigate to https://github.com/<org>/<project_name>/settings/variables/actions.

  2. On the Variables tab, click New repository variable.

  3. Enter a name for the variable, such as DURATION.

  4. Enter the corresponding value for the variable, for example, 600.

  5. Repeat this process for all the following variables:

    • VUS - The number of virtual users for the test scenario.
    • DURATION - The number of seconds to run the test scenario.
    • UPLOAD_REPORT - Boolean to control uploading the report to your GitHub repository.
    • MESH_ENDPOINT - The URL of your edge mesh.
  6. You can run the action manually from the Actions tab in your GitHub repository, or you can use a schedule event.

Local performance testing

You can create a performance testing report locally, by running the following command:

K6_WEB_DASHBOARD=true K6_WEB_DASHBOARD_EXPORT=<FILENAME>.html yarn test:perf