Mongodb3.0 Performance Test Report 1: mongodb3.0 performance test

Source: Internet
Author: User

Mongodb3.0 Performance Test Report 1: mongodb3.0 performance test


Test environment:

Servers: 6 X86 pcservers

Cpu: single 8-core

Memory: 64 GB

Disk: raid 10

Operating System: centos 6.5

Mongodb: 3.0

Java DRIVER: 2.8.0

Jdk: 1.6

Network: Gigabit Ethernet

Test 1:

A single monodb service, with the same configuration server serving as a stress server, cannot exceed the memory size.

The mongodb configuration is as follows:

Fork = true
Bind_ip = 10.10.130.33
Port = 10000
Dbpath =/data/db
Logpath =/data/log/log_m.txt
Pidfilepath =/data/pid/pid_m.txt
Journal = true
StorageEngine = wiredTiger

Scenario 1: Each document contains 1000 characters and is written in 10 threads simultaneously.


Write an average of 22413 documents per second.

The old version (mongodb2.4.4) is as follows:


Writes an average of 16771 documents per second.

Conclusion: the performance of 1 K documents is improved by 34%. Disk Space is reduced by 93%.

Scenario 2: Each document contains 10 k characters and is written in 10 threads at the same time.


Writes an average of 9038 documents per second.

Test earlier versions (mongodb 2.4.4 ):


An average of 8268 documents are written per second, and the insertion speed is unstable.

Conclusion: The performance is improved by 10% by writing 10 k documents.Disk Space is reduced by 87%.


Test 2:

A single monodb service, one with the same configuration server as the stress server, the data volume does not exceed the memory size, the document is a 35 K byte group.

Test results:


Writes an average of 2588 documents per second.

Old Version (mongodb 2.4.4 ):


Writes an average of 2261 documents per second. The insertion speed is unstable.

Conclusion: the performance of 35 K documentation is improved by 15%.Disk Space is reduced by 91%.


Summary: The new version greatly improves disk space control.

The insert performance is not significantly improved, but the insert speed is significantly improved.

Because of the document-level locks provided by the new engine, there should be significant improvements in the insert, update, and query hybrid mode.

Test 2 test the standalone hybrid mode

Test 3: test the partition Mode





Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.