共计 4170 个字符,预计需要花费 11 分钟才能阅读完成。
这篇文章主要讲解了“PostgreSQL 12 和 PostgreSQL 11 的 tpcc 有什么不同”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着丸趣 TV 小编的思路慢慢深入,一起来研究和学习“PostgreSQL 12 和 PostgreSQL 11 的 tpcc 有什么不同”吧!
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,差别不大。
感谢各位的阅读,以上就是“PostgreSQL 12 和 PostgreSQL 11 的 tpcc 有什么不同”的内容了,经过本文的学习后,相信大家对 PostgreSQL 12 和 PostgreSQL 11 的 tpcc 有什么不同这一问题有了更深刻的体会,具体使用情况还需要大家实践验证。这里是丸趣 TV,丸趣 TV 小编将为大家推送更多相关知识点的文章,欢迎关注!
正文完
发表至: 数据库
2023-07-26