- 100rps
- 1 minute tests
Route | Requests Per Second | Latency |
---|---|---|
GET /api/about/:id |
100 | 73ms |
const { sleep } = require('k6'); | |
const http = require('k6/http'); | |
// const baseURL = process.env.BASE_URL || 'http://localhost:3002/'; | |
const baseURL = 'http://localhost:3000/'; | |
export const options = { | |
vus: 1000, | |
duration: '60s', | |
thresholds: { |
/* Stress Test GET route */ | |
const { check, sleep } = require('k6'); | |
const http = require('k6/http'); | |
// const baseURL = process.env.BASE_URL || 'http://localhost:3002/'; | |
const baseURL = 'http://localhost:3002/'; | |
export const options = { | |
vus: 1000, | |
duration: '60s', |
`select * from description where course_id=9999999` | |
{ | |
"course_id": 9999999, | |
"recent_views": 15843326, | |
"description": "Qui saepe occursantur fugiamus venio ipsa recognoscimus ob nosse per ita. Cor amorem evellere dicatur flenda.", | |
"learner_career_outcomes": [ | |
[ | |
{ | |
"icon": "careerDirectionSVG", |
type SearchResultsEpisode struct { | |
MediaContainer struct { | |
Metadata []struct { | |
Director []struct { | |
Filter string `json:"filter"` | |
ID int64 `json:"id"` | |
Tag string `json:"tag"` | |
} `json:"Director"` | |
Media []struct { | |
Part []struct { |