♻️Made performance test runnable
This commit is contained in:
committed by
Anton Shepilov
parent
6002974306
commit
47106a8459
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user