Skip to content

Instantly share code, notes, and snippets.

View samib6's full-sized avatar
🎯
Focusing

Sameeksha Bhatia samib6

🎯
Focusing
View GitHub Profile
@samib6
samib6 / load_test_sample_script_k6.js
Created May 2, 2025 10:33
This executes the API requests from the collection and provides important metrics, such as total run time, average request time, and other performance stats.
import http from 'k6/http';
import { check, sleep } from 'k6';
import { SharedArray } from 'k6/data';
import papaparse from 'https://jslib.k6.io/papaparse/5.1.1/index.js'; // Import papaparse library for CSV parsing
import URI from "./libs/urijs.js"; // Import URI handling as needed
// Load the CSV data containing from and to values
const csvData = new SharedArray('CSV data', function () {
return papaparse.parse(open('sunbird_usecase_101.csv'), { header: true }).data;
});
// Define load testing stages
@samib6
samib6 / port_forward.sh
Created July 11, 2024 14:34
using -J option and -L
ssh -J jump_user@jump_ip -L 8080:remote_ip:80 remote_user@remote_ip