Advertisement
wzul

Grafana k6 Load Test Script

Apr 2nd, 2023
574
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import { check } from 'k6';
  2. import http from 'k6/http';
  3.  
  4. export let options = {
  5.   vus: 50,
  6.   duration: '3s'
  7. };
  8.  
  9. export default function () {
  10.   let res = http.get('https://www.wanzul.net');
  11.   check(res, {
  12.     'is status 200': (r) => r.status === 200
  13.   });
  14.  
  15.   let res2 = http.get('https://www.wanzul.net/2022/10/10/adding-imagick-to-php-7-4-and-8-1-on-macos-12-6/');
  16.   check(res2, {
  17.     'is status 200': (r) => r.status === 200
  18.   });
  19. }
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement