Skip to content

Commit

Permalink
Create loadTest.js
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Dec 4, 2024
1 parent 8d94984 commit 6cdb5e8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/tests/performanceTests/loadTest.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// tests/performanceTests/loadTest.js

import http from 'k6/http';
import { sleep } from 'k6';

export default function () {
http.get('http://localhost:3000/api/users');
sleep(1);
}

0 comments on commit 6cdb5e8

Please sign in to comment.