Skip to content

Instantly share code, notes, and snippets.

@phanngoc
Last active August 27, 2018 11:04
Show Gist options
  • Save phanngoc/111bd9380a1e83d0d39ad359a3ab187a to your computer and use it in GitHub Desktop.
Save phanngoc/111bd9380a1e83d0d39ad359a3ab187a to your computer and use it in GitHub Desktop.
32 user concurrent
Process Id, time start send message, time reply of bot
1,2018:08:27:10:33:41,2018:08:27:10:33:45
0,2018:08:27:10:33:42,2018:08:27:10:33:47
4,2018:08:27:10:33:43,2018:08:27:10:33:50
6,2018:08:27:10:33:47,2018:08:27:10:33:59
2,2018:08:27:10:33:48,2018:08:27:10:33:59
3,2018:08:27:10:33:48,2018:08:27:10:34:00
7,2018:08:27:10:33:48,2018:08:27:10:34:00
5,2018:08:27:10:33:50,2018:08:27:10:34:01
1,2018:08:27:10:33:42,2018:08:27:10:33:49
0,2018:08:27:10:33:44,2018:08:27:10:33:56
5,2018:08:27:10:33:44,2018:08:27:10:33:57
3,2018:08:27:10:33:45,2018:08:27:10:33:58
4,2018:08:27:10:33:45,2018:08:27:10:33:58
7,2018:08:27:10:33:47,2018:08:27:10:34:00
6,2018:08:27:10:33:48,2018:08:27:10:34:01
6,2018:08:27:10:33:36,2018:08:27:10:33:40
5,2018:08:27:10:33:34,2018:08:27:10:33:40
5,2018:08:27:10:33:34,2018:08:27:10:33:40
4,2018:08:27:10:33:35,2018:08:27:10:33:40
7,2018:08:27:10:33:35,2018:08:27:10:33:40
1,2018:08:27:10:33:42,2018:08:27:10:33:52
3,2018:08:27:10:33:53,2018:08:27:10:34:00
8,2018:08:27:10:34:04,2018:08:27:10:34:08
0,2018:08:27:10:34:08,2018:08:27:10:34:11
1,2018:08:27:10:34:08,2018:08:27:10:34:11
3,2018:08:27:10:34:09,2018:08:27:10:34:12
4,2018:08:27:10:34:10,2018:08:27:10:34:12
9,2018:08:27:10:34:09,2018:08:27:10:34:12
2,2018:08:27:10:34:18,2018:08:27:10:34:19
@phanngoc
Copy link
Author

phanngoc commented Aug 27, 2018

Benmark time execute mysql
mỗi object tương ứng với 1 user (thread_id)

[
  {
    "_id": {
      "$oid": "5b837111628ff901d931741d"
    },
    "name": "test time addMessage",
    "time": "1.893s",
    "memory": "11.50Mb",
    "created_at": {
      "$date": {
        "$numberLong": "1535340817000"
      }
    },
    "thread_id": 1736,
    "updated_at": {
      "$date": {
        "$numberLong": "1535340817000"
      }
    }
  },
  {
    "_id": {
      "$oid": "5b837113628ff91a2912ff86"
    },
    "name": "test time addMessage",
    "time": "1.170s",
    "memory": "11.25Mb",
    "created_at": {
      "$date": {
        "$numberLong": "1535340819000"
      }
    },
    "thread_id": 1794,
    "updated_at": {
      "$date": {
        "$numberLong": "1535340819000"
      }
    }
  },
  {
    "_id": {
      "$oid": "5b837114628ff91b9c49f892"
    },
    "name": "test time addMessage",
    "time": "839ms",
    "memory": "11.25Mb",
    "created_at": {
      "$date": {
        "$numberLong": "1535340820000"
      }
    },
    "thread_id": 1792,
    "updated_at": {
      "$date": {
        "$numberLong": "1535340820000"
      }
    }
  },
  {
    "_id": {
      "$oid": "5b837114628ff91a23394514"
    },
    "name": "test time addMessage",
    "time": "828ms",
    "memory": "11.25Mb",
    "created_at": {
      "$date": {
        "$numberLong": "1535340820000"
      }
    },
    "thread_id": 1790,
    "updated_at": {
      "$date": {
        "$numberLong": "1535340820000"
      }
    }
  },
  {
    "_id": {
      "$oid": "5b837114628ff91a645279f4"
    },
    "name": "test time addMessage",
    "time": "839ms",
    "memory": "11.25Mb",
    "created_at": {
      "$date": {
        "$numberLong": "1535340820000"
      }
    },
    "thread_id": 1791,
    "updated_at": {
      "$date": {
        "$numberLong": "1535340820000"
      }
    }
  },
  {
    "_id": {
      "$oid": "5b837119628ff91a2212fd93"
    },
    "name": "test time addMessage",
    "time": "1.952s",
    "memory": "11.25Mb",
    "created_at": {
      "$date": {
        "$numberLong": "1535340825000"
      }
    },
    "thread_id": 1803,
    "updated_at": {
      "$date": {
        "$numberLong": "1535340825000"
      }
    }
  },
  {
    "_id": {
      "$oid": "5b83711b628ff91ad3501682"
    },
    "name": "test time addMessage",
    "time": "2.336s",
    "memory": "11.25Mb",
    "created_at": {
      "$date": {
        "$numberLong": "1535340827000"
      }
    },
    "thread_id": 1805,
    "updated_at": {
      "$date": {
        "$numberLong": "1535340827000"
      }
    }
  },
  {
    "_id": {
      "$oid": "5b83711e628ff901dc06145c"
    },
    "name": "test time addMessage",
    "time": "2.281s",
    "memory": "11.25Mb",
    "created_at": {
      "$date": {
        "$numberLong": "1535340830000"
      }
    },
    "thread_id": 1800,
    "updated_at": {
      "$date": {
        "$numberLong": "1535340830000"
      }
    }
  },
  {
    "_id": {
      "$oid": "5b83711f628ff91a1e353097"
    },
    "name": "test time addMessage",
    "time": "2.189s",
    "memory": "11.25Mb",
    "created_at": {
      "$date": {
        "$numberLong": "1535340831000"
      }
    },
    "thread_id": 1813,
    "updated_at": {
      "$date": {
        "$numberLong": "1535340831000"
      }
    }
  },
  {
    "_id": {
      "$oid": "5b837120628ff91bbe067072"
    },
    "name": "test time addMessage",
    "time": "2.409s",
    "memory": "11.25Mb",
    "created_at": {
      "$date": {
        "$numberLong": "1535340832000"
      }
    },
    "thread_id": 1810,
    "updated_at": {
      "$date": {
        "$numberLong": "1535340832000"
      }
    }
  },
  {
    "_id": {
      "$oid": "5b837125628ff91a2a094ac4"
    },
    "name": "test time addMessage",
    "time": "2.693s",
    "memory": "11.25Mb",
    "created_at": {
      "$date": {
        "$numberLong": "1535340837000"
      }
    },
    "thread_id": 1795,
    "updated_at": {
      "$date": {
        "$numberLong": "1535340837000"
      }
    }
  },
  {
    "_id": {
      "$oid": "5b837125628ff901db617307"
    },
    "name": "test time addMessage",
    "time": "2.567s",
    "memory": "11.25Mb",
    "created_at": {
      "$date": {
        "$numberLong": "1535340837000"
      }
    },
    "thread_id": 1796,
    "updated_at": {
      "$date": {
        "$numberLong": "1535340837000"
      }
    }
  },
  {
    "_id": {
      "$oid": "5b837127628ff91a136a3603"
    },
    "name": "test time addMessage",
    "time": "2.672s",
    "memory": "11.25Mb",
    "created_at": {
      "$date": {
        "$numberLong": "1535340839000"
      }
    },
    "thread_id": 1798,
    "updated_at": {
      "$date": {
        "$numberLong": "1535340839000"
      }
    }
  },
  {
    "_id": {
      "$oid": "5b837127628ff91a1717b543"
    },
    "name": "test time addMessage",
    "time": "2.620s",
    "memory": "11.25Mb",
    "created_at": {
      "$date": {
        "$numberLong": "1535340839000"
      }
    },
    "thread_id": 1801,
    "updated_at": {
      "$date": {
        "$numberLong": "1535340839000"
      }
    }
  },
  {
    "_id": {
      "$oid": "5b837128628ff91bb97d5752"
    },
    "name": "test time addMessage",
    "time": "2.595s",
    "memory": "11.25Mb",
    "created_at": {
      "$date": {
        "$numberLong": "1535340840000"
      }
    },
    "thread_id": 1806,
    "updated_at": {
      "$date": {
        "$numberLong": "1535340840000"
      }
    }
  },
  {
    "_id": {
      "$oid": "5b837128628ff91a23394515"
    },
    "name": "test time addMessage",
    "time": "2.018s",
    "memory": "11.25Mb",
    "created_at": {
      "$date": {
        "$numberLong": "1535340840000"
      }
    },
    "thread_id": 1811,
    "updated_at": {
      "$date": {
        "$numberLong": "1535340840000"
      }
    }
  },
  {
    "_id": {
      "$oid": "5b837128628ff91bc730a092"
    },
    "name": "test time addMessage",
    "time": "2.146s",
    "memory": "11.25Mb",
    "created_at": {
      "$date": {
        "$numberLong": "1535340840000"
      }
    },
    "thread_id": 1809,
    "updated_at": {
      "$date": {
        "$numberLong": "1535340840000"
      }
    }
  },
  {
    "_id": {
      "$oid": "5b837128628ff91bbd0cc012"
    },
    "name": "test time addMessage",
    "time": "2.293s",
    "memory": "11.25Mb",
    "created_at": {
      "$date": {
        "$numberLong": "1535340840000"
      }
    },
    "thread_id": 1808,
    "updated_at": {
      "$date": {
        "$numberLong": "1535340840000"
      }
    }
  },
  {
    "_id": {
      "$oid": "5b837128628ff901d931741e"
    },
    "name": "test time addMessage",
    "time": "2.214s",
    "memory": "11.25Mb",
    "created_at": {
      "$date": {
        "$numberLong": "1535340840000"
      }
    },
    "thread_id": 1802,
    "updated_at": {
      "$date": {
        "$numberLong": "1535340840000"
      }
    }
  },
  {
    "_id": {
      "$oid": "5b837128628ff91bca3ed752"
    },
    "name": "test time addMessage",
    "time": "1.734s",
    "memory": "11.25Mb",
    "created_at": {
      "$date": {
        "$numberLong": "1535340840000"
      }
    },
    "thread_id": 1797,
    "updated_at": {
      "$date": {
        "$numberLong": "1535340840000"
      }
    }
  },
  {
    "_id": {
      "$oid": "5b837129628ff9118968e086"
    },
    "name": "test time addMessage",
    "time": "1.628s",
    "memory": "11.25Mb",
    "created_at": {
      "$date": {
        "$numberLong": "1535340841000"
      }
    },
    "thread_id": 1812,
    "updated_at": {
      "$date": {
        "$numberLong": "1535340841000"
      }
    }
  },
  {
    "_id": {
      "$oid": "5b837129628ff918a363f845"
    },
    "name": "test time addMessage",
    "time": "1.590s",
    "memory": "11.25Mb",
    "created_at": {
      "$date": {
        "$numberLong": "1535340841000"
      }
    },
    "thread_id": 1799,
    "updated_at": {
      "$date": {
        "$numberLong": "1535340841000"
      }
    }
  },
  {
    "_id": {
      "$oid": "5b837130628ff91a214cd874"
    },
    "name": "test time addMessage",
    "time": "922ms",
    "memory": "11.25Mb",
    "created_at": {
      "$date": {
        "$numberLong": "1535340848000"
      }
    },
    "thread_id": 1815,
    "updated_at": {
      "$date": {
        "$numberLong": "1535340848000"
      }
    }
  },
  {
    "_id": {
      "$oid": "5b837130628ff91a5b18c5d3"
    },
    "name": "test time addMessage",
    "time": "529ms",
    "memory": "11.25Mb",
    "created_at": {
      "$date": {
        "$numberLong": "1535340848000"
      }
    },
    "thread_id": 1814,
    "updated_at": {
      "$date": {
        "$numberLong": "1535340848000"
      }
    }
  },
  {
    "_id": {
      "$oid": "5b837130628ff91a23394516"
    },
    "name": "test time addMessage",
    "time": "451ms",
    "memory": "11.25Mb",
    "created_at": {
      "$date": {
        "$numberLong": "1535340848000"
      }
    },
    "thread_id": 1818,
    "updated_at": {
      "$date": {
        "$numberLong": "1535340848000"
      }
    }
  },
  {
    "_id": {
      "$oid": "5b837133628ff901e063dd39"
    },
    "name": "test time addMessage",
    "time": "808ms",
    "memory": "11.25Mb",
    "created_at": {
      "$date": {
        "$numberLong": "1535340851000"
      }
    },
    "thread_id": 1820,
    "updated_at": {
      "$date": {
        "$numberLong": "1535340851000"
      }
    }
  },
  {
    "_id": {
      "$oid": "5b837134628ff91a2505b174"
    },
    "name": "test time addMessage",
    "time": "694ms",
    "memory": "11.25Mb",
    "created_at": {
      "$date": {
        "$numberLong": "1535340852000"
      }
    },
    "thread_id": 1819,
    "updated_at": {
      "$date": {
        "$numberLong": "1535340852000"
      }
    }
  },
  {
    "_id": {
      "$oid": "5b837134628ff91a2b4090b6"
    },
    "name": "test time addMessage",
    "time": "606ms",
    "memory": "11.25Mb",
    "created_at": {
      "$date": {
        "$numberLong": "1535340852000"
      }
    },
    "thread_id": 1816,
    "updated_at": {
      "$date": {
        "$numberLong": "1535340852000"
      }
    }
  },
  {
    "_id": {
      "$oid": "5b837134628ff91bc85e4c43"
    },
    "name": "test time addMessage",
    "time": "290ms",
    "memory": "11.25Mb",
    "created_at": {
      "$date": {
        "$numberLong": "1535340852000"
      }
    },
    "thread_id": 1817,
    "updated_at": {
      "$date": {
        "$numberLong": "1535340852000"
      }
    }
  },
  {
    "_id": {
      "$oid": "5b837134628ff91ad93dc953"
    },
    "name": "test time addMessage",
    "time": "224ms",
    "memory": "11.25Mb",
    "created_at": {
      "$date": {
        "$numberLong": "1535340852000"
      }
    },
    "thread_id": 1822,
    "updated_at": {
      "$date": {
        "$numberLong": "1535340852000"
      }
    }
  },
  {
    "_id": {
      "$oid": "5b83713a628ff91a645279f6"
    },
    "name": "test time addMessage",
    "time": "154ms",
    "memory": "11.25Mb",
    "created_at": {
      "$date": {
        "$numberLong": "1535340858000"
      }
    },
    "thread_id": 1821,
    "updated_at": {
      "$date": {
        "$numberLong": "1535340858000"
      }
    }
  },
  {
    "_id": {
      "$oid": "5b837157628ff91b9d6a4ac2"
    },
    "name": "test time addMessage",
    "time": "168ms",
    "memory": "11.50Mb",
    "created_at": {
      "$date": {
        "$numberLong": "1535340887000"
      }
    },
    "thread_id": 909,
    "updated_at": {
      "$date": {
        "$numberLong": "1535340887000"
      }
    }
  },
  {
    "_id": {
      "$oid": "5b8371a0628ff91a24759ac6"
    },
    "name": "test time addMessage",
    "time": "187ms",
    "memory": "11.50Mb",
    "created_at": {
      "$date": {
        "$numberLong": "1535340960000"
      }
    },
    "thread_id": 909,
    "updated_at": {
      "$date": {
        "$numberLong": "1535340960000"
      }
    }
  },
  {
    "_id": {
      "$oid": "5b8371a7628ff91a2505b176"
    },
    "name": "test time addMessage",
    "time": "1.472s",
    "memory": "11.25Mb",
    "created_at": {
      "$date": {
        "$numberLong": "1535340967000"
      }
    },
    "thread_id": 1825,
    "updated_at": {
      "$date": {
        "$numberLong": "1535340967000"
      }
    }
  },
  {
    "_id": {
      "$oid": "5b8371a8628ff91bc023e752"
    },
    "name": "test time addMessage",
    "time": "1.033s",
    "memory": "11.25Mb",
    "created_at": {
      "$date": {
        "$numberLong": "1535340968000"
      }
    },
    "thread_id": 1824,
    "updated_at": {
      "$date": {
        "$numberLong": "1535340968000"
      }
    }
  },
  {
    "_id": {
      "$oid": "5b8371a8628ff91ada0f4403"
    },
    "name": "test time addMessage",
    "time": "638ms",
    "memory": "11.25Mb",
    "created_at": {
      "$date": {
        "$numberLong": "1535340968000"
      }
    },
    "thread_id": 1827,
    "updated_at": {
      "$date": {
        "$numberLong": "1535340968000"
      }
    }
  },
  {
    "_id": {
      "$oid": "5b8371a8628ff91a201ef4e3"
    },
    "name": "test time addMessage",
    "time": "600ms",
    "memory": "11.25Mb",
    "created_at": {
      "$date": {
        "$numberLong": "1535340968000"
      }
    },
    "thread_id": 1826,
    "updated_at": {
      "$date": {
        "$numberLong": "1535340968000"
      }
    }
  },
  {
    "_id": {
      "$oid": "5b8371a8628ff91ad93dc954"
    },
    "name": "test time addMessage",
    "time": "503ms",
    "memory": "11.25Mb",
    "created_at": {
      "$date": {
        "$numberLong": "1535340968000"
      }
    },
    "thread_id": 1828,
    "updated_at": {
      "$date": {
        "$numberLong": "1535340968000"
      }
    }
  },
  {
    "_id": {
      "$oid": "5b8371a9628ff91bbe067073"
    },
    "name": "test time addMessage",
    "time": "155ms",
    "memory": "11.25Mb",
    "created_at": {
      "$date": {
        "$numberLong": "1535340969000"
      }
    },
    "thread_id": 1829,
    "updated_at": {
      "$date": {
        "$numberLong": "1535340969000"
      }
    }
  }
]

@phanngoc
Copy link
Author

phanngoc commented Aug 27, 2018

  • Benmark load time 10 user cocurrent (init load (case 1))

process id, time start load, time end load, amount time need to load page (milisecond)

2,2314.92405,11801.571703,9486.647653
0,2191.175358,12620.200191,10429.024833
3,2298.492708,15013.07552,12714.582812
4,2004.278168,16008.76262,14004.484451999999
1,2445.55383,17989.334809,15543.780979

4,612.753181,10369.073151,9756.31997
1,613.034394,10655.928981,10042.894586999999
0,618.089878,11698.130813,11080.040934999999
2,600.301484,12113.921912,11513.620428
3,640.616774,15246.736509,14606.119735

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment