Skip to content

Instantly share code, notes, and snippets.

View wei-lee's full-sized avatar

Wei Li wei-lee

  • Intercom
  • Dublin, Ireland
View GitHub Profile
function uuid() {
//from http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript
//based on RFC 4122, section 4.4 (Algorithms for creating UUID from truely random pr pseudo-random number)
var s = [];
var hexDigitals = "0123456789ABCDEF";
for (var i = 0; i < 32; i++) {
s[i] = hexDigitals.substr(Math.floor(Math.random() * 0x10), 1);
}
s[12] = "4";
s[16] = hexDigitals.substr((s[16] & 0x3) | 0x8, 1);
@wei-lee
wei-lee / buildconfig.json
Created May 18, 2017 17:04
BuildConfig for Android apps on openshift
{
"kind": "BuildConfig",
"apiVersion": "v1",
"metadata": {
"name": "sample-android"
},
"spec": {
"source": {
"git": {
"uri": "https://github.com/maleck13/blank-android-gradle.git"
@wei-lee
wei-lee / run5_result.json
Created April 13, 2017 10:55
new sync load test 2 workers
{
"invocation": "load-runner -c 500 -n 1000 -r 60 -s ./scripts/sync_create_and_update_data.js -p new_sync_500_60_1000 -o -- https://testing-5buuz6my4q3kqzepgewpaoem-multi-cpu.mbaas2.zeta.feedhenry.com 50k {runNum} 10000",
"concurrency": 500,
"numUsers": 1000,
"rampUp": 60,
"script": "./scripts/sync_create_and_update_data.js",
"pattern": [],
"profile": "new_sync_500_60_1000",
"startTime": 1492080473245,
"endTime": 1492080696031,
@wei-lee
wei-lee / run4_result.json
Created April 13, 2017 10:45
new sync load test 2 workers
{
"invocation": "load-runner -c 500 -n 1000 -r 60 -s ./scripts/sync_create_and_update_data.js -p new_sync_500_60_1000 -o -- https://testing-5buuz6my4q3kqzepgewpaoem-multi-cpu.mbaas2.zeta.feedhenry.com 50k {runNum} 10000",
"concurrency": 500,
"numUsers": 1000,
"rampUp": 60,
"script": "./scripts/sync_create_and_update_data.js",
"pattern": [],
"profile": "new_sync_500_60_1000",
"startTime": 1492079978176,
"endTime": 1492080144311,
@wei-lee
wei-lee / run3_result.json
Created April 13, 2017 10:28
new sync load test 2 workers
{
"invocation": "load-runner -c 500 -n 1000 -r 60 -s ./scripts/sync_create_and_update_data.js -p new_sync_500_60_1000 -o -- https://testing-5buuz6my4q3kqzepgewpaoem-multi-cpu.mbaas2.zeta.feedhenry.com 50k {runNum} 10000",
"concurrency": 500,
"numUsers": 1000,
"rampUp": 60,
"script": "./scripts/sync_create_and_update_data.js",
"pattern": [],
"profile": "new_sync_500_60_1000",
"startTime": 1492078882029,
"endTime": 1492079045142,
@wei-lee
wei-lee / run2_result.json
Created April 13, 2017 10:19
new sync load test 2 workers
{
"invocation": "load-runner -c 500 -n 1000 -r 60 -s ./scripts/sync_create_and_update_data.js -p new_sync_500_60_1000 -o -- https://testing-5buuz6my4q3kqzepgewpaoem-multi-cpu.mbaas2.zeta.feedhenry.com 50k {runNum} 10000",
"concurrency": 500,
"numUsers": 1000,
"rampUp": 60,
"script": "./scripts/sync_create_and_update_data.js",
"pattern": [],
"profile": "new_sync_500_60_1000",
"startTime": 1492077774316,
"endTime": 1492077936774,
@wei-lee
wei-lee / run1_result.json
Created April 13, 2017 10:01
new sync load test 2 workers
{
"invocation": "load-runner -c 500 -n 1000 -r 60 -s ./scripts/sync_create_and_update_data.js -p new_sync_500_60_1000 -o -- https://testing-5buuz6my4q3kqzepgewpaoem-multi-cpu.mbaas2.zeta.feedhenry.com 50k {runNum} 10000",
"concurrency": 500,
"numUsers": 1000,
"rampUp": 60,
"script": "./scripts/sync_create_and_update_data.js",
"pattern": [],
"profile": "new_sync_500_60_1000",
"startTime": 1492077257405,
"endTime": 1492077505539,
@wei-lee
wei-lee / new_run5_result.json
Created April 12, 2017 17:00
new sync server load test
{
"invocation": "load-runner -c 500 -n 1000 -r 60 -s ./scripts/sync_create_and_update_data.js -p new_sync_500_60_1000 -o -- https://testing-5buuz6my4q3kqzepgewpaoem-qed1-mbaas2-env.mbaas2.zeta.feedhenry.com 50k {runNum} 10000",
"concurrency": 500,
"numUsers": 1000,
"rampUp": 60,
"script": "./scripts/sync_create_and_update_data.js",
"pattern": [],
"profile": "new_sync_500_60_1000",
"startTime": 1492015987590,
"endTime": 1492016251209,
@wei-lee
wei-lee / new_run4_result.json
Created April 12, 2017 16:48
new sync server load test
{
"invocation": "load-runner -c 500 -n 1000 -r 60 -s ./scripts/sync_create_and_update_data.js -p new_sync_500_60_1000 -o -- https://testing-5buuz6my4q3kqzepgewpaoem-qed1-mbaas2-env.mbaas2.zeta.feedhenry.com 50k {runNum} 10000",
"concurrency": 500,
"numUsers": 1000,
"rampUp": 60,
"script": "./scripts/sync_create_and_update_data.js",
"pattern": [],
"profile": "new_sync_500_60_1000",
"startTime": 1492015259161,
"endTime": 1492015519885,
@wei-lee
wei-lee / new_run3_result.json
Created April 12, 2017 16:39
new sync load test
{
"invocation": "load-runner -c 500 -n 1000 -r 60 -s ./scripts/sync_create_and_update_data.js -p new_sync_500_60_1000 -o -- https://testing-5buuz6my4q3kqzepgewpaoem-qed1-mbaas2-env.mbaas2.zeta.feedhenry.com 50k {runNum} 10000",
"concurrency": 500,
"numUsers": 1000,
"rampUp": 60,
"script": "./scripts/sync_create_and_update_data.js",
"pattern": [],
"profile": "new_sync_500_60_1000",
"startTime": 1492014488931,
"endTime": 1492014976447,