Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
zz-jason committed Apr 26, 2018
1 parent f252493 commit bfe361a
Showing 1 changed file with 47 additions and 34 deletions.
81 changes: 47 additions & 34 deletions benchmark/tpch.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,37 @@ draft: true

测试 TiDB 在 OLAP 场景下 1.0 和 2.0 版本的性能对比。

> **注意**: 不同的测试环境可能使测试结果发生改变。
> **注意**不同的测试环境可能使测试结果发生改变。
## 测试环境

### 1. 机器硬件信息
### 测试机器信息

1. 系统信息

| 机器 IP | 操作系统 | 内核版本 | 文件系统类型 |
|--------------|------------------------|------------------------------|--------------|
| 172.16.31.2 | Ubuntu 17.10 64bit | 4.13.0-16-generic | ext4 |
| 172.16.31.3 | Ubuntu 17.10 64bit | 4.13.0-16-generic | ext4 |
| 172.16.31.4 | Ubuntu 17.10 64bit | 4.13.0-16-generic | ext4 |
| 172.16.31.6 | CentOS 7.4.1708 64bit | 3.10.0-693.11.6.el7.x86\_64 | ext4 |
| 172.16.31.8 | CentOS 7.4.1708 64bit | 3.10.0-693.11.6.el7.x86\_64 | ext4 |
| 172.16.31.10 | CentOS 7.4.1708 64bit | 3.10.0-693.11.6.el7.x86\_64 | ext4 |

2. 硬件信息

| 类别 | 名称 |
|------------|------------------------------------------------------|
| OS | linux (CentOS 7.3.1611) |
| CPU | 40 vCPUs, Intel(R) Xeon(R) CPU E5-2630 v4 @ 2.20GHz |
| RAM | 128GB |
| DISK | 1.5T SSD * 2 + Optane SSD * 1 |
| 内存 | 128GB, 8条16GB RDIMM, 2400MT/s, 双列, x8 带宽 |
| 磁盘 | 2 块 Intel P4500 系列 4T SSD 硬盘 |
| 网卡 | 万兆网卡 |

### 2. TPC-H
### TPC-H

[tidb-bench/tpch](https://github.com/pingcap/tidb-bench/tree/master/tpch)

### 3. 集群拓扑
### 集群拓扑

| 机器 IP | 部署的实例 |
|--------------|------------|
Expand All @@ -39,7 +52,7 @@ draft: true
| 172.16.31.10 | PD \* 1 |
| 172.16.31.4 | TiDB \* 1 |

### 4. 相应 TiDB 版本信息
### TiDB 版本信息

TiDB 1.0:

Expand All @@ -59,32 +72,32 @@ TiDB 2.0:

## 测试结果

| Query ID | TiDB 2.0 | TiDB 1.0 |
| Query ID | TiDB 2.0 | TiDB 1.0 |
|-----------|--------------------|------------------|
| 1 | 33.9154210091s | 215.305725098s |
| 2 | 25.5757238865s | Nan |
| 3 | 59.6319231987s | 196.003419161s |
| 4 | 30.2346801758s | 249.919836998s |
| 5 | 31.6665229797s | OOM |
| 6 | 13.1118650436s | 118.709993839s |
| 7 | 31.7108299732s | OOM |
| 8 | 31.7343668938s | 800.546444893s |
| 9 | 34.2111070156s | 630.639750004s |
| 10 | 30.7746679783s | 133.547474861s |
| 11 | 27.6926951408s | 78.0269281864s |
| 12 | 27.9628179073s | 124.641829014s |
| 13 | 27.6760618687s | 174.695388079s |
| 14 | 19.6767029762s | 110.602974892s |
| 15 | NaN | Nan |
| 16 | 24.8907389641s | 40.5292630196s |
| 17 | 245.796802998s | NaN |
| 18 | 91.2561578751s | OOM |
| 19 | 37.6150860786s | NaN |
| 20 | 44.1677880287s | 212.201659918s |
| 21 | 31.4664649963s | OOM |
| 22 | 31.5397689342s | 125.471378088s |
| 1 | 33.9154210091s | 215.305725098s |
| 2 | 25.5757238865s | Nan |
| 3 | 59.6319231987s | 196.003419161s |
| 4 | 30.2346801758s | 249.919836998s |
| 5 | 31.6665229797s | OOM |
| 6 | 13.1118650436s | 118.709993839s |
| 7 | 31.7108299732s | OOM |
| 8 | 31.7343668938s | 800.546444893s |
| 9 | 34.2111070156s | 630.639750004s |
| 10 | 30.7746679783s | 133.547474861s |
| 11 | 27.6926951408s | 78.0269281864s |
| 12 | 27.9628179073s | 124.641829014s |
| 13 | 27.6760618687s | 174.695388079s |
| 14 | 19.6767029762s | 110.602974892s |
| 15 | NaN | Nan |
| 16 | 24.8907389641s | 40.5292630196s |
| 17 | 245.796802998s | NaN |
| 18 | 91.2561578751s | OOM |
| 19 | 37.6150860786s | NaN |
| 20 | 44.1677880287s | 212.201659918s |
| 21 | 31.4664649963s | OOM |
| 22 | 31.5397689342s | 125.471378088s |

说明:
1. Query 15 1.0 和 2.0 都还未支持视图,所以结果标记为 NaN
2. Query 2, 17, 19 因为 TiDB 1.0 长时间未跑出结果,所以结果标记为 Nan
3. Query 5, 7, 18, 21 因为 TiDB 1.0 在跑的过程中内存占用过多被 oom-killer 杀死,所以结果标记为 OOM
- Query 15 1.0 和 2.0 都还未支持视图,所以结果标记为 NaN
- Query 2, 17, 19 因为 TiDB 1.0 长时间未跑出结果,所以结果标记为 Nan
- Query 5, 7, 18, 21 因为 TiDB 1.0 在跑的过程中内存占用过多被 oom-killer 杀死,所以结果标记为 OOM

0 comments on commit bfe361a

Please sign in to comment.