---
title: "OceanBase TPC-H 性能测试报告 | OceanBase 文档中心"
description: OceanBase TPC-H 性能测试报告 测试环境 (阿里云 ECS） 3 节点硬件配置 服务类型 ECS 类型 实例数 机器核心数 内存 OceanBase 数据库 ecs.g7.8xlarge 3 32C 128G TPC-H ecs.g7.8xlarge 1 32C 128G 6 节点硬件配置 服务类型 E…
image: https://mdn.alipayobjects.com/huamei_22khvb/afts/img/A*OSPzQ6GUQF4AAAAAQHAAAAgAeiGDAQ/original
---
切换语言

- 中文站 - 简体中文
- International - English
- 日本站 - 日本語

文档反馈![](https://mdn.alipayobjects.com/huamei_22khvb/afts/img/A*P8CuR4UJ_FkAAAAAAAAAAAAADiGDAQ/original) OceanBase 数据库分布式版 - V 3.1.4 社区版

# OceanBase TPC-H 性能测试报告

更新时间：2023-08-03 17:20:32

[编辑](https://github.com/oceanbase/oceanbase-doc/edit/V3.1.4/zh-CN/100.users-guide/900.performance-tuning-guide/800.performance-whitepaper/200.tpc-h-benchmark-report-of-oceanbase-database.md)  

## 测试环境 (阿里云 ECS）

- 3 节点硬件配置

  | 服务类型 | ECS 类型 | 实例数 | 机器核心数 | 内存 |
  | --- | --- | --- | --- | --- |
  | OceanBase 数据库 | ecs.g7.8xlarge | 3 | 32C | 128G |
  | TPC-H | ecs.g7.8xlarge | 1 | 32C | 128G |
 - 6 节点硬件配置

  | 服务类型 | ECS 类型 | 实例数 | 机器核心数 | 内存 |
  | --- | --- | --- | --- | --- |
  | OceanBase 数据库 | ecs.g7.8xlarge | 6 | 32C | 128G |
  | TPC-H | ecs.g7.8xlarge | 1 | 32C | 128G |
 - 3 节点租户规格

  ```sql
  create resource unit tpch_unit max_cpu 26, max_memory 60000000000, max_iops 128, max_disk_size 53687091200, max_session_num 64, MIN_CPU=26, MIN_MEMORY=60000000000, MIN_IOPS=128;
  create resource pool tpch_pool unit = 'tpch_unit', unit_num = 1, zone_list=('zone1','zone2','zone3');
  create tenant tpch_mysql resource_pool_list=('tpch_pool'), charset=utf8mb4, replica_num=3, zone_list('zone1', 'zone2', 'zone3'), primary_zone=RANDOM, locality='F@zone1,F@zone2,F@zone3' set variables ob_compatibility_mode='mysql', ob_tcp_invited_nodes='%';

  ```
 - 6 节点租户规格

  ```sql
  create resource unit tpch_unit max_cpu 26, max_memory 60000000000, max_iops 128, max_disk_size 53687091200, max_session_num 64, MIN_CPU=26, MIN_MEMORY=60000000000, MIN_IOPS=128;
  create resource pool tpch_pool unit = 'tpch_unit', unit_num = 2, zone_list=('zone1','zone2','zone3');
  create tenant tpch_mysql resource_pool_list=('tpch_pool'), charset=utf8mb4, replica_num=3, zone_list('zone1', 'zone2', 'zone3'), primary_zone=RANDOM, locality='F@zone1,F@zone2,F@zone3' set variables ob_compatibility_mode='mysql', ob_tcp_invited_nodes='%';

  ```
 - 软件版本

  | 服务类型 | 软件版本 |
  | --- | --- |
  | OceanBase 数据库 | OceanBase V3.1.0 |
  | TPC-H | V3.0.0 |
  | OS | CentOS Linux release 7.9.2009 (Core) |

## 测试方案

- 使用 OBD 部署 OceanBase 数据库集群。TPC-H 客户端需要部署在一台机器上, 作为客户端的压力机器。您无需部署 ODP，测试时直连任意一台机器即可。
 - 3 节点的 OceanBase 集群部署规模为 1：1：1，6 节点的 OceanBase 集群部署规模为 2：2：2。部署成功后先新建跑 TPCH 测试的租户及用户（sys 租户是管理集群的内置系统租户，请勿直接使用 sys 租户进行测试），设置租户的 `primary_zone` 为 RANDOM。
 - 测试数据量：100G。
 - 测试步骤详见 [OceanBase 数据库 TPC-H 测试](https://www.oceanbase.com/docs/community-observer-cn-10000000000450308)。

## 测试结果

| **Query ID** | **3节点 OBServer V3.1.0****查询响应时间（单位：秒）** | **6节点 OBServer V3.1.0****查询响应时间（单位：秒）** |
| --- | --- | --- |
| 1 | 14.04 | 7.21 |
| 2 | 1.12 | 0.49 |
| 3 | 13.57 | 10.28 |
| 4 | 2.51 | 1.60 |
| 5 | 12.31 | 6.18 |
| 6 | 7.33 | 3.51 |
| 7 | 10.38 | 3.51 |
| 8 | 11.42 | 5.55 |
| 9 | 30.99 | 15.78 |
| 10 | 6.84 | 4.71 |
| 11 | 1.22 | 1.22 |
| 12 | 8.64 | 5.81 |
| 13 | 7.59 | 3.79 |
| 14 | 1.51 | 0.96 |
| 15 | 3.01 | 1.97 |
| 16 | 2.66 | 1.66 |
| 17 | 8.60 | 4.24 |
| 18 | 7.88 | 5.86 |
| 19 | 9.36 | 4.42 |
| 20 | 10.95 | 4.42 |
| 21 | 12.27 | 5.23 |
| 22 | 4.05 | 2.06 |
| total | 188.25 | 100.46 |

![tpch_100g](https://help-static-aliyun-doc.aliyuncs.com/assets/img/zh-CN/0678264361/p335416.png)

 上一篇 下一篇 ![有帮助](https://gw.alipayobjects.com/mdn/ob_asset/afts/img/A*y6ocSqN8cqsAAAAAAAAAAAAAARQnAQ)![无帮助](https://gw.alipayobjects.com/mdn/ob_asset/afts/img/A*BG9IQJyLHF8AAAAAAAAAAAAAARQnAQ)![反馈](https://gw.alipayobjects.com/mdn/ob_asset/afts/img/A*eTWdQKCRKHwAAAAAAAAAAAAAARQnAQ)[AI](https://www.oceanbase.com/obi) 咨询热线
