Skip to content

Instantly share code, notes, and snippets.

@phanngoc
Last active August 31, 2018 07:56
Show Gist options
  • Select an option

  • Save phanngoc/cc1d12fc097dcf2e45c8ff6f32549b6f to your computer and use it in GitHub Desktop.

Select an option

Save phanngoc/cc1d12fc097dcf2e45c8ff6f32549b6f to your computer and use it in GitHub Desktop.
test 6 user cocurrent, localhost, kết quả trung bình 10 lần
/* 1 */
{
"_id" : "test time addMessage user",
"value" : 257.488
}
/* 2 */
{
"_id" : "test time search keyword",
"value" : 49.324
}
sau khi setting , innodb_thread_concurrency = 64 innodb_read_io_threads = 64
/* 1 */
{
"_id" : "test time addMessage user",
"value" : 197.432727272727
}
/* 2 */
{
"_id" : "test time search keyword",
"value" : 57.7736363636364
}
@phanngoc

Copy link
Copy Markdown
Author

/* 1 */
{
"_id" : "test time add message bot",
"value" : 296.833333333333
}

/* 2 */
{
"_id" : "test time addMessage user",
"value" : 213.777777777778
}

/* 3 */
{
"_id" : "test time search keyword",
"value" : 71.4444444444444
}

@phanngoc

Copy link
Copy Markdown
Author

test switch to mongodb:
/* 1 */
{
"_id" : "test time addMessage user",
"value" : 143.276595744681
}

/* 2 */
{
"_id" : "test time search keyword",
"value" : 71.3829787234042
}

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