Skip to content

Plugin idea: performance testing with k6 #103

Description

@DavidWells

Performance testing plugin using k6 https://github.com/loadimpact/k6

See https://k6.io/ for how it works

import http from 'k6/http';
import {check, sleep} from 'k6';

export default function() {
  const data = {username: 'username', password: 'password'};
  let res = http.post('https://netlifysite.com.com/.functions/foo', data);
    check(res, { 'success login': (r) => r.status === 200 });
    sleep(0.3);
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions