TokuDB6.5 and InnoDB (1.1.18) Performance Comparison Test

Source: Internet
Author: User
I recently tested the performance comparison test between TokuDB6.5 and InnoDB1.1.18. Next I will share the test process and test results. I hope you will have some friends who may need TokuDB later.

I recently tested the performance comparison test between TokuDB6.5 and InnoDB1.1.18. Next I will share the test process and test results. I hope you will have some friends who may need TokuDB later.

I'm afraid InnoDB is the most familiar with the MySQL storage engine. The performance of InnoDB is not bad, especially for Internet applications. However, InnoDB cannot be called Perfect, especially the performance of a single-instance MySQL is not flattering. Currently, most Internet companies make up for this through excellent architecture. The single-instance performance of the MySQL storage engine mentioned today is indeed much better than that of InnoDB in certain circumstances, and is not inferior in general cases ----- TokuDB ------ Perfect compatibility with MySQL. TokuDB is a powerful engine. Instead of using the B + tree used by conventional databases to store data, it uses the so-called fragtal tree, this special data structure makes TokuDB have high read/write performance (especially write, many times that of InnoDB ). I recently tested the performance comparison test between TokuDB6.5 and InnoDB1.1.18. The following describes the test process and results, I hope it will be helpful to my friends who may need TokuDB in the future (the TokuDB data file is free of charge within 50 GB. If it is exceeded, you will be charged. For details, google tokudb can be found and charged !!).

First of all, I would like to briefly introduce TokuDB, which is a MySQL-based storage engine that uses a data structure with a fragment number for storage. The most typical features are extremely fast insertion speed and high compression efficiency. The Comparison Between InnoDB and InnoDB is shown as follows:

TokuDB supports a series of functions such as transactions and MVCC. It seems that it has many advantages over InnoDB, but it seems that there is no good support for backup tools (I don't know if there is a good paid version ). I have basically understood the TokuDB function. Next let's take a look at our specific test results.

Test Tool: sysbench0.5.

Test method: Initialize part of the data in sysbench, run the Script test, and record the OS data during the test.

Sysbench test script (no hotspot data mode is used, and data is randomly initialized ):

Sysbench -- test =/home/zbs/sysbench-0.5/sysbench/tests/db/parallel_prepare.lua -- oltp_tables_count = 1 -- oltp-table-size = $ records -- rand-init = on -- num- threads = $ thds -- oltp-read-only = off -- report-interval = 10 -- rand-type = uniform -- mysql-table-engine = $ type -- max-time = 8000 -- mysql-host = $ host -- mysql-port = $ port -- mysql-user = test -- mysql-password = test -- mysql-db = test1 -- max-requests = 0 prepare> $ log 2> & 1

Sysbench -- test =/home/zbs/sysbench-0.5/sysbench/tests/db/oltp. lua -- oltp_tables_count = 1 -- oltp-table-size = $ records -- rand-init = on -- num-threads = $ thds -- oltp-read-only = off -- report-interval = 10 -- rand-type = uniform -- mysql-table-engine = $ type -- max-time = 8000 -- mysql-host = $ host -- mysql-port = $ port -- mysql-user = test -- mysql-password = test -- mysql-db = test1 -- max-requests = 0 run> $ log 2> & 1

After the first test, TPS was unexpected. For details, see:

You will find that TokuDB6 is so many times better than InnoDB and TokuDB5.0 (when TokuDB is tested, the % util column of iostat is less than 10%, and the r column of vmstat is higher ). This result is scary, but none of us will believe it (in fact, The results officially provided by TokuDB are almost the same as the two, TokuDB is slightly better), because if there is such a good storage engine in the world, then InnoDB should not be mixed. The second test was conducted with a skeptical attitude (although the table size was large in the first test, -- rand-init = on was not specified, resulting in the same content in most of the initialized data rows, at this time, TokuDB's compression capability is shown, which is about 20 times smaller than the InnoDB data file), and the second test shows several data scales (random data initialization, non-hotspot data mode ).

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.