atlab-fabricfaster

module
v0.0.0-...-903d01c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2020 License: Apache-2.0

README

FabricFaster

Based on Hyperledger Fabric v1.4.4

优化思路是,在一个peer中启动多个链码容器,让交易并行执行,因为我在测试时发现交易流程中,背书阶段的模拟交易是最耗时的。目前调通了链码并行的功能,在我的pc机上测试,使用SDK自己写的测试程序,结果如下:

查询TPS 查询提升比例 写入TPS 写入提升比例
原始(单链码执行) 86 35
改进-2链码并行 108 26% 71 103%
改进-4链码并行 129 50% 101 189%
改进-8链码并行 168 95% 118 237%

目前该项目是为了验证思路。

License

Source code files are made available under the Apache License, Version 2.0 (Apache-2.0), located in the LICENSE file.

Directories

Path Synopsis
idemix/handlers/mock
Code generated by counterfeiter.
Code generated by counterfeiter.
sw
cmd
common
deliver/mock
Code generated by counterfeiter.
Code generated by counterfeiter.
flogging/httpadmin/fakes
Code generated by counterfeiter.
Code generated by counterfeiter.
flogging/mock
Code generated by counterfeiter.
Code generated by counterfeiter.
grpclogging/fakes
Code generated by counterfeiter.
Code generated by counterfeiter.
grpcmetrics/fakes
Code generated by counterfeiter.
Code generated by counterfeiter.
ledger/blockledger/mocks
Code generated by mockery v1.0.0.
Code generated by mockery v1.0.0.
metrics/metricsfakes
Code generated by counterfeiter.
Code generated by counterfeiter.
tools/configtxgen/encoder/mock
Code generated by counterfeiter.
Code generated by counterfeiter.
core
cclifecycle/mocks
Code generated by mockery v1.0.0.
Code generated by mockery v1.0.0.
chaincode/fake
Code generated by counterfeiter.
Code generated by counterfeiter.
chaincode/lifecycle/mock
Code generated by counterfeiter.
Code generated by counterfeiter.
chaincode/mock
Code generated by counterfeiter.
Code generated by counterfeiter.
chaincode/persistence/mock
Code generated by counterfeiter.
Code generated by counterfeiter.
chaincode/platforms/mock
Code generated by counterfeiter.
Code generated by counterfeiter.
chaincode/shim
Package shim provides APIs for the chaincode to access its state variables, transaction context and call other chaincodes.
Package shim provides APIs for the chaincode to access its state variables, transaction context and call other chaincodes.
comm/mock
Code generated by counterfeiter.
Code generated by counterfeiter.
committer/txvalidator/mocks
Code generated by mockery v1.0.0.
Code generated by mockery v1.0.0.
container/dockercontroller/mock
Code generated by counterfeiter.
Code generated by counterfeiter.
container/mock
Code generated by counterfeiter.
Code generated by counterfeiter.
deliverservice/mocks
Code generated by counterfeiter.
Code generated by counterfeiter.
endorser/mocks
Code generated by mockery v1.0.0
Code generated by mockery v1.0.0
handlers/endorsement/builtin/mocks
Code generated by mockery v1.0.0
Code generated by mockery v1.0.0
handlers/validation/builtin/mocks
Code generated by mockery v1.0.0.
Code generated by mockery v1.0.0.
handlers/validation/builtin/v12/mocks
Code generated by mockery v1.0.0.
Code generated by mockery v1.0.0.
handlers/validation/builtin/v13/mocks
Code generated by mockery v1.0.0.
Code generated by mockery v1.0.0.
Code generated by counterfeiter.
ledger/kvledger/txmgmt/privacyenabledstate
Package privacyenabledstate is a generated protocol buffer package.
Package privacyenabledstate is a generated protocol buffer package.
ledger/kvledger/txmgmt/queryutil/mock
Code generated by counterfeiter.
Code generated by counterfeiter.
ledger/kvledger/txmgmt/statedb/mock
Code generated by counterfeiter.
Code generated by counterfeiter.
ledger/mock
Code generated by counterfeiter.
Code generated by counterfeiter.
ledger/pvtdatapolicy/mock
Code generated by counterfeiter.
Code generated by counterfeiter.
middleware/fakes
Code generated by counterfeiter.
Code generated by counterfeiter.
operations/fakes
Code generated by counterfeiter.
Code generated by counterfeiter.
scc
scc/cscc
Package cscc chaincode configer provides functions to manage configuration transactions as the network is being reconfigured.
Package cscc chaincode configer provides functions to manage configuration transactions as the network is being reconfigured.
scc/cscc/mock
Code generated by counterfeiter.
Code generated by counterfeiter.
scc/lscc/mock
Code generated by counterfeiter.
Code generated by counterfeiter.
cmd
cmd/mocks
Code generated by mockery v1.0.0.
Code generated by mockery v1.0.0.
support/mocks
Code generated by counterfeiter.
Code generated by counterfeiter.
examples
chaincode/go/example03
This program is an erroneous chaincode program that attempts to put state in query context - query should return error
This program is an erroneous chaincode program that attempts to put state in query context - query should return error
api
mocks
Code generated by mockery v1.0.0.
Code generated by mockery v1.0.0.
integration
e2e
nwo
msp
Package main is the entrypoint for the orderer binary and calls only into the server.Main() function.
Package main is the entrypoint for the orderer binary and calls only into the server.Main() function.
common/blockcutter/mock
Code generated by counterfeiter.
Code generated by counterfeiter.
common/broadcast/mock
Code generated by counterfeiter.
Code generated by counterfeiter.
common/msgprocessor
Package msgprocessor provides the implementations for processing of the assorted message types which may arrive in the system through Broadcast.
Package msgprocessor provides the implementations for processing of the assorted message types which may arrive in the system through Broadcast.
common/multichannel
Package multichannel tracks the channel resources for the orderer.
Package multichannel tracks the channel resources for the orderer.
common/server/mocks
Code generated by counterfeiter.
Code generated by counterfeiter.
consensus/etcdraft/mocks
Code generated by counterfeiter.
Code generated by counterfeiter.
consensus/kafka/mock
Code generated by counterfeiter.
Code generated by counterfeiter.
consensus/mocks
Code generated by counterfeiter.
Code generated by counterfeiter.
chaincode/mock
Code generated by counterfeiter.
Code generated by counterfeiter.
common/mock
Code generated by counterfeiter.
Code generated by counterfeiter.
mocks
Code generated by counterfeiter.
Code generated by counterfeiter.
node/mock
Code generated by counterfeiter.
Code generated by counterfeiter.
protos
msp
client/mock
Code generated by counterfeiter.
Code generated by counterfeiter.
identity/mock
Code generated by counterfeiter.
Code generated by counterfeiter.
ledger/mock
Code generated by counterfeiter.
Code generated by counterfeiter.
server/mock
Code generated by counterfeiter.
Code generated by counterfeiter.
tms
transaction/mock
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL