This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#r "nuget: FSharp.Json" | |
module PokeApiModule = | |
open System.Net.Http | |
module private HttpClientModule = | |
let GetAsync (client:HttpClient) (endpoint:string) = | |
async { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const axios = require('axios'); // npm install axios | |
// Configure your test parameters | |
const endpoint = ''; // Replace with your API endpoint | |
const numRequests = 1000; // Number of requests to send | |
const concurrency = 10; // Number of concurrent requests | |
// Function to send a single HTTP request | |
async function sendRequest() { | |
try { |