Skip to content

Instantly share code, notes, and snippets.

@jrudio
jrudio / search_results.go
Created May 1, 2018 02:23
Result of using `gojson` on the json response of the plex endpoint `/library/metadata/xxx`
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 {
@jrudio
jrudio / postgres_core_db_and_sample.json
Last active May 23, 2021 21:07
PostgreSQL core query
`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",
/* 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',
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: {

Configuration

  • 100rps
  • 1 minute tests

Proxy

Route Requests Per Second Latency
GET /api/about/:id 100 73ms