Skip to content

Instantly share code, notes, and snippets.

@ShinJustinHolly3317
Created June 6, 2024 14:33
Show Gist options
  • Save ShinJustinHolly3317/b9753767d4bfbef48cc96ce99bdc9d1b to your computer and use it in GitHub Desktop.
Save ShinJustinHolly3317/b9753767d4bfbef48cc96ce99bdc9d1b to your computer and use it in GitHub Desktop.
const { parentPort } = require('worker_threads');
async function createReq() {
const body = {
userId: 'test'
}
const res = await fetch("https://test/track", {
"body": JSON.stringify(body),
"method": "POST"
});
console.log(await res.json());
}
for (let i = 0; i < 100; i++) {
createReq();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment