Skip to content

Plugin idea: performance testing with k6 #103

Open
@DavidWells

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);
}

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