Skip to content

Instantly share code, notes, and snippets.

View Evillivekai's full-sized avatar
😵
CSS Q#%#R@a@#W>#$<!

Evillivekai Evillivekai

😵
CSS Q#%#R@a@#W>#$<!
View GitHub Profile
import http from 'k6/http';
import { check, sleep } from 'k6';
export const options = {
vus: 10,
duration: '240s',
rps: 1000,
throw: true,
};
======K6 stript.js======
import { check } from 'k6';
import http from 'k6/http';
// create const options
export const options = {
stages: [
{ duration: "30s", rps: 1 },
{ duration: "30s", rps: 10 },
{ duration: "30s", rps: 100 },
//server index
const express = require('express');
let app = express();
const port = 4540;
const db = require('../db');
app.use(express.urlencoded({ extended: true }));
app.use(express.json());
app.use(express.static('./dist'));

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database