【openGauss-benchmarksql5.1性能测试】

openGauss-benchmarksql5.1性能测试

【benchmarksql5.1版本已支持MySQL、openGauss数据库】

1.下载benchmarksql5.1

BenchmarkSQL5.1

[root@localhost ~]# git clone https://gitee.com/MapLover/benchmarksql5.1.git
Cloning into 'benchmarksql5.1'...
remote: Enumerating objects: 283, done.
remote: Counting objects: 100% (35/35), done.
remote: Compressing objects: 100% (33/33), done.
remote: Total 283 (delta 7), reused 0 (delta 0), pack-reused 248
Receiving objects: 100% (283/283), 9.41 MiB | 4.44 MiB/s, done.
Resolving deltas: 100% (127/127), done.
[root@localhost ~]# 

2.benchmarksql5.1目录说明

其中opengauss数据库有两种驱动

  1. driver=org.postgresql.Driver 对应 jar包为 postgresql.jar
  2. driver=org.opengauss.Driver对应 jar包为 opengauss-jdbc-5.0.0.jar
[root@localhost ~]# tree -d -L 3 benchmarksql5.1/
benchmarksql5.1/
├── dist ##BenchmarkSQL-5.1.jar 所在目录
├── doc
│   └── src
├── lib ## 不同数据库的jdbc驱动jar包
│   ├── firebird
│   ├── mysql
│   ├── openGauss
│   ├── oracle
│   └── postgres
├── run # 运行shell脚本和 不同数据库的建表sql
│   ├── misc
│   ├── sql.common
│   ├── sql.firebird
│   ├── sql.mysql
│   ├── sql.oracle
│   └── sql.postgres
└── src  ##JAVA 源码
    ├── client
    ├── jdbc
    ├── LoadData
    └── OSCollector

3.造数

[root@localhost run]# ./runDatabaseBuild.sh props.gs 
# ------------------------------------------------------------
# Loading SQL file ./sql.common/tableCreates.sql
# ------------------------------------------------------------
Dec 26, 2023 8:57:27 AM org.opengauss.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [8c80e172-db2e-4e1e-a0b2-1e084368dc60] Try to connect. IP: 127.0.0.1:7654
Dec 26, 2023 8:57:27 AM org.opengauss.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [127.0.0.1:40706/127.0.0.1:7654] Connection is established. ID: 8c80e172-db2e-4e1e-a0b2-1e084368dc60
Dec 26, 2023 8:57:27 AM org.opengauss.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: Connect complete. ID: 8c80e172-db2e-4e1e-a0b2-1e084368dc60
create table bmsql_config (
cfg_name    varchar(30) primary key,
cfg_value   varchar(50)
);
create table bmsql_warehouse (
w_id        integer   not null,
w_ytd       decimal(12,2),
w_tax       decimal(4,4),
w_name      varchar(10),
w_street_1  varchar(20),
w_street_2  varchar(20),
w_city      varchar(20),
w_state     char(2),
w_zip       char(9)
);
create table bmsql_district (
d_w_id       integer       not null,
d_id         integer       not null,
d_ytd        decimal(12,2),
d_tax        decimal(4,4),
d_next_o_id  integer,
d_name       varchar(10),
d_street_1   varchar(20),
d_street_2   varchar(20),
d_city       varchar(20),
d_state      char(2),
d_zip        char(9)
);
create table bmsql_customer (
c_w_id         integer        not null,
c_d_id         integer        not null,
c_id           integer        not null,
c_discount     decimal(4,4),
c_credit       char(2),
c_last         varchar(16),
c_first        varchar(16),
c_credit_lim   decimal(12,2),
c_balance      decimal(12,2),
c_ytd_payment  decimal(12,2),
c_payment_cnt  integer,
c_delivery_cnt integer,
c_street_1     varchar(20),
c_street_2     varchar(20),
c_city         varchar(20),
c_state        char(2),
c_zip          char(9),
c_phone        char(16),
c_since        timestamp,
c_middle       char(2),
c_data         varchar(500)
);
create sequence bmsql_hist_id_seq;
create table bmsql_history (
hist_id  integer,
h_c_id   integer,
h_c_d_id integer,
h_c_w_id integer,
h_d_id   integer,
h_w_id   integer,
h_date   timestamp,
h_amount decimal(6,2),
h_data   varchar(24)
);
create table bmsql_new_order (
no_w_id  integer   not null,
no_d_id  integer   not null,
no_o_id  integer   not null
);
create table bmsql_oorder (
o_w_id       integer      not null,
o_d_id       integer      not null,
o_id         integer      not null,
o_c_id       integer,
o_carrier_id integer,
o_ol_cnt     integer,
o_all_local  integer,
o_entry_d    timestamp
);
create table bmsql_order_line (
ol_w_id         integer   not null,
ol_d_id         integer   not null,
ol_o_id         integer   not null,
ol_number       integer   not null,
ol_i_id         integer   not null,
ol_delivery_d   timestamp,
ol_amount       decimal(6,2),
ol_supply_w_id  integer,
ol_quantity     integer,
ol_dist_info    char(24)
);
create table bmsql_item (
i_id     integer      not null,
i_name   varchar(24),
i_price  decimal(5,2),
i_data   varchar(50),
i_im_id  integer
);
create table bmsql_stock (
s_w_id       integer       not null,
s_i_id       integer       not null,
s_quantity   integer,
s_ytd        integer,
s_order_cnt  integer,
s_remote_cnt integer,
s_data       varchar(50),
s_dist_01    char(24),
s_dist_02    char(24),
s_dist_03    char(24),
s_dist_04    char(24),
s_dist_05    char(24),
s_dist_06    char(24),
s_dist_07    char(24),
s_dist_08    char(24),
s_dist_09    char(24),
s_dist_10    char(24)
);
Tue Dec 26 08:57:27 AM CST 2023 -- start Load Data...
Starting BenchmarkSQL LoadData

driver=org.opengauss.Driver
conn=jdbc:opengauss://127.0.0.1:7654/tpcc
user=tpcc
password=***********
warehouses=10
loadWorkers=4
fileLocation (not defined)
csvNullValue (not defined - using default 'NULL')

Dec 26, 2023 8:57:28 AM org.opengauss.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [0550455e-46b0-4935-8a50-8c122c1dbc1b] Try to connect. IP: 127.0.0.1:7654
Dec 26, 2023 8:57:28 AM org.opengauss.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [127.0.0.1:40716/127.0.0.1:7654] Connection is established. ID: 0550455e-46b0-4935-8a50-8c122c1dbc1b
Dec 26, 2023 8:57:28 AM org.opengauss.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: Connect complete. ID: 0550455e-46b0-4935-8a50-8c122c1dbc1b
Dec 26, 2023 8:57:28 AM org.opengauss.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [42bc8d1d-72a6-4ec3-bc05-021afeca62ab] Try to connect. IP: 127.0.0.1:7654
Worker 000: Loading ITEM
Dec 26, 2023 8:57:28 AM org.opengauss.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [127.0.0.1:40732/127.0.0.1:7654] Connection is established. ID: 42bc8d1d-72a6-4ec3-bc05-021afeca62ab
Dec 26, 2023 8:57:28 AM org.opengauss.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: Connect complete. ID: 42bc8d1d-72a6-4ec3-bc05-021afeca62ab
Dec 26, 2023 8:57:28 AM org.opengauss.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [95e1d878-bca3-45f7-aa65-97dec57d07a1] Try to connect. IP: 127.0.0.1:7654
Worker 001: Loading Warehouse      1
Dec 26, 2023 8:57:28 AM org.opengauss.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [127.0.0.1:40742/127.0.0.1:7654] Connection is established. ID: 95e1d878-bca3-45f7-aa65-97dec57d07a1
Dec 26, 2023 8:57:28 AM org.opengauss.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: Connect complete. ID: 95e1d878-bca3-45f7-aa65-97dec57d07a1
Dec 26, 2023 8:57:28 AM org.opengauss.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [729518a5-2d40-4fb3-9ece-e37781805d92] Try to connect. IP: 127.0.0.1:7654
Worker 002: Loading Warehouse      2
Dec 26, 2023 8:57:28 AM org.opengauss.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [127.0.0.1:40752/127.0.0.1:7654] Connection is established. ID: 729518a5-2d40-4fb3-9ece-e37781805d92
Dec 26, 2023 8:57:28 AM org.opengauss.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: Connect complete. ID: 729518a5-2d40-4fb3-9ece-e37781805d92
Worker 003: Loading Warehouse      3
Worker 000: Loading ITEM done
Worker 000: Loading Warehouse      4
Worker 003: Loading Warehouse      3 done
Worker 003: Loading Warehouse      5
Worker 001: Loading Warehouse      1 done
Worker 001: Loading Warehouse      6
Worker 002: Loading Warehouse      2 done
Worker 002: Loading Warehouse      7
Worker 000: Loading Warehouse      4 done
Worker 000: Loading Warehouse      8
Worker 003: Loading Warehouse      5 done
Worker 003: Loading Warehouse      9
Worker 001: Loading Warehouse      6 done
Worker 001: Loading Warehouse     10
Worker 002: Loading Warehouse      7 done
Worker 000: Loading Warehouse      8 done
Worker 003: Loading Warehouse      9 done
Worker 001: Loading Warehouse     10 done
# ------------------------------------------------------------
# Loading SQL file ./sql.common/indexCreates.sql
# ------------------------------------------------------------
Dec 26, 2023 8:58:14 AM org.opengauss.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [fda4422b-bd9d-44a2-95c8-584f9fa683f3] Try to connect. IP: 127.0.0.1:7654
Dec 26, 2023 8:58:14 AM org.opengauss.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [127.0.0.1:49670/127.0.0.1:7654] Connection is established. ID: fda4422b-bd9d-44a2-95c8-584f9fa683f3
Dec 26, 2023 8:58:14 AM org.opengauss.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: Connect complete. ID: fda4422b-bd9d-44a2-95c8-584f9fa683f3
alter table bmsql_warehouse add constraint bmsql_warehouse_pkey
primary key (w_id);
alter table bmsql_district add constraint bmsql_district_pkey
primary key (d_w_id, d_id);
alter table bmsql_customer add constraint bmsql_customer_pkey
primary key (c_w_id, c_d_id, c_id);
create index bmsql_customer_idx1
on  bmsql_customer (c_w_id, c_d_id, c_last, c_first);
alter table bmsql_oorder add constraint bmsql_oorder_pkey
primary key (o_w_id, o_d_id, o_id);
create unique index bmsql_oorder_idx1
on  bmsql_oorder (o_w_id, o_d_id, o_carrier_id, o_id);
alter table bmsql_new_order add constraint bmsql_new_order_pkey
primary key (no_w_id, no_d_id, no_o_id);
alter table bmsql_order_line add constraint bmsql_order_line_pkey
primary key (ol_w_id, ol_d_id, ol_o_id, ol_number);
alter table bmsql_stock add constraint bmsql_stock_pkey
primary key (s_w_id, s_i_id);
alter table bmsql_item add constraint bmsql_item_pkey
primary key (i_id);
# ------------------------------------------------------------
# Loading SQL file ./sql.common/foreignKeys.sql
# ------------------------------------------------------------
Dec 26, 2023 8:58:30 AM org.opengauss.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [d10a3bbf-78a4-49c5-81ec-2706c612a55c] Try to connect. IP: 127.0.0.1:7654
Dec 26, 2023 8:58:30 AM org.opengauss.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [127.0.0.1:46696/127.0.0.1:7654] Connection is established. ID: d10a3bbf-78a4-49c5-81ec-2706c612a55c
Dec 26, 2023 8:58:30 AM org.opengauss.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: Connect complete. ID: d10a3bbf-78a4-49c5-81ec-2706c612a55c
alter table bmsql_district add constraint d_warehouse_fkey
foreign key (d_w_id)
references bmsql_warehouse (w_id);
alter table bmsql_customer add constraint c_district_fkey
foreign key (c_w_id, c_d_id)
references bmsql_district (d_w_id, d_id);
alter table bmsql_history add constraint h_customer_fkey
foreign key (h_c_w_id, h_c_d_id, h_c_id)
references bmsql_customer (c_w_id, c_d_id, c_id);
alter table bmsql_history add constraint h_district_fkey
foreign key (h_w_id, h_d_id)
references bmsql_district (d_w_id, d_id);
alter table bmsql_new_order add constraint no_order_fkey
foreign key (no_w_id, no_d_id, no_o_id)
references bmsql_oorder (o_w_id, o_d_id, o_id);
alter table bmsql_oorder add constraint o_customer_fkey
foreign key (o_w_id, o_d_id, o_c_id)
references bmsql_customer (c_w_id, c_d_id, c_id);
alter table bmsql_order_line add constraint ol_order_fkey
foreign key (ol_w_id, ol_d_id, ol_o_id)
references bmsql_oorder (o_w_id, o_d_id, o_id);
alter table bmsql_order_line add constraint ol_stock_fkey
foreign key (ol_supply_w_id, ol_i_id)
references bmsql_stock (s_w_id, s_i_id);
alter table bmsql_stock add constraint s_warehouse_fkey
foreign key (s_w_id)
references bmsql_warehouse (w_id);
alter table bmsql_stock add constraint s_item_fkey
foreign key (s_i_id)
references bmsql_item (i_id);
# ------------------------------------------------------------
# Loading SQL file ./sql.common/buildFinish.sql
# ------------------------------------------------------------
Dec 26, 2023 8:58:37 AM org.opengauss.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [a48c0db9-715d-4217-98d8-e475d9d70c2b] Try to connect. IP: 127.0.0.1:7654
Dec 26, 2023 8:58:37 AM org.opengauss.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [127.0.0.1:38128/127.0.0.1:7654] Connection is established. ID: a48c0db9-715d-4217-98d8-e475d9d70c2b
Dec 26, 2023 8:58:37 AM org.opengauss.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: Connect complete. ID: a48c0db9-715d-4217-98d8-e475d9d70c2b
-- ----
-- Extra commands to run after the tables are created, loaded,
-- indexes built and extra's created.
-- ----
Tue Dec 26 08:58:37 AM CST 2023 -- End Load Data...
20231226-08:57:27 ---> 20231226-08:58:37 Total:70 seconds
[root@localhost run]# 

4.执行benchmark测试 driver=org.opengauss.Driver

[root@localhost run]# ./runBenchmark.sh props.gs 
2023-12-26 08:58:59: 
2023-12-26 08:58:59: +-------------------------------------------------------------+
2023-12-26 08:58:59:      BenchmarkSQL v5.1
2023-12-26 08:58:59: +-------------------------------------------------------------+
2023-12-26 08:58:59:  (c) 2003, Raul Barbosa
2023-12-26 08:58:59:  (c) 2004-2016, Denis Lussier
2023-12-26 08:58:59:  (c) 2016, Jan Wieck
2023-12-26 08:58:59:  (c) 2023, MapLover
2023-12-26 08:58:59: +-------------------------------------------------------------+
2023-12-26 08:58:59: 
2023-12-26 08:58:59: db=openGauss
2023-12-26 08:58:59: driver=org.opengauss.Driver
2023-12-26 08:58:59: conn=jdbc:opengauss://127.0.0.1:7654/tpcc
2023-12-26 08:58:59: user=tpcc
2023-12-26 08:58:59: 
2023-12-26 08:58:59: warehouses=10
2023-12-26 08:58:59: terminals=10
2023-12-26 08:58:59: runMins=3
2023-12-26 08:58:59: limitTxnsPerMin=100000000
2023-12-26 08:58:59: terminalWarehouseFixed=true
2023-12-26 08:58:59: 
2023-12-26 08:58:59: newOrderWeight=45
2023-12-26 08:58:59: paymentWeight=43
2023-12-26 08:58:59: orderStatusWeight=4
2023-12-26 08:58:59: deliveryWeight=4
2023-12-26 08:58:59: stockLevelWeight=4
2023-12-26 08:58:59: 
2023-12-26 08:58:59: resultDirectory=null
2023-12-26 08:58:59: osCollectorScript=null
2023-12-26 08:58:59: 
Dec 26, 2023 8:58:59 AM org.opengauss.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [7b9077d9-3cce-43fa-bf6d-2826e00c1c1c] Try to connect. IP: 127.0.0.1:7654
Dec 26, 2023 8:58:59 AM org.opengauss.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [127.0.0.1:53698/127.0.0.1:7654] Connection is established. ID: 7b9077d9-3cce-43fa-bf6d-2826e00c1c1c
Dec 26, 2023 8:58:59 AM org.opengauss.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: Connect complete. ID: 7b9077d9-3cce-43fa-bf6d-2826e00c1c1c
2023-12-26 08:58:59: C value for C_LAST during load: 93
2023-12-26 08:58:59: C value for C_LAST this run:    211
2023-12-26 08:58:59: 
Dec 26, 2023 8:58:59 AM org.opengauss.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [7388908a-f717-420f-897c-bd97cc26df55] Try to connect. IP: 127.0.0.1:7654
Dec 26, 2023 8:58:59 AM org.opengauss.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [127.0.0.1:53702/127.0.0.1:7654] Connection is established. ID: 7388908a-f717-420f-897c-bd97cc26df55
Dec 26, 2023 8:58:59 AM org.opengauss.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: Connect complete. ID: 7388908a-f717-420f-897c-bd97cc26df55
Dec 26, 2023 8:58:59 AM org.opengauss.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [9babf24d-798b-4507-ae77-54389403c9b0] Try to connect. IP: 127.0.0.1:7654
Dec 26, 2023 8:58:59 AM org.opengauss.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [127.0.0.1:53706/127.0.0.1:7654] Connection is established. ID: 9babf24d-798b-4507-ae77-54389403c9b0
Dec 26, 2023 8:58:59 AM org.opengauss.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: Connect complete. ID: 9babf24d-798b-4507-ae77-54389403c9b0
Dec 26, 2023 8:58:59 AM org.opengauss.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [97ac134d-8fc8-4196-85d1-34d37d67bb22] Try to connect. IP: 127.0.0.1:7654
Dec 26, 2023 8:58:59 AM org.opengauss.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [127.0.0.1:53716/127.0.0.1:7654] Connection is established. ID: 97ac134d-8fc8-4196-85d1-34d37d67bb22
Dec 26, 2023 8:58:59 AM org.opengauss.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: Connect complete. ID: 97ac134d-8fc8-4196-85d1-34d37d67bb22
Dec 26, 2023 8:58:59 AM org.opengauss.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [a8bf4fb2-0882-413d-aa11-8e808e7f1da6] Try to connect. IP: 127.0.0.1:7654
Dec 26, 2023 8:58:59 AM org.opengauss.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [127.0.0.1:53732/127.0.0.1:7654] Connection is established. ID: a8bf4fb2-0882-413d-aa11-8e808e7f1da6
Dec 26, 2023 8:58:59 AM org.opengauss.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: Connect complete. ID: a8bf4fb2-0882-413d-aa11-8e808e7f1da6
Dec 26, 2023 8:58:59 AM org.opengauss.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [8b5c6e62-a570-40ed-8978-59180131306f] Try to connect. IP: 127.0.0.1:7654
Dec 26, 2023 8:58:59 AM org.opengauss.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [127.0.0.1:53748/127.0.0.1:7654] Connection is established. ID: 8b5c6e62-a570-40ed-8978-59180131306f
Dec 26, 2023 8:58:59 AM org.opengauss.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: Connect complete. ID: 8b5c6e62-a570-40ed-8978-59180131306f
Dec 26, 2023 8:58:59 AM org.opengauss.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [c2e1daa5-4aac-45c1-858a-5b94e2986b0b] Try to connect. IP: 127.0.0.1:7654
Dec 26, 2023 8:58:59 AM org.opengauss.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [127.0.0.1:53764/127.0.0.1:7654] Connection is established. ID: c2e1daa5-4aac-45c1-858a-5b94e2986b0b
Dec 26, 2023 8:58:59 AM org.opengauss.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: Connect complete. ID: c2e1daa5-4aac-45c1-858a-5b94e2986b0b
Dec 26, 2023 8:58:59 AM org.opengauss.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [0ae025e2-c0c4-4e34-a9bd-c4c030765cef] Try to connect. IP: 127.0.0.1:7654
Dec 26, 2023 8:58:59 AM org.opengauss.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [127.0.0.1:53774/127.0.0.1:7654] Connection is established. ID: 0ae025e2-c0c4-4e34-a9bd-c4c030765cef
Dec 26, 2023 8:58:59 AM org.opengauss.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: Connect complete. ID: 0ae025e2-c0c4-4e34-a9bd-c4c030765cef
Dec 26, 2023 8:58:59 AM org.opengauss.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [671d83f4-7dd2-4122-96bc-bcd4c19f016c] Try to connect. IP: 127.0.0.1:7654
Dec 26, 2023 8:58:59 AM org.opengauss.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [127.0.0.1:53780/127.0.0.1:7654] Connection is established. ID: 671d83f4-7dd2-4122-96bc-bcd4c19f016c
Dec 26, 2023 8:58:59 AM org.opengauss.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: Connect complete. ID: 671d83f4-7dd2-4122-96bc-bcd4c19f016c
Dec 26, 2023 8:58:59 AM org.opengauss.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [d7239d8f-fcd7-4652-9a41-eebdac6d54b1] Try to connect. IP: 127.0.0.1:7654
Dec 26, 2023 8:58:59 AM org.opengauss.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [127.0.0.1:53788/127.0.0.1:7654] Connection is established. ID: d7239d8f-fcd7-4652-9a41-eebdac6d54b1
Dec 26, 2023 8:58:59 AM org.opengauss.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: Connect complete. ID: d7239d8f-fcd7-4652-9a41-eebdac6d54b1
Dec 26, 2023 8:58:59 AM org.opengauss.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [aeb256f5-788a-424a-b19b-aa46dd6a11c0] Try to connect. IP: 127.0.0.1:7654
Dec 26, 2023 8:58:59 AM org.opengauss.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [127.0.0.1:53802/127.0.0.1:7654] Connection is established. ID: aeb256f5-788a-424a-b19b-aa46dd6a11c0
Dec 26, 2023 8:58:59 AM org.opengauss.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: Connect complete. ID: aeb256f5-788a-424a-b19b-aa46dd6a11c0
2023-12-26 09:02:00: Measured tpmC (NewOrders) = 11028.22
2023-12-26 09:02:00: Measured tpmTOTAL = 24399.37
2023-12-26 09:02:00: Session Start     = 2023-12-26 08:58:59
2023-12-26 09:02:00: Session End       = 2023-12-26 09:02:00
2023-12-26 09:02:00: Transaction Count = 73470
2023-12-26 09:02:00: TPCC_RPT=[jdbc:opengauss://127.0.0.1:7654/tpcc]>10W>10T>3M: 	11028.22
[root@localhost run]# 

5.执行benchmark测试 driver=org.postgresql.Driver

[root@ecs-x86-14 run]# ./runBenchmark.sh props.gs 
2023-12-26 19:47:37: 
2023-12-26 19:47:37: +-------------------------------------------------------------+
2023-12-26 19:47:37:      BenchmarkSQL v5.1
2023-12-26 19:47:37: +-------------------------------------------------------------+
2023-12-26 19:47:37:  (c) 2003, Raul Barbosa
2023-12-26 19:47:37:  (c) 2004-2016, Denis Lussier
2023-12-26 19:47:37:  (c) 2016, Jan Wieck
2023-12-26 19:47:37:  (c) 2023, MapLover
2023-12-26 19:47:37: +-------------------------------------------------------------+
2023-12-26 19:47:37: 
2023-12-26 19:47:37: db=openGauss
2023-12-26 19:47:37: driver=org.postgresql.Driver
2023-12-26 19:47:37: conn=jdbc:postgresql://192.168.1.12:5432/tpcc
2023-12-26 19:47:37: user=tpcc
2023-12-26 19:47:37: 
2023-12-26 19:47:37: warehouses=10
2023-12-26 19:47:37: terminals=10
2023-12-26 19:47:37: runMins=3
2023-12-26 19:47:37: limitTxnsPerMin=100000000
2023-12-26 19:47:37: terminalWarehouseFixed=true
2023-12-26 19:47:37: 
2023-12-26 19:47:37: newOrderWeight=45
2023-12-26 19:47:37: paymentWeight=43
2023-12-26 19:47:37: orderStatusWeight=4
2023-12-26 19:47:37: deliveryWeight=4
2023-12-26 19:47:37: stockLevelWeight=4
2023-12-26 19:47:37: 
2023-12-26 19:47:37: resultDirectory=null
2023-12-26 19:47:37: osCollectorScript=null
2023-12-26 19:47:37: 
Dec 26, 2023 7:47:37 PM org.postgresql.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [83dd94fb-8fef-45bd-a06e-f904d0483d15] Try to connect. IP: 192.168.1.12:5432
Dec 26, 2023 7:47:37 PM org.postgresql.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [192.168.1.14:47318/192.168.1.12:5432] Connection is established. ID: 83dd94fb-8fef-45bd-a06e-f904d0483d15
Dec 26, 2023 7:47:37 PM org.postgresql.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: Connect complete. ID: 83dd94fb-8fef-45bd-a06e-f904d0483d15
2023-12-26 19:47:37: C value for C_LAST during load: 192
2023-12-26 19:47:37: C value for C_LAST this run:    105
2023-12-26 19:47:37: 
Running Average tpmTOTAL: 0.00    Current tpmTOTAL: 0    Memory Usage: 23MB / 481MB          
Dec 26, 2023 7:47:37 PM org.postgresql.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [91edee69-bb65-4d15-9f7b-868f2e3cd38b] Try to connect. IP: 192.168.1.12:5432
Dec 26, 2023 7:47:37 PM org.postgresql.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [192.168.1.14:47320/192.168.1.12:5432] Connection is established. ID: 91edee69-bb65-4d15-9f7b-868f2e3cd38b
Dec 26, 2023 7:47:37 PM org.postgresql.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: Connect complete. ID: 91edee69-bb65-4d15-9f7b-868f2e3cd38b
Dec 26, 2023 7:47:37 PM org.postgresql.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [68ac74e1-7d77-41dd-88dd-dd01efe17c11] Try to connect. IP: 192.168.1.12:5432
Dec 26, 2023 7:47:37 PM org.postgresql.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [192.168.1.14:47322/192.168.1.12:5432] Connection is established. ID: 68ac74e1-7d77-41dd-88dd-dd01efe17c11
Dec 26, 2023 7:47:37 PM org.postgresql.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: Connect complete. ID: 68ac74e1-7d77-41dd-88dd-dd01efe17c11
Dec 26, 2023 7:47:37 PM org.postgresql.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [c3e6432c-7281-4a79-aa4b-995ee0dc84ab] Try to connect. IP: 192.168.1.12:5432
Dec 26, 2023 7:47:37 PM org.postgresql.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [192.168.1.14:47324/192.168.1.12:5432] Connection is established. ID: c3e6432c-7281-4a79-aa4b-995ee0dc84ab
Dec 26, 2023 7:47:37 PM org.postgresql.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: Connect complete. ID: c3e6432c-7281-4a79-aa4b-995ee0dc84ab
Dec 26, 2023 7:47:37 PM org.postgresql.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [13bd6810-3166-481d-9661-317f1b5ac28b] Try to connect. IP: 192.168.1.12:5432
Dec 26, 2023 7:47:37 PM org.postgresql.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [192.168.1.14:47326/192.168.1.12:5432] Connection is established. ID: 13bd6810-3166-481d-9661-317f1b5ac28b
Dec 26, 2023 7:47:37 PM org.postgresql.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: Connect complete. ID: 13bd6810-3166-481d-9661-317f1b5ac28b
Dec 26, 2023 7:47:37 PM org.postgresql.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [5b9bc2e2-9921-4a0d-b5fa-fa5bfbcedc4e] Try to connect. IP: 192.168.1.12:5432
Dec 26, 2023 7:47:37 PM org.postgresql.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [192.168.1.14:47328/192.168.1.12:5432] Connection is established. ID: 5b9bc2e2-9921-4a0d-b5fa-fa5bfbcedc4e
Dec 26, 2023 7:47:37 PM org.postgresql.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: Connect complete. ID: 5b9bc2e2-9921-4a0d-b5fa-fa5bfbcedc4e
Dec 26, 2023 7:47:37 PM org.postgresql.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [d7546615-1cce-480f-9a93-2324518c2c2f] Try to connect. IP: 192.168.1.12:5432
Dec 26, 2023 7:47:37 PM org.postgresql.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [192.168.1.14:47330/192.168.1.12:5432] Connection is established. ID: d7546615-1cce-480f-9a93-2324518c2c2f
Dec 26, 2023 7:47:37 PM org.postgresql.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: Connect complete. ID: d7546615-1cce-480f-9a93-2324518c2c2f
Dec 26, 2023 7:47:37 PM org.postgresql.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [1467c179-01e3-415f-8585-3b520d34e5c8] Try to connect. IP: 192.168.1.12:5432
Dec 26, 2023 7:47:37 PM org.postgresql.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [192.168.1.14:47332/192.168.1.12:5432] Connection is established. ID: 1467c179-01e3-415f-8585-3b520d34e5c8
Dec 26, 2023 7:47:37 PM org.postgresql.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: Connect complete. ID: 1467c179-01e3-415f-8585-3b520d34e5c8
Dec 26, 2023 7:47:37 PM org.postgresql.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [190b33e4-b90f-4961-8340-737bcea8f8ec] Try to connect. IP: 192.168.1.12:5432
Dec 26, 2023 7:47:37 PM org.postgresql.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [192.168.1.14:47334/192.168.1.12:5432] Connection is established. ID: 190b33e4-b90f-4961-8340-737bcea8f8ec
Dec 26, 2023 7:47:37 PM org.postgresql.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: Connect complete. ID: 190b33e4-b90f-4961-8340-737bcea8f8ec
Dec 26, 2023 7:47:37 PM org.postgresql.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [4eb0cbb1-856d-4227-b82e-4c9efedf4773] Try to connect. IP: 192.168.1.12:5432
Dec 26, 2023 7:47:37 PM org.postgresql.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [192.168.1.14:47336/192.168.1.12:5432] Connection is established. ID: 4eb0cbb1-856d-4227-b82e-4c9efedf4773
Dec 26, 2023 7:47:37 PM org.postgresql.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: Connect complete. ID: 4eb0cbb1-856d-4227-b82e-4c9efedf4773
Dec 26, 2023 7:47:37 PM org.postgresql.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [76a58110-7cdb-48f6-b8b5-4ea07dd336d0] Try to connect. IP: 192.168.1.12:5432
Dec 26, 2023 7:47:37 PM org.postgresql.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: [192.168.1.14:47338/192.168.1.12:5432] Connection is established. ID: 76a58110-7cdb-48f6-b8b5-4ea07dd336d0
Dec 26, 2023 7:47:37 PM org.postgresql.core.v3.ConnectionFactoryImpl openConnectionImpl
INFO: Connect complete. ID: 76a58110-7cdb-48f6-b8b5-4ea07dd336d0
Running Average tpmTOTAL: 30000.00    Current tpmTOTAL: 12    Memory Usage: 50MB / 481MB          
Running Average tpmTOTAL: 72367.58    Current tpmTOTAL: 434220    Memory Usage: 32MB / 396MB          
Running Average tpmTOTAL: 72847.57    Current tpmTOTAL: 677184    Memory Usage: 38MB / 376MB          
Running Average tpmTOTAL: 73093.85    Current tpmTOTAL: 920532    Memory Usage: 33MB / 376MB          
Running Average tpmTOTAL: 73091.78    Current tpmTOTAL: 1160460    Memory Usage: 24MB / 376MB          
Running Average tpmTOTAL: 73191.51    Current tpmTOTAL: 1404252    Memory Usage: 59MB / 376MB          
Running Average tpmTOTAL: 73135.85    Current tpmTOTAL: 1644648    Memory Usage: 58MB / 376MB          
2023-12-26 19:50:37: Measured tpmC (NewOrders) = 32904.78
2023-12-26 19:50:37: Measured tpmTOTAL = 73125.85
2023-12-26 19:50:37: Session Start     = 2023-12-26 19:47:37
2023-12-26 19:50:37: Session End       = 2023-12-26 19:50:37
2023-12-26 19:50:37: Transaction Count = 219418
2023-12-26 19:50:37: TPCC_RPT=[jdbc:postgresql://192.168.1.12:5432/tpcc]>10W>10T>3M: 	32904.78

  • 8
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值