Skip to content

Instantly share code, notes, and snippets.

View harikrishnaapc's full-sized avatar
🦇
Something in the way

Harikrishnaa harikrishnaapc

🦇
Something in the way
View GitHub Profile
@harikrishnaapc
harikrishnaapc / parallel_curl.sh
Created March 26, 2024 06:13
Simple program that uses GNU Parallel to make parllel curl requests
#!/bin/bash
# $1 -> input file: each line is a prompt to model.
# $2 -> no. of threads to use
# usage: time ./script.sh data/test_data.ldjson 128 > result.ldjson
# File containing payloads
FILE=$1 #"data/test_data.ldjson"
# Number of parallel requests