ITPub博客

首页 > 数据库 > PostgreSQL > PostgreSQL DBA(125) - PG 12(TPCC)

PostgreSQL DBA(125) - PG 12(TPCC)

原创 PostgreSQL 作者:husthxd 时间:2019-11-11 15:37:33 0 删除 编辑

本节简单测试了PostgreSQL 12和PostgreSQL 11两个版本的tpcc,测试工具为benchmarksql 4.1.x,机器配置为4 Core,4G Memory,HDD。

PG 12
测试数据

./runSQL.sh props.pg sqlTableDrops
./runSQL.sh  props.pg sqlTableCreates
./runLoader.sh props.pg  numwarehouses 32
./runSQL.sh  props.pg sqlIndexCreates

运行结果

[pg12@localhost run]$ ./runBenchmark.sh props.pg
2019-11-11 15:10:24,697  INFO - Term-00, 
2019-11-11 15:10:24,697  INFO - Term-00, +-------------------------------------------------------------+
2019-11-11 15:10:24,697  INFO - Term-00,      BenchmarkSQL v4.1.1
2019-11-11 15:10:24,697  INFO - Term-00, +-------------------------------------------------------------+
2019-11-11 15:10:24,697  INFO - Term-00,  (c) 2003, Raul Barbosa
2019-11-11 15:10:24,697  INFO - Term-00,  (c) 2004-2016, Denis Lussier
2019-11-11 15:10:24,697  INFO - Term-00,  (c) 2016, Jan Wieck
2019-11-11 15:10:24,697  INFO - Term-00, +-------------------------------------------------------------+
2019-11-11 15:10:24,697  INFO - Term-00, 
2019-11-11 15:10:24,697  INFO - Term-00, driver=org.postgresql.Driver
2019-11-11 15:10:24,697  INFO - Term-00, conn=jdbc:postgresql://192.168.26.28:5432/benchmarkdb
2019-11-11 15:10:24,697  INFO - Term-00, user=pg12
2019-11-11 15:10:24,697  INFO - Term-00, 
2019-11-11 15:10:24,697  INFO - Term-00, warehouses=32
2019-11-11 15:10:24,697  INFO - Term-00, terminals=20
2019-11-11 15:10:24,697  INFO - Term-00, runMins=10
2019-11-11 15:10:24,698  INFO - Term-00, limitTxnsPerMin=0
2019-11-11 15:10:24,698  INFO - Term-00, 
2019-11-11 15:10:24,698  INFO - Term-00, newOrderWeight=45                               Term-00, Running Average t
2019-11-11 15:20:25,060  INFO - Term-00, 64444    Memory Usage: 40MB / 55MB                                        
2019-11-11 15:20:25,060  INFO - Term-00,                                                                           
2019-11-11 15:20:25,060  INFO - Term-00, Measured tpmC (NewOrders) = 7903.72                                       
2019-11-11 15:20:25,060  INFO - Term-00, Measured tpmTOTAL = 17589.51                                              
2019-11-11 15:20:25,060  INFO - Term-00, Session Start     = 2019-11-11 15:10:24                                   
2019-11-11 15:20:25,060  INFO - Term-00, Session End       = 2019-11-11 15:20:25                         
2019-11-11 15:20:25,060  INFO - Term-00, Transaction Count = 175956
[pg12@localhost run]$

PG 11
测试数据

./runSQL.sh props.pg sqlTableDrops
./runSQL.sh  props.pg sqlTableCreates
./runLoader.sh props.pg  numwarehouses 32
./runSQL.sh  props.pg sqlIndexCreates

运行结果

[xdb@localhost run]$ ./runBenchmark.sh props.pg
2019-11-11 15:29:26,945  INFO - Term-00, 
2019-11-11 15:29:26,946  INFO - Term-00, +-------------------------------------------------------------+
2019-11-11 15:29:26,946  INFO - Term-00,      BenchmarkSQL v4.1.1
2019-11-11 15:29:26,946  INFO - Term-00, +-------------------------------------------------------------+
2019-11-11 15:29:26,946  INFO - Term-00,  (c) 2003, Raul Barbosa
2019-11-11 15:29:26,946  INFO - Term-00,  (c) 2004-2016, Denis Lussier
2019-11-11 15:29:26,946  INFO - Term-00,  (c) 2016, Jan Wieck
2019-11-11 15:29:26,946  INFO - Term-00, +-------------------------------------------------------------+
2019-11-11 15:29:26,946  INFO - Term-00, 
2019-11-11 15:29:26,946  INFO - Term-00, driver=org.postgresql.Driver
2019-11-11 15:29:26,946  INFO - Term-00, conn=jdbc:postgresql://192.168.26.28:5433/benchmarkdb
2019-11-11 15:29:26,946  INFO - Term-00, user=xdb
2019-11-11 15:29:26,946  INFO - Term-00, 
2019-11-11 15:29:26,946  INFO - Term-00, warehouses=32
2019-11-11 15:29:26,946  INFO - Term-00, terminals=20
2019-11-11 15:29:26,946  INFO - Term-00, runMins=10
2019-11-11 15:29:26,946  INFO - Term-00, limitTxnsPerMin=0
2019-11-11 15:29:26,946  INFO - Term-00, 
2019-11-11 15:29:26,946  INFO - Term-00, newOrderWeight=45                               Term-00, Running Average t
2019-11-11 15:39:27,285  INFO - Term-00, 75628    Memory Usage: 43MB / 58MB                                        
2019-11-11 15:39:27,285  INFO - Term-00,                                                                           
2019-11-11 15:39:27,286  INFO - Term-00, Measured tpmC (NewOrders) = 8014.34                                       
2019-11-11 15:39:27,286  INFO - Term-00, Measured tpmTOTAL = 17795.79                                              
2019-11-11 15:39:27,286  INFO - Term-00, Session Start     = 2019-11-11 15:29:27                                   
2019-11-11 15:39:27,286  INFO - Term-00, Session End       = 2019-11-11 15:39:27                         
2019-11-11 15:39:27,286  INFO - Term-00, Transaction Count = 178018
[xdb@localhost run]$

PG 12 7903 vs PG 11 8014,差别不大。

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/6906/viewspace-2663491/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
ITPUB数据库版块资深版主,对Oracle、PostgreSQL有深入研究。

注册时间:2007-12-28

  • 博文量
    1434
  • 访问量
    3872084