# TPC-H

TPC-H 是由[事务处理性能委员会](https://www.edgepedia.org/zh/transaction-processing-performance-council)（Transaction Processing Performance Council，TPC）发布的一项决策支持基准，用于衡量数据库系统在大型关系数据库上运行一套 22 条面向业务的即席查询并同时进行并发数据修改的能力。<sup>[1](https://tpc.org/tpch/)</sup> 它模拟的是决策支持系统：这类系统需要检查海量数据、执行高度复杂的查询，并回答关键的业务问题。<sup>[1](https://tpc.org/tpch/)</sup> 当前规范版本为 3.0.1。<sup>[2](https://tpc.org/TPC_Documents_Current_Versions/current_specifications5.asp)</sup>

| 关键事实 | 详情 |
|---|---|
| 衡量什么 | TPC-H 复合每小时查询性能指标 QphH@Size，它在指定数据库规模下综合了单流查询能力和多用户吞吐量<sup>[1](https://tpc.org/tpch/)</sup> |
| 工作负载 | 22 条即席决策支持查询和 2 个数据库刷新函数，以 SQL-92 定义并带有替换参数<sup>[3](https://www.tpc.org/tpc_documents_current_versions/pdf/tpc-h_v2.17.1.pdf)</sup> |
| 数据库规模 | 由比例因子设定，比例因子 1 对应 1 GB 输入数据；典型取值为 10 的幂，最高可达 30,000 GB<sup>[4](https://upcommons.upc.edu/bitstream/handle/2099.1/13107/75404.pdf)</sup> |
| 当前版本 | 3.0.1，附规范 PDF 及 TPC-H 工具源码下载<sup>[2](https://tpc.org/TPC_Documents_Current_Versions/current_specifications5.asp)</sup> |
| 版本 3 的变化 | 性价比指标乘以 1,000 进行调整，变为 Price/kQphH@Size；V2 与 V3 结果不可比较<sup>[1](https://tpc.org/tpch/)</sup><sup> • </sup><sup>[5](https://www.tpc.org/tpch/results/tpch_last_ten_results5.asp?version=3)</sup> |
| 起源 | 创建于 1999 年 4 月，当时 TPC 将其 TPC-D 决策支持基准拆分为 TPC-H（即席）和 TPC-R（报表）<sup>[6](https://www.tpc.org/reports/status/bs-1999-11.asp)</sup> |
| 侧重考察 | 连接算法、扫描吞吐量和基本优化器选择；TPC-H 测试多并发用户下的查询吞吐量，但并非为测试相关数据或半结构化数据上的基数估计而设计<sup>[7](https://www.thedataengineering.com/mechanisms/measurement/how-it-works/standard-benchmarks)</sup><sup> • </sup><sup>[1](https://www.tpc.org/tpch/)</sup> |

## 工作负载与模式

该基准定义了一个包含八张表的关系模式，其中包括 orders、lineitem、part 和 supplier，并以 TPC 官方 DBGEN 工具生成的合成数据填充。<sup>[8](https://github-wiki-see.page/m/prestodb/pbench/wiki/Included-Benchmarks)</sup><sup> • </sup><sup>[4](https://upcommons.upc.edu/bitstream/handle/2099.1/13107/75404.pdf)</sup> 22 条查询中的每一条都由一个业务问题、一段以 SQL-92 编写的功能性查询定义、用于生成完成查询所需值的替换参数，以及针对资格数据库的验证过程来规定。<sup>[3](https://www.tpc.org/tpc_documents_current_versions/pdf/tpc-h_v2.17.1.pdf)</sup>

一次基准运行由一次加载测试和随后两轮性能测试组成，每轮性能测试都结合了 能力测试（以单流执行查询集）和吞吐量测试（多个模拟用户并发提交查询流）。运行期间有两个刷新函数施加数据修改。<sup>[9](https://gbasedbt.com/download/tpc-h/tpc-h_v2.18.0.pdf)</sup>

## 指标

所报告的性能指标是复合每小时查询指标 QphH@Size，它反映了所选数据库规模、单流下的查询处理能力以及多并发用户下的吞吐量。<sup>[1](https://tpc.org/tpch/)</sup> 性价比指标在版本 2 中为 Price/QphH@Size，在版本 3 中为 Price/kQphH@Size。<sup>[1](https://tpc.org/tpch/)</sup> 推出 3.0 版是因为性能上升和成本下降已侵蚀了旧性价比数值的实用性；其主要变化是该指标乘以 1,000，而已发布的 V3 结果包含从 V2 转换而来的结果。TPC 声明 TPC-H 版本 2 与版本 3 的结果不可比较。<sup>[1](https://tpc.org/tpch/)</sup><sup> • </sup><sup>[5](https://www.tpc.org/tpch/results/tpch_last_ten_results5.asp?version=3)</sup>

## 历史

TPC 于 1990 年推出 TPC-D 决策支持基准，该基准于 1994 年 4 月获批。<sup>[10](https://www.tpc.org/information/about/history5.asp)</sup> 到 1999 年，TPC 已将 TPC-D 拆分为两个基准——TPC-R 和 TPC-H，二者都建立在相同的数据库模型、查询以及加载和刷新模型之上，但实施规则不同：TPC-H 限制使用索引和分区方案，并禁止物化视图，以模拟用户事先不知道查询的即席工作负载；而 TPC-R 允许使用这些结构，适用于查询已知且可针对其进行优化的报表工作负载。<sup>[6](https://www.tpc.org/reports/status/bs-1999-11.asp)</sup><sup> • </sup><sup>[11](https://sigmodrecord.org/?download_id=6060&smd_process_download=1)</sup>

该规范的文件历史显示出持续的修订：30 TB 和 100 TB 的比例因子在 2003 年 8 月的 2.1.0 修订版中加入，当前主修订版 3.0.0 可追溯至 2021 年。<sup>[12](https://tpc.org/tpc_documents_current_versions/pdf/tpc-h_v3.0.0.pdf)</sup>

## 使用与局限

TPC-H 至今仍在研究和工业界广泛使用，因为它相对易于实现和复现；已有研究用它来比较从 [Kubernetes](https://www.edgepedia.org/zh/kubernetes) 上的 Spark SQL、Hive、Drill 和 Trino 到张量处理器查询引擎的各种系统。<sup>[13](https://vldb.org/pvldb/vol13/p1206-dreseler.pdf)</sup><sup> • </sup><sup>[14](https://link.springer.com/article/10.1007/s10586-022-03718-9)</sup> 其数据各列相互独立且均匀分布，因此它考察的是连接算法、扫描吞吐量和基本优化器选择；它衡量多并发用户下的查询吞吐量，但并非为压测相关数据或半结构化数据上的基数估计而设计。<sup>[7](https://www.thedataengineering.com/mechanisms/measurement/how-it-works/standard-benchmarks)</sup><sup> • </sup><sup>[1](https://www.tpc.org/tpch/)</sup> TPC-DS 被设计为更复杂的后继者，拥有约 100 个查询模板和带偏斜数据的雪花模式，以覆盖更广泛的决策支持工作。<sup>[7](https://www.thedataengineering.com/mechanisms/measurement/how-it-works/standard-benchmarks)</sup><sup> • </sup><sup>[15](https://www.vldb.org/pvldb/vol14/p3376-ding.pdf)</sup>

官方结果由 TPC 审计并发布；近期的例子包括戴尔（Dell）的一项结果：5,489,326 QphH@1,000 GB，价格为 25.01 美元/kQphH@1,000 GB，于 2026 年 6 月更新；以及[阿里云](https://www.edgepedia.org/zh/alibaba-cloud)（Alibaba Cloud）的一项结果：8,443,627 QphH@3,000 GB，价格为 390.47 元人民币/kQphH@3,000 GB。<sup>[16](https://www.tpc.org/?lang=en)</sup> 厂商和开源项目也会在 TPC 的合理使用政策下运行派生工作负载，使用 TPC-H 查询但不完全合规；此类运行必须标注为“派生自 TPC-H”，且 TPC 禁止将其与官方结果进行比较。<sup>[17](https://github.com/apache/datafusion-benchmarks)</sup>

## References

1. [TPC-H Homepage, Transaction Processing Performance Council](https://tpc.org/tpch/)
2. [TPC Current Specs, Transaction Processing Performance Council](https://tpc.org/TPC_Documents_Current_Versions/current_specifications5.asp)
3. [TPC Benchmark H, Standard Specification Revision 2.17.1, Clause 2: Queries and Refresh Functions](https://www.tpc.org/tpc_documents_current_versions/pdf/tpc-h_v2.17.1.pdf)
4. [Decision Support Database Management, UPC thesis](https://upcommons.upc.edu/bitstream/handle/2099.1/13107/75404.pdf)
5. [TPC-H V3 Most Recently Published Results, TPC](https://www.tpc.org/tpch/results/tpch_last_ten_results5.asp?version=3)
6. [Transaction Processing Performance Council status report, November 1999](https://www.tpc.org/reports/status/bs-1999-11.asp)
7. [Why standard benchmarks exist, and what each stresses, The Data Engineering](https://www.thedataengineering.com/mechanisms/measurement/how-it-works/standard-benchmarks)
8. [Included Benchmarks, prestodb/pbench wiki](https://github-wiki-see.page/m/prestodb/pbench/wiki/Included-Benchmarks)
9. [TPC Benchmark H, Standard Specification Revision 2.18.0, Clause 5](https://gbasedbt.com/download/tpc-h/tpc-h_v2.18.0.pdf)
10. [History of the TPC, Transaction Processing Performance Council](https://www.tpc.org/information/about/history5.asp)
11. [New TPC Benchmarks for Decision Support, SIGMOD Record](https://sigmodrecord.org/?download_id=6060&smd_process_download=1)
12. [TPC Benchmark H, Standard Specification Revision 3.0.0](https://tpc.org/tpc_documents_current_versions/pdf/tpc-h_v3.0.0.pdf)
13. [Quantifying TPC-H Choke Points and Their Optimizations, PVLDB vol. 13](https://vldb.org/pvldb/vol13/p1206-dreseler.pdf)
14. [On the performance of SQL scalable systems on Kubernetes, Cluster Computing (2023)](https://link.springer.com/article/10.1007/s10586-022-03718-9)
15. [As the TPC-DS benchmark only generates static workloads with limited variations, PVLDB vol. 14](https://www.vldb.org/pvldb/vol14/p3376-ding.pdf)
16. [TPC Homepage, recent benchmark activities](https://www.tpc.org/?lang=en)
17. [Apache DataFusion Benchmarks, GitHub](https://github.com/apache/datafusion-benchmarks)

---
*Initially written Oct 26, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › 数据库与数据系统 › 数据库理论与数据建模

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/tpc-h

English original: https://www.edgepedia.org/tpc-h
