硕士学位论文
(工程硕士)
TPC-C数据库性能测试系统的
设计与实现
DESIGN AND IMPLEMENTATION OF THE TPC - C DATABASE PERFORMANCE
TEST SYSTEM
佟晓丹
2010年8月
国内图书分类号:TP311 学校代码:10213 国际图书分类号:621.3 密级:公开
工程硕士学位论文
TPC-C数据库性能测试系统的
设计与实现
硕士研究生:佟晓丹
导师:韩纪庆教授
副导师:吴娓娓高级工程师
申请学位:工程硕士
学科:软件工程
所在单位:软件学院
答辩日期:2010年8月
授予学位单位:哈尔滨工业大学
Classified Index: TP311
U.D.C: 621.3
Dissertation for the Master Degree in Software
Engineering
DESIGN AND IMPLEMENTATION OF THE TPC - C DATABASE PERFORMANCE
TEST SYSTEM
Candidate:Tong Xiaodan
Supervisor:Professor Han Jiqing
Vice Supervisor:Sr.Engineer Wu Weiwei Academic Degree Applied for:Master of Engineering Speciality:Software Engineering Affiliation:School of Software Engineering Date of Defence:August, 2010
Degree-Conferring-Institution:Harbin Institute of Technology
哈尔滨工业大学工程硕士学位论文
摘要
随着互联网技术的发展,以及数据库管理系统的日益成熟,无论在国外还是国内,都对数据库给予了高度的重视。而TPC-C就是TPC(Transaction Processing Performance Council简称:TPC)组织推出的在真实的环境下进行事物模拟来衡量数据库性能的国际标准。
中国软件评测中心产品测试部为了衡量数据库的性能,让用户不仅能看到实际性能,也能观察到系统的稳定性、可靠性等,故按照TPC-C规范搭建测试平台,编写测试程序,并进行了研究。
本文首先介绍了课题的来源和背景,研究目的和意义,国内外研究现状,以及本文的主要内容。然后根据系统的需求分析和非功能性的要求,给出系统的概要设计,将系统分为三层结构,被测服务器端装有数据库,实现数据层;服务器端使用WEB服务器和应用服务器实现业务逻辑层;远程终端模拟器模拟大量用户访问仓库的用户,实现表现层。根据数据流程的需求,将系统分为四个模块数据加载模块、调度模块、事务处理模块和结果统计模块,以及接口之间的关系。并且给出四个模块实现的概要设计。并分别对四个模块进行详细的设计与实现,重点介绍了事务处理模块中新订单事务、订购事务、发货事务、
trunc函数怎么样订单状态查询事务及库存状态查询事务五项事务处理的实现过程,最后将进行结果统计。事务处理将反映数据库的性能。
为了模拟规范中所需要的联机事务处理环境,使用联机事务处理应用环境模拟技术,自己搭建环境,建立服务器和客户端等,模拟用户在向服务器发送请求的过程,利用C#的网络编程技术实现这一要求。应用服务器启动后,发布TPC-C规范的五项对数据库操作的事务,选择通过OCI接口与数据库建立连接。为了满足各种事务最小混合比,采取分层抽样技术完成。
测试系统完成后生成测试报告,根据测试出来的结果进行分析,是否满足TPC-C规范的要求,并衡量数据库在搭建的测试环境下的性能。对TPC-C国际标准的研究和使用有助于数据库性能的提高,数据库厂商对数据库进一步的开发及完善有很大的指导意义。
关键词:TPC-C基准测试,数据加载,联机事务处理,结果统计
哈尔滨工业大学工程硕士学位论文
Abstract
Along with the development of Internet technology, and database management system,regardless of the growing sophistication of domestic and abroad or to pay more attention to the database.While TP
C-C is the TPC(Transaction Processing Performance is the Council abbreviation:TPC) organization in the real environment of simulated under the measure things database performance of international standards.
In order to measure the performance of database,product testing department of China Software Testing Center let users not only see actual performance,but also observe the stability of the system reliability,etc,in accordance with the TPC - C standard test platform building and testing procedures,writing,is studied.The first chapter introduces the subject: source and background,research purpose and meaning,the present research at home and abroad.And the main content of this article.According to the requirement analysis,system and nonfunctional requirements,after the outline design system are divided into three layers,system structure,measured by the server database,data layer with the server using Web server and application server achieve business logic layer,remote terminal user access to the warehouse of simulated users,realize the presentation layer.According to the data flow demand,the system can be divided into four modules data load module,scheduling module,transaction processing module and statistic results,and the relationship between the interfaces.And four modules realize the outline design.Emphatically introduced the transaction processing module,new orders for delivery order,state affairs and invent
ory of five transaction process,finally the statistics.The transaction will reflect the performance of database.
In order to simulate the required standard of online transaction processing environment,use the online transaction processing application environment simulation technology,build environment,establishing himself as server and client to the server,sends request users in the process of using c #,the network programming technology to realize the requirement.The application server startup,issued after the TPC - C standard five database for the operation,choose through
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论