Skip to content

Instantly share code, notes, and snippets.

View CodeWritingCow's full-sized avatar

Gary Pang CodeWritingCow

View GitHub Profile
@CodeWritingCow
CodeWritingCow / gist:2af90373477d7cf95281391528afdcaf
Last active June 17, 2019 07:18
Artillery results for nycfoodsafety.org on local server
Test phases:
Phase 0: 1 user per second for 60 seconds
Phase 1: 10 users per second for 60 seconds
Phase 2: 100 users per second for 60 seconds
Phase 3: 1,000 users per second for 60 seconds
=================================================
PRE-OPTIMIZATION
@CodeWritingCow
CodeWritingCow / gist:8724593f130f43931865104d639ec42e
Last active March 13, 2019 20:25
Loader.io stress test for deployed proxy
http://bit.ly/2TzcPpD (10,000 clients over 1 minute)
http://bit.ly/2TyqJbu (1,000 clients over 1 minute)
http://bit.ly/2u5i55a (100 clients over 1 minute)
See screenshots in comments section below.
10,000 clients over 1 min
@CodeWritingCow
CodeWritingCow / gist:ed2fe55a7ea98dbc52c943a8bc6b305a
Last active March 13, 2019 18:15
Loader.io stress test for deployed service
http://bit.ly/2TvIXdP (10,000 clients over 1 minute)
http://bit.ly/2VW6wJC (1,000 clients over 1 minute)
http://bit.ly/2UAZAkM (100 clients over 1 minute)
See screenshots in comments section below.
10000 clients over 1 min
@CodeWritingCow
CodeWritingCow / gist:e2348097123d0c799f9423f9220b55d2
Last active March 11, 2019 20:00
Artillery results for proxy server
All virtual users finished
Summary report @ 15:31:05(-0400) 2019-03-11
Scenarios launched: 66660
Scenarios completed: 66610
Requests completed: 66610
RPS sent: 182.59
Request latency:
min: 1.2
max: 16023
median: 6.3
@CodeWritingCow
CodeWritingCow / gist:fa91160ce2067397c6abc1f8bc651cc1
Last active March 11, 2019 19:55
Artillery results for service
All virtual users finished
Summary report @ 15:09:28(-0400) 2019-03-11
Scenarios launched: 66660
Scenarios completed: 66660
Requests completed: 66660
RPS sent: 177.81
Request latency:
min: 2.2
max: 1389.8
median: 9.5
@CodeWritingCow
CodeWritingCow / gist:db22d6c49354f9e3f6edc455e3d39bb4
Last active March 5, 2019 03:56
Core DB Queries + Sample Responses(PostGres)
Secondary DBMS
Sample queries and responses
Query made from pgAdmin 4
Time: 12s940ms
@CodeWritingCow
CodeWritingCow / gist:6686e5746d82d09f348e5f87b936a69c
Created March 5, 2019 03:28
Time to populate with 10M records (PostgresSQL)
Four worker processes each generated 2.5 million records, for a total of 10M records.
Total time: about 21.27 minutes.
@CodeWritingCow
CodeWritingCow / gist:028d95059c99d3737c24883b404b5311
Last active March 5, 2019 04:58
Core DB Queries + Sample Responses(MongoDB)
Primary DBMS
Sample queries and responses
Query made from Robo 3T
Time: 13.7s
@CodeWritingCow
CodeWritingCow / gist:19ae1ebffe0edeb4d621c175df8bbfea
Last active March 2, 2019 14:35
Time to populate with 10M records (MongoDB)
Four worker processes each generated 2.5 million records, for a total of 10M records.
Total time: about 282.628 seconds.
Node.js cluster created the workers.
Statistics for each worker process:
{ ok: 1, n: 2500000 }
Database seeding took 249486.366233ms
{ rss: 259940352,
@CodeWritingCow
CodeWritingCow / gist:a6aead8a17fabccce3c650b66f49e92b
Created February 23, 2019 05:45
Screenshots of Motunui proxy in mobile layout
Screenshots of Motunui proxy in mobile layout