Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin idea: performance testing with k6 #103

Open
DavidWells opened this issue Jun 23, 2020 · 0 comments
Open

Plugin idea: performance testing with k6 #103

DavidWells opened this issue Jun 23, 2020 · 0 comments
Labels
feat/build-plugins feat/plugin-idea type: feature code contributing to the implementation of a feature and/or user facing functionality

Comments

@DavidWells
Copy link
Contributor

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);
}
@ehmicky ehmicky transferred this issue from netlify/build Jun 23, 2020
@ehmicky ehmicky added feat/build-plugins feat/plugin-idea type: feature code contributing to the implementation of a feature and/or user facing functionality labels Jun 23, 2020
@ehmicky ehmicky changed the title Plugin idea: Performance testing plugin for site/functions Plugin idea: performance testing with k6 Jun 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat/build-plugins feat/plugin-idea type: feature code contributing to the implementation of a feature and/or user facing functionality
Projects
None yet
Development

No branches or pull requests

2 participants