♻️Made performance test runnable

This commit is contained in:
Anton SHEPILOV
2025-02-03 17:12:29 +01:00
committed by Anton Shepilov
parent 6002974306
commit 47106a8459
3 changed files with 37 additions and 2 deletions
@@ -0,0 +1,15 @@
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);
}