Python(multi-thread) vs Node.js [ Mongodb~Cluster~ ]
Channel:
Subscribers:
332
Published on ● Video Link: https://www.youtube.com/watch?v=7JXnnlaNuxE
system_name:
Madee.Cluster.System_V1 : Datacenter edition
type:
Cluster / Supercomputer
vm:
MasterServer x1 : 2cpu 4 core 4GB Ram 20GB-HD
ConfigServer x3 : 1cpu 2 core 1GB Ram 20GB-HD
DataNodeServer x2 : 1cpu 2 core 2GB Ram 20GB-HD
software :
1.Linux Ubuntu 14.10 Desktop(Master)
2.Linux Ubuntu 14.10 Server
3.Mongodb v2.6.3 (Sharded Cluster)
3.Python v2.7.8
4.Node.js v0.10.25
ทดสอบ insert data ขนาดความยาว 64 byte จำนวน 10,000 query
1.ทดสอบกับภาษา python แบบ single thread (เขียนแบบไม่ใช้โมดูลthreading)
2.ทดสอบกับภาษา python แบบ multi-threading (10 thread) (เขียนแบบใช้โมดูลthreading)
3.ทดสอบ node.js แบบ single thread, non-blocking