Files
workavia-drive/tdrive/backend/node/test/performance/files/example.js
T
2025-02-11 17:20:42 +01:00

15 lines
464 B
JavaScript

import http from 'k6/http';
import { sleep } from 'k6';
export const options = {
iterations: 10,
};
// The default exported function is gonna be picked up by k6 as the entry point for the test script. It will be executed repeatedly in "iterations" for the whole duration of the test.
export default function () {
// Make a GET request to the target URL
http.get('https://test-api.k6.io');
// Sleep for 1 second to simulate real-world usage
sleep(1);
}