fisco bcos caliper benchmark 结果实例

Posted 软件工程小施同学

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了fisco bcos caliper benchmark 结果实例相关的知识,希望对你有一定的参考价值。

shijianfeng@ubuntu:~/fisco/benchmarks$ npx caliper benchmark run --caliper-workspace caliper-benchmarks --caliper-benchconfig benchmarks/samples/fisco-bcos/helloworld/config.yaml  --caliper-networkconfig networks/fisco-bcos/4nodes1group/fisco-bcos.json
Benchmark for target Blockchain type fisco-bcos about to start
2021.05.05-20:28:57.395 info  [caliper] [benchmark-validator] 	No observer specified, will default to `none`
2021.05.05-20:28:57.396 info  [caliper] [caliper-flow] 	####### Caliper Test #######
2021.05.05-20:28:57.401 info  [caliper] [null-observer] 	Configured observer
2021.05.05-20:28:57.404 info  [caliper] [caliper-utils] 	Executing command: cd /home/shijianfeng/fisco/benchmarks/caliper-benchmarks;docker-compose -f networks/fisco-bcos/4nodes1group/docker-compose.yaml up -d; sleep 3s
Creating network "4nodes1group_default" with the default driver
Creating node0 ... done
Creating node1 ... done
Creating node2 ... done
Creating node3 ... done
2021.05.05-20:29:08.852 info  [caliper] [installSmartContract.js] 	Deploying smart contracts ...
2021.05.05-20:29:08.853 info  [caliper] [installSmartContract.js] 	Deploying helloworld ...
✔ Compiling /home/shijianfeng/fisco/benchmarks/caliper-benchmarks/src/fisco-bcos/helloworld/HelloWorld.sol ...
✔ Depolying HelloWorld.sol ...
2021.05.05-20:29:10.481 info  [caliper] [installSmartContract.js] 	Deployed smart contract helloworld, path=src/fisco-bcos/helloworld/HelloWorld.sol, address=0xfa353698093f6cffe643572fc6ec41d4c43dfed9
2021.05.05-20:29:10.481 info  [caliper] [installSmartContract.js] 	Deploying parallelok ...
✔ Compiling /home/shijianfeng/fisco/benchmarks/caliper-benchmarks/src/fisco-bcos/transfer/ParallelOk.sol ...
✔ Depolying ParallelOk.sol ...
2021.05.05-20:29:11.235 info  [caliper] [installSmartContract.js] 	Deployed smart contract parallelok, path=src/fisco-bcos/transfer/ParallelOk.sol, address=0xe6c542fd7919b00fd090fbd09641c25378ca6ac7
2021.05.05-20:29:11.236 info  [caliper] [installSmartContract.js] 	Deploying dagtransfer ...
2021.05.05-20:29:11.237 info  [caliper] [installSmartContract.js] 	Precompiled smart contract dagtransfer appointed, address=0x0000000000000000000000000000000000005002
2021.05.05-20:29:12.406 info  [caliper] [monitor-process] 	Starting process monitor with update interval 500 ms
2021.05.05-20:29:12.406 info  [caliper] [caliper-flow] 	Started monitors successfully
2021.05.05-20:29:12.407 info  [caliper] [defaultTest] 	####### Testing 'get' #######
2021.05.05-20:29:12.407 info  [caliper] [defaultTest] 	------ Test round 1 ------
2021.05.05-20:29:12.419 info  [caliper] [client.js] 	Launching client with PID 
2021.05.05-20:29:12.420 info  [caliper] [client.js] 	Waiting for 1 clients to be ready... 
2021.05.05-20:29:13.143 info  [caliper] [client.js] 	Client ready message received
2021.05.05-20:29:13.145 info  [caliper] [client.js] 	1 clients ready, starting test phase
2021.05.05-20:29:13.149 info  [caliper] [local-client.js] 	txUpdateTime: 1000
2021.05.05-20:29:13.156 info  [caliper] [local-client.js] 	Info: client 80162 init test : querying name
2021.05.05-20:29:14.159 info  [caliper] [local-client.js] 	Info: client 80162 start test runFixedNumber(): querying name
2021.05.05-20:29:24.407 info  [caliper] [report-builder] 	### Test result ###
2021.05.05-20:29:24.418 info  [caliper] [report-builder] 	
+------+-------+------+-----------------+-----------------+-----------------+-----------------+------------------+
| Name | Succ  | Fail | Send Rate (TPS) | Max Latency (s) | Min Latency (s) | Avg Latency (s) | Throughput (TPS) |
|------|-------|------|-----------------|-----------------|-----------------|-----------------|------------------|
| get  | 10000 | 0    | 1000.6          | 0.09            | 0.00            | 0.01            | 996.0            |
+------+-------+------+-----------------+-----------------+-----------------+-----------------+------------------+

2021.05.05-20:29:24.422 info  [caliper] [report-builder] 	### docker resource stats ###'
2021.05.05-20:29:24.424 info  [caliper] [report-builder] 	
+--------+-------+-------------+-------------+------------+------------+------------+-------------+-----------+------------+
| Type   | Name  | Memory(max) | Memory(avg) | CPU% (max) | CPU% (avg) | Traffic In | Traffic Out | Disc Read | Disc Write |
|--------|-------|-------------|-------------|------------|------------|------------|-------------|-----------|------------|
| Docker | node3 | 55.1MB      | 44.8MB      | 59.91      | 23.96      | 697.0KB    | 883.2KB     | 0B        | 31.1MB     |
|--------|-------|-------------|-------------|------------|------------|------------|-------------|-----------|------------|
| Docker | node2 | 52.4MB      | 44.6MB      | 52.10      | 22.83      | 718.8KB    | 909.3KB     | 0B        | 31.1MB     |
|--------|-------|-------------|-------------|------------|------------|------------|-------------|-----------|------------|
| Docker | node1 | 51.7MB      | 44.1MB      | 50.24      | 22.30      | 726.6KB    | 920.0KB     | 0B        | 31.1MB     |
|--------|-------|-------------|-------------|------------|------------|------------|-------------|-----------|------------|
| Docker | node0 | 52.2MB      | 44.6MB      | 51.69      | 23.03      | 719.9KB    | 914.8KB     | 0B        | 31.1MB     |
+--------+-------+-------------+-------------+------------+------------+------------+-------------+-----------+------------+

2021.05.05-20:29:24.425 info  [caliper] [report-builder] 	### process resource stats ###'
2021.05.05-20:29:24.426 info  [caliper] [report-builder] 	
+---------+------------------------------------+-------------+-------------+------------+------------+
| Type    | Name                               | Memory(max) | Memory(avg) | CPU% (max) | CPU% (avg) |
|---------|------------------------------------|-------------|-------------|------------|------------|
| Process | node fiscoBcosClientWorker.js(avg) | 107.8MB     | 99.9MB      | 96.97      | 53.44      |
+---------+------------------------------------+-------------+-------------+------------+------------+

2021.05.05-20:29:24.427 info  [caliper] [defaultTest] 	------ Passed 'get' testing ------
2021.05.05-20:29:24.427 info  [caliper] [defaultTest] 	Waiting 5 seconds for the next round...
2021.05.05-20:29:29.504 info  [caliper] [monitor-process] 	Starting process monitor with update interval 500 ms
2021.05.05-20:29:29.504 info  [caliper] [defaultTest] 	####### Testing 'set' #######
2021.05.05-20:29:29.504 info  [caliper] [defaultTest] 	------ Test round 2 ------
2021.05.05-20:29:29.506 info  [caliper] [client.js] 	Existing 1 clients will be reused in next test round... 
2021.05.05-20:29:29.508 info  [caliper] [local-client.js] 	txUpdateTime: 1000
2021.05.05-20:29:29.509 info  [caliper] [local-client.js] 	Info: client 80162 init test : setting name
2021.05.05-20:29:30.510 info  [caliper] [local-client.js] 	Info: client 80162 start test runFixedNumber(): setting name
2021.05.05-20:29:42.494 info  [caliper] [report-builder] 	### Test result ###
2021.05.05-20:29:42.498 info  [caliper] [report-builder] 	
+------+-------+------+-----------------+-----------------+-----------------+-----------------+------------------+
| Name | Succ  | Fail | Send Rate (TPS) | Max Latency (s) | Min Latency (s) | Avg Latency (s) | Throughput (TPS) |
|------|-------|------|-----------------|-----------------|-----------------|-----------------|------------------|
| set  | 10000 | 0    | 992.4           | 5.20            | 0.15            | 2.72            | 849.1            |
+------+-------+------+-----------------+-----------------+-----------------+-----------------+------------------+

2021.05.05-20:29:42.499 info  [caliper] [report-builder] 	### docker resource stats ###'
2021.05.05-20:29:42.504 info  [caliper] [report-builder] 	
+--------+-------+-------------+-------------+------------+------------+------------+-------------+-----------+------------+
| Type   | Name  | Memory(max) | Memory(avg) | CPU% (max) | CPU% (avg) | Traffic In | Traffic Out | Disc Read | Disc Write |
|--------|-------|-------------|-------------|------------|------------|------------|-------------|-----------|------------|
| Docker | node3 | 109.9MB     | 84.5MB      | 73.02      | 56.10      | 4.6MB      | 5.9MB       | 0B        | 9.0MB      |
|--------|-------|-------------|-------------|------------|------------|------------|-------------|-----------|------------|
| Docker | node2 | 108.2MB     | 84.3MB      | 80.96      | 52.70      | 4.4MB      | 6.1MB       | 0B        | 9.0MB      |
|--------|-------|-------------|-------------|------------|------------|------------|-------------|-----------|------------|
| Docker | node1 | 106.8MB     | 83.8MB      | 68.43      | 53.44      | 3.9MB      | 6.1MB       | 0B        | 9.0MB      |
|--------|-------|-------------|-------------|------------|------------|------------|-------------|-----------|------------|
| Docker | node0 | 110.0MB     | 85.3MB      | 74.29      | 55.25      | 4.5MB      | 6.0MB       | 0B        | 9.0MB      |
+--------+-------+-------------+-------------+------------+------------+------------+-------------+-----------+------------+

2021.05.05-20:29:42.505 info  [caliper] [report-builder] 	### process resource stats ###'
2021.05.05-20:29:42.507 info  [caliper] [report-builder] 	
+---------+------------------------------------+-------------+-------------+------------+------------+
| Type    | Name                               | Memory(max) | Memory(avg) | CPU% (max) | CPU% (avg) |
|---------|------------------------------------|-------------|-------------|------------|------------|
| Process | node fiscoBcosClientWorker.js(avg) | 179.2MB     | 143.3MB     | 107.55     | 74.71      |
+---------+------------------------------------+-------------+-------------+------------+------------+

2021.05.05-20:29:42.507 info  [caliper] [defaultTest] 	------ Passed 'set' testing ------
2021.05.05-20:29:42.507 info  [caliper] [caliper-flow] 	---------- Finished Test ----------

2021.05.05-20:29:42.507 info  [caliper] [report-builder] 	### All test results ###
2021.05.05-20:29:42.509 info  [caliper] [report-builder] 	
+------+-------+------+-----------------+-----------------+-----------------+-----------------+------------------+
| Name | Succ  | Fail | Send Rate (TPS) | Max Latency (s) | Min Latency (s) | Avg Latency (s) | Throughput (TPS) |
|------|-------|------|-----------------|-----------------|-----------------|-----------------|------------------|
| get  | 10000 | 0    | 1000.6          | 0.09            | 0.00            | 0.01            | 996.0            |
|------|-------|------|-----------------|-----------------|-----------------|-----------------|------------------|
| set  | 10000 | 0    | 992.4           | 5.20            | 0.15            | 2.72            | 849.1            |
+------+-------+------+-----------------+-----------------+-----------------+-----------------+------------------+

2021.05.05-20:29:42.727 info  [caliper] [caliper-flow] 	Generated report with path /home/shijianfeng/fisco/benchmarks/caliper-benchmarks/report.html
2021.05.05-20:29:42.728 info  [caliper] [caliper-flow] 	

#######################################
# Test summary: 2 succeeded, 0 failed #
#######################################

2021.05.05-20:29:42.728 info  [caliper] [caliper-utils] 	Executing command: cd /home/shijianfeng/fisco/benchmarks/caliper-benchmarks;docker-compose -f networks/fisco-bcos/4nodes1group/docker-compose.yaml down
2021.05.05-20:29:42.740 info  [caliper] [client.js] 	Client exited with code null
Stopping node3 ... done
Stopping node2 ... done
Stopping node1 ... done
Stopping node0 ... done
Removing node3 ... done
Removing node2 ... done
Removing node1 ... done
Removing node0 ... done
Removing network 4nodes1group_default
Benchmark run successful

Command succeeded

shijianfeng@ubuntu:~/fisco/benchmarks$

 

以上是关于fisco bcos caliper benchmark 结果实例的主要内容,如果未能解决你的问题,请参考以下文章

FISCO BCOS源码编译源码 获取FISCO BCOS可执行程序

FISCO BCOS 负载均衡

安装FISCO-BCOS的那些坑

FISCO-BCOS平台共识

FISCO BCOS 跨链WeCross ppt

FISCO BCOS 智能合约库 应用