Skip to content

Instantly share code, notes, and snippets.

View rcmilan's full-sized avatar
🎯
Focusing

Ricardo rcmilan

🎯
Focusing
  • São Bernardo do Campo
  • 04:10 (UTC -03:00)
View GitHub Profile
@rcmilan
rcmilan / loadtest.js
Created September 6, 2023 18:31
Load Test JS
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 {
@rcmilan
rcmilan / pokemon.fsx
Last active May 28, 2022 12:43
Script em F# para consultar a pokeapi
#r "nuget: FSharp.Json"
module PokeApiModule =
open System.Net.Http
module private HttpClientModule =
let GetAsync (client:HttpClient) (endpoint:string) =
async {