当前位置: 首页 > news >正文

松岗做网站哪家便宜深圳投资公司实力排行榜

松岗做网站哪家便宜,深圳投资公司实力排行榜,成全视频在线观看免费高清版,如何建设英文网站前言:Hyperledger caliper 的本质是使用node对被测试网络进行压力测试,因此需要nodejs。本次使用 Hyperledger caliper 0.5 对 fabric 1.4.6进行压测 准备条件:nodejs 16 (略 linux下 解压环境变量即可) # 创建工作…

前言:Hyperledger  caliper 的本质是使用node对被测试网络进行压力测试,因此需要nodejs。本次使用 Hyperledger caliper 0.5 对 fabric 1.4.6进行压测

准备条件:nodejs 16 (略 linux下 解压+环境变量即可)

# 创建工作目录
mkdir /opt/fabric/caliper
# 进入工作目录
cd /opt/fabric/caliper
# 安装 caliper CLI, (如果慢 可以使用代理  sudo npm config set https-proxy http://172.16.10.34:7890)
npm install --only=prod @hyperledger/caliper-cli@0.5.0 
#绑定fabri
npx caliper bind --caliper-bind-sut fabric:1.4

配置文件(放在工作空间中:/root/fabric/caliper)

network-config.yaml (配置要测试的网络和组织信息)

name: Caliper Benchmarks
version: "2.0.0"caliper:blockchain: fabricchannels:# channelName of mychannel matches the name of the channel created by test network- channelName: channel1# the chaincodeIDs of all the fabric chaincodes in caliper-benchmarkscontracts:- id: ccmaporganizations:- mspid: Org1MSP# Identities come from cryptogen created material for test-networkidentities:certificates:- name: 'Admin'clientPrivateKey:path: '/opt/fabric/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/keystore/5ca88db427a2026c0c16fbba1bd17d9e596683f1fa7c8a9b412d88604b63e66d_sk'clientSignedCert:path: '/opt/fabric/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/signcerts/Admin@org1.example.com-cert.pem'connectionProfile:path: 'connection-org1.yaml'discover: true

connection-org1.yaml (配置组织的连接信息)

---
name: first-network-org1
version: 1.0.0
client:organization: Org1connection:timeout:peer:endorser: '300'
organizations:Org1:mspid: Org1MSPpeers:- peer0.org1.example.com
peers:peer0.org1.example.com:url: grpcs://localhost:7051tlsCACerts:path: /opt/fabric/crypto-config/peerOrganizations/org1.example.com/tlsca/tlsca.org1.example.com-cert.pemgrpcOptions:ssl-target-name-override: peer0.org1.example.com

benchmark-config.yaml (配置压力测试的参数)

test:workers:number: 5rounds:- label: Query map.txDuration: 30rateControl:type: fixed-loadopts:transactionLoad: 1000workload:module: workload/query.jsarguments:assets: 2

query.js (在子目录下,绝对路径为:/root/fabric/caliperworkload/query.js) 根据业务编写查询方法或插入方法

'use strict';const { WorkloadModuleBase } = require('@hyperledger/caliper-core');class QueryAssetWorkload extends WorkloadModuleBase {constructor() {super();}async initializeWorkloadModule(workerIndex, totalWorkers, roundIndex, roundArguments, sutAdapter, sutContext) {await super.initializeWorkloadModule(workerIndex, totalWorkers, roundIndex, roundArguments, sutAdapter, sutContext);}async submitTransaction() {await this.sutAdapter.sendRequests({contractId: 'ccmap',  // 你的链码名称contractFunction: 'query', // 查询方法contractArguments: ["a"],readOnly: true});}
} module.exports.createWorkloadModule = () => new QueryAssetWorkload();

执行

 npx caliper launch manager   --caliper-workspace .   --caliper-benchconfig /opt/fabric/caliper/benchmark-config.yaml   --caliper-networkconfig /opt/fabric/caliper/network-config.yaml  --caliper-flow-only-test --caliper-fabric-gateway-enabled

测试效果如下

http://www.yayakq.cn/news/29511/

相关文章:

  • 门户网站建设情况总结网络科技公司可以去吗
  • html购物网站代码免费自己开发app软件
  • 网站定制怎么选择网络运营和网络营销的区别
  • 招聘网站可以同时做两份简历吗6wordpress新闻类模板下载
  • 网站建设需要哪些材料简单地产网站怎么上
  • 荔浦火车站建设在哪里google 网站质量问题
  • 莱州网站建设服务天宁网站建设
  • 谷歌seo网站优化wordpress 重定向多
  • 一个网站放两个vps企业门户网站的意义
  • 淄博网站制作高端服务六安市程序
  • 百度爱采购网站官网网络下载的网站模板能直接上传到虚拟主机
  • dwcc2018怎么做网站上传网站模板建站
  • 科技公司 网站设计经典案例wordpress登陆界面修改
  • 岳池县网站建设html网页制作免费模板下载
  • 餐饮网站建设网站正规推广平台
  • 网站建设分工表项目建设的背景怎么写
  • 网站开发维护工作如何做网站网站代理
  • 班级网站建设规划书wordpress表格制作
  • 做网站时间公司网站的开发策略
  • 湛江h5建站制作页培训
  • 网站设计深圳联系电话?莱芜在线和莱芜都市网
  • 学习网站建设网站从零开始wordpress主题
  • 广州做网站 timhi做内衣的网站好
  • 坑梓做网站wordpress调用自定义分类标题
  • 石景山网站建设推广阜南做网站公司
  • 电商网站建设最好的公司企业网站设计制作
  • 深圳网站设计有限公司wordpress 关于页面
  • 上海海宏建设集团网站上海网站制作推广
  • 网站建设理论知识静态网站后台管理系统
  • 做网站要找什么人杭州网站建设公司推荐