|
| 1 | +--- |
| 2 | +title: TiDB TPC-H 50G Performance Test Report V2.1 |
| 3 | +category: benchmark |
| 4 | +--- |
| 5 | + |
| 6 | +# TiDB TPC-H 50G Performance Test Report V2.1 |
| 7 | + |
| 8 | +## Test purpose |
| 9 | + |
| 10 | +This test aims to compare the performances of TiDB 2.0 and TiDB 2.1 in the OLAP scenario. |
| 11 | + |
| 12 | +> **Note**: Different test environments might lead to different test results. |
| 13 | +
|
| 14 | +## Test environment |
| 15 | + |
| 16 | +### Machine information |
| 17 | + |
| 18 | +System information: |
| 19 | + |
| 20 | +| Machine IP | Operation system | Kernel version | File system type | |
| 21 | +|--------------|------------------------|------------------------------|--------------| |
| 22 | +| 10.0.1.4 | CentOS 7.5.1804 64bit | 3.10.0-862.3.3.el7.x86\_64 | ext4 | |
| 23 | +| 10.0.1.5 | CentOS 7.5.1804 64bit | 3.10.0-862.3.3.el7.x86\_64 | ext4 | |
| 24 | +| 10.0.1.6 | CentOS 7.5.1804 64bit | 3.10.0-862.3.3.el7.x86\_64 | ext4 | |
| 25 | +| 10.0.1.7 | CentOS 7.5.1804 64bit | 3.10.0-862.3.3.el7.x86\_64 | ext4 | |
| 26 | +| 10.0.1.8 | CentOS 7.5.1804 64bit | 3.10.0-862.3.3.el7.x86\_64 | ext4 | |
| 27 | +| 10.0.1.9 | CentOS 7.5.1804 64bit | 3.10.0-862.3.3.el7.x86\_64 | ext4 | |
| 28 | + |
| 29 | +Hardware information: |
| 30 | + |
| 31 | +| Type | 10.0.1.4 | 10.0.1.5, 10.0.1.6, 10.0.1.7, 10.0.1.8, 10.0.1.9 | |
| 32 | +|------------|------------------------------------------------------|------------------------------------------------------| |
| 33 | +| CPU | 16 vCPUs, Intel(R) Xeon(R) CPU E5-2660 0 @ 2.20GHz | 8 vCPUs, Intel(R) Xeon(R) CPU E5-2660 0 @ 2.20GHz | |
| 34 | +| Memory | 110G | 55G | |
| 35 | +| Disk | 221G SSD | 111G SSD | |
| 36 | +| Network card | 10 Gigabit Ethernet, 10000Mb/s | 10 Gigabit Ethernet, 10000Mb/s | |
| 37 | + |
| 38 | +### TPC-H |
| 39 | + |
| 40 | +[tidb-bench/tpch](https://github.com/pingcap/tidb-bench/tree/master/tpch) |
| 41 | + |
| 42 | +### Cluster topology |
| 43 | + |
| 44 | +| Machine IP | Deployment Instance | |
| 45 | +|----------|------------| |
| 46 | +| 10.0.1.5 | TiKV \* 1 | |
| 47 | +| 10.0.1.6 | TiKV \* 1 | |
| 48 | +| 10.0.1.7 | TiKV \* 1 | |
| 49 | +| 10.0.1.8 | TiKV \* 1 | |
| 50 | +| 10.0.1.9 | TiKV \* 1 | |
| 51 | +| 10.0.1.4 | PD \* 1 | |
| 52 | +| 10.0.1.4 | TiDB \* 1 | |
| 53 | + |
| 54 | +### TiDB version information |
| 55 | + |
| 56 | +TiDB 2.0: |
| 57 | + |
| 58 | +| Component | Version | Commit Hash | |
| 59 | +|--------|-------------|--------------------------------------------| |
| 60 | +| TiDB | v2.0.7 | 29ec059cb3b7d14b6f52c2f219f94a89570162bc | |
| 61 | +| TiKV | v2.0.7 | d0b8cd7c7f62f06e7ef456837bd32a47da1ca4cd | |
| 62 | +| PD | v2.0.5 | b64716707b7279a4ae822be767085ff17b5f3fea | |
| 63 | + |
| 64 | +TiDB 2.1: |
| 65 | + |
| 66 | +| Component | Version | Commit Hash | |
| 67 | +|--------|-------------|--------------------------------------------| |
| 68 | +| TiDB | v2.1.0-rc.2 | 16864f95b47f859ed6104555ccff0387abdc2429 | |
| 69 | +| TiKV | v2.1.0-rc.2 | 8458ce53ebbd434c48baac6373fe0f0a43a54005 | |
| 70 | +| PD | v2.1.0-rc.2 | 55db505e8f35e8ab4e00efd202beb27a8ecc40fb | |
| 71 | + |
| 72 | +## Test result |
| 73 | + |
| 74 | +| Query ID | TiDB 2.0 | TiDB 2.1 | |
| 75 | +|-----------|----------------|----------------| |
| 76 | +| 1 | 121.550595999s | 91.4755480289s | |
| 77 | +| 2 | 53.0638680458s | 23.1186130047s | |
| 78 | +| 3 | 75.7236940861s | 61.790802002s | |
| 79 | +| 4 | 30.2647120953s | 26.3483440876s | |
| 80 | +| 6 | 51.4850790501s | 34.6432199478s | |
| 81 | +| 7 | 216.787364006s | 94.9856910706s | |
| 82 | +| 8 | 188.717588902s | 181.852752209s | |
| 83 | +| 9 | 546.438174009s | 414.462754965s | |
| 84 | +| 10 | 109.978317022s | 37.0369961262s | |
| 85 | +| 11 | 42.9398438931s | 37.6951580048s | |
| 86 | +| 12 | 60.455039978s | 40.2236878872s | |
| 87 | +| 13 | 230.278712988s | 70.2887151241s | |
| 88 | +| 14 | 61.2673521042s | 35.8372960091s | |
| 89 | +| 16 | 30.2539310455s | 18.5897550583s | |
| 90 | +| 17 | 3200.70173788s | 263.095014811s | |
| 91 | +| 18 | 1035.59847498s | 296.360667944s | |
| 92 | +| 19 | 54.3732938766s | 40.4523630142s | |
| 93 | +| 20 | 105.094577074s | 53.2429068089s | |
| 94 | +| 21 | 389.883709908s | 361.034544945s | |
| 95 | +| 22 | 64.0494630337s | 65.7153418064s | |
| 96 | + |
| 97 | + |
| 98 | + |
| 99 | +It should be noted that: |
| 100 | + |
| 101 | +- In the diagram above, the red bars represent the query results of Release 2.1 and the blue bars represent the query results of Release 2.0. The y-axis represents the processing time of queries in seconds, the shorter the faster. |
| 102 | +- The result of Query 15 is not displayed because VIEW is currently not supported in either TiDB 2.1 or 2.0. |
| 103 | +- The result of Query 5 is not displayed because no result is returned during a long period of time caused by the Join Order issue. |
0 commit comments