Skip to content

Instantly share code, notes, and snippets.

@lcchou2
lcchou2 / Improvedproxy.md
Last active March 15, 2019 23:53
Improved metrics of EC2 stress tests

IMPROVED RPS for EC2 Proxy

Loader

Settings
GET Restaurants
@lcchou2
lcchou2 / ec2proxy.md
Last active March 14, 2019 02:57
RPS for proxy on EC2 instance

RPS for EC2 Proxy

Loader

Settings
GET Restaurants
@lcchou2
lcchou2 / proxyartillery.md
Created March 9, 2019 22:57
Proxy artillery results

Proxy Artillery stress test results

yaml file

config:
  target: 'http://localhost:8008'
  phases:
    - duration: 60
 arrivalRate: 1000
@lcchou2
lcchou2 / artillery.md
Created March 9, 2019 04:08
Artillery Gist

Artillery Gist

yml file
config:
  target: 'http://localhost:3000'
  phases:
    - duration: 60
@lcchou2
lcchou2 / dbsample.md
Last active March 4, 2019 23:44
One or more core db queries and sample results

Test Queries

1. Selecting a specific listing

Postgresql (primary)

SELECT id,res_name,chef from listings where id=10000000

id----------| res_name----- | chef

10000000 | Elmo Gislason | Johnathon Abshire

function extend(a, b){
for(var key in b)
if(b.hasOwnProperty(key))
a[key] = b[key];
return a;
}
var Dog = function(name,breed,age,happiness,hunger,energy) {
var obj = {}
obj.name = name