Why benchmark Hyperledger Fabric with Hyperledger Caliper before go-live
A permissioned Fabric network is about to go live, or a configuration, ordering or upgrade change is planned, and the team needs measured numbers to compare against. Hyperledger Caliper is a blockchain performance benchmark framework that runs predefined use cases against a network and reports the results, so the same workload can be repeated before and after a change. Caliper currently supports Hyperledger Fabric v2.x through the Gateway SDK and through the network SDK, which Caliper lists as deprecated. Confirm the exact Caliper release, Fabric version and SDK pairing against the Caliper repository before you commit to a test plan, because the supported combinations change over time.
This page treats benchmarking as two steps. The first is a baseline run on the network as it will be operated, with the chosen ordering service, peer resources, channel layout and chaincode in place. The second is a repeat run with the same workload after each change that could affect performance, such as a Raft tuning change, a peer resource change, a chaincode update or a move to a newer Fabric line. A baseline is only useful if the test conditions are recorded alongside it, including the network topology, the workload definition and the Caliper configuration, so that a later difference can be attributed to the change and not to the setup. Ask the team that will run the tests to write these conditions down before the first run.
Caliper reports success rate, transaction and read throughput, latency (minimum, maximum and average) and resource consumption such as CPU, memory and network IO. Read these together rather than one at a time: a throughput gain that comes with a higher maximum latency or a lower success rate is a regression for most business workloads. Decide before testing which of these measures matter for your use cases and what result would block go-live, so that the benchmark answers a go or no-go question rather than producing a report nobody acts on.
What you need before a Hyperledger Fabric benchmark run
A Caliper result is only as useful as the network and tooling behind it. The cards below cover the Fabric line, the SDK, the test topology, metrics collection and the load host, each of which must be settled before numbers are compared or trusted.
Pick the Fabric line to test
Caliper lists Hyperledger Fabric v2.x as its supported blockchain solution, so confirm current compatibility with v3.x in the Caliper repository before planning. Fabric v2.5 is the long-term support release for production users, while the 3.x line receives its own patch releases in parallel. Benchmark the exact line you plan to run in production, including the patch level, because ordering and peer behavior can change between releases.
Caliper repositoryChoose the SDK for the workload
Caliper supports the Gateway SDK and the network SDK, and the network SDK is deprecated. Choose the SDK that matches the client path your applications will use, because the Gateway client path adds a different set of peer interactions than a direct network connection. Record the SDK choice in the test plan so results can be reproduced and compared against later runs.
Match the test network topology
The test network should match production on ordering type, consenter count, peer count per organization and state database. A Raft ordering service with five nodes tolerates the loss of two, so a single-orderer test network will produce results that do not reflect production failover or consensus overhead. Document the CouchDB or LevelDB choice explicitly, since state database type affects query and read throughput.
Enable the operations service
Enable the operations service on peers and orderers before the run so that resource and health data can be captured alongside Caliper's results. The service exposes a Prometheus metrics endpoint or StatsD push and a health check, and it is secured with mutual TLS client certificates. Confirm that your scrape or collection configuration can reach these endpoints and that the certificates used by the collector are valid for the whole run.
Size a separate load host
Run Caliper load generation on a host separate from the Fabric peers and orderers, so that client-side CPU and network limits do not distort the results. Size it for the peak transaction rate and the number of concurrent workers you plan to use, and watch its own CPU, memory and network IO during the run. If the load host saturates, the measured throughput reflects the client, not the network, so record its utilization with each result.
Isolate the environment
Run benchmarks on infrastructure that no other workload shares, and keep the network version, configuration files and container images frozen for the whole test series. Changes to ordering batch settings, peer resources or TLS configuration made between runs make before and after comparisons meaningless. Keep a written record of the baseline configuration so that any change after go-live can be measured against the same starting point.
How Caliper load, Fabric peers and metrics fit together
The flow starts on a dedicated load-generation host, where Caliper workers submit transactions through the Gateway SDK to Fabric peers. Each peer endorses the proposal and forwards the endorsed transaction to the ordering nodes, and the committed result returns to Caliper. Metrics come from two sources: the host's CPU, memory and network IO, and the /metrics endpoint of the Fabric operations service on peers and orderers. Check that the load host sits outside the Fabric trust boundary and that every connection to the operations service uses mutual TLS.
Caliper load, peer endorsement, ordering and the two metric sources.
Choosing between the Gateway SDK and the network SDK for Caliper
The Gateway SDK is the path to plan for new benchmark work. Caliper lists it, alongside the deprecated network SDK, as a supported way to drive Hyperledger Fabric v2.x. It submits transactions through the Fabric Gateway, which is the same client model that current applications use, so the load path in your benchmark resembles how your production clients reach the network. The Fabric Gateway client API is documented as compatible with both v2.5 and v3.0, which means a benchmark suite built on this SDK can be reused across a network upgrade.
- Current direction: Caliper treats the Gateway SDK as the supported option for new suites, so new work should start here.
- Version coverage: The Fabric Gateway client API is documented as compatible with v2.5 and v3.0, so the same suite can measure before and after a network upgrade.
- Client alignment: Gateway-based applications submit transactions the way the benchmark does, which keeps the measured path close to production.
- Ongoing maintenance: Confirm with the Caliper repository which Gateway SDK version and Fabric release pairing your suite requires before you pin versions.
- Gateway deployment: Confirm whether your production clients use a gateway peer or an external gateway service, since that changes what the benchmark should exercise.
Before you commit, check the Caliper repository for the exact Gateway SDK version and confirm it matches the Fabric release you will benchmark.",
The network SDK is deprecated in Caliper, but many existing benchmark suites were written against it. Caliper still lists it among its supported options for Fabric v2.x, so existing suites can run, but you should not start new suites on it. Teams that inherit a network SDK suite need a migration plan that moves the transaction submission code to the Gateway SDK and then rechecks the results, because a change of client path can shift latency and throughput figures on its own.
- Deprecated status: Caliper marks the network SDK as deprecated, so plan its replacement rather than extending it.
- Existing suites: Inventory each benchmark that uses the network SDK, including its workloads, configuration files and any custom code.
- Re-baselining: Run the migrated suite against the same network state and record new baselines, because client path changes can move results.
- Parallel runs: Keep the old and new suites running side by side for at least one comparison cycle so differences can be explained.
- Ownership: Name who owns the migration and who signs off that the new numbers are comparable with the old ones.
Before migrating, confirm with the Caliper repository how long the network SDK remains supported in the release you use.",
The most useful way to pick an SDK is to start from the client application that will run in production, not from the benchmark tool. A benchmark measures the path a transaction takes, so the SDK should reproduce the way your real applications invoke chaincode, connect to peers or gateways and handle endpoints. If your production applications use the Fabric Gateway client API, the Gateway SDK gives you the closest match. If an application is still built on another client model, document that difference and decide whether the benchmark must cover it too.
- Inventory clients: List every application that submits transactions or queries the ledger, along with its client library and version.
- Compare call paths: Note whether each client uses the Gateway, endorsement and commit flow, or a different connection pattern.
- Cover the main path: Benchmark the path that carries the most production volume first, then add secondary paths if they carry meaningful load.
- Record the mapping: Keep a short document that links each benchmark workload to the production client it represents.
- Plan for change: When a client library changes, reassess whether the benchmark still represents it.
Before you finalize the choice, confirm with your application owners which client libraries and versions will carry production traffic.
How to run a Caliper benchmark against a Fabric network
This sequence turns a Caliper run into evidence you can repeat and compare: a fixed Fabric version and topology, a recorded configuration, verified test identities, and measured results stored alongside the conditions that produced them.
Fix the Fabric version and topology under test
The network owner and the performance engineer agree on the exact Fabric release line, the number of peers and orderers, the ordering service type, the state database, and the host sizes that will be measured. Pin the binaries and images to specific builds rather than floating tags, so the same network can be rebuilt later. Confirm the release line against the current Fabric releases page, since v2.5 is the long-term support line for production and v3.x receives its own patch releases. Done when the topology diagram and version list have been signed off by the people who will run the network in production.
Record the configuration before any test runs
Capture the peer and orderer configuration, channel configuration, chaincode definition and version, endorsement policy, batch and block settings, and the resource limits applied to each container or VM. Store these files in version control with a date and a commit reference. This record is what lets a later result be explained, so a regression can be traced to a specific change. Done when someone other than the author can rebuild the environment from the stored record alone.
Install Caliper and bind it to the Fabric SDK
The performance engineer installs the Caliper CLI and the Fabric binding for the Fabric major version under test. Caliper's supported Fabric path currently runs through the Gateway SDK or the deprecated network SDK, so confirm in the Caliper repository which SDK matches the Fabric version and the client application you plan to run. Connection profiles, MSP identities and TLS certificates are placed where the binding expects them. Done when Caliper connects to a peer and reports the channel it can see, without submitting any transactions.
Define the workload and use cases
Write the benchmark configuration that names the chaincode functions, the transaction mix, the arguments generated for each call, the number of clients, and the rate controller that paces submissions. Use cases should mirror the transactions your application will send, because Caliper measures what it is told to send. Keep each use case small enough that one change can be tested in isolation. Done when a dry run of each use case submits a few transactions from the test identities and the success rate for each is visible in the output.
Run a warm-up before measurement
Run the workload for a short warm-up period whose results are discarded. The warm-up lets caches, connections, and chaincode containers settle so the measured rounds reflect steady state. Record the warm-up length in the configuration file so the choice is visible later. Check that the success rate and endorsement errors during warm-up match the dry run. Done when the warm-up ends without errors caused by identity, policy, or connection problems.
Run the measured rounds
Execute the measured rounds with the same workload, rate, and client count each time. Run more than one round so variation between rounds becomes visible, and do not change the configuration between rounds. Caliper reports success rate, transaction and read throughput, and minimum, maximum, and average latency for each round. Done when the rounds complete and the reports for each round are saved without manual edits.
Capture operations service and host metrics for the same window
Start collection before the measured rounds and stop it after they finish, so peer and orderer metrics from the operations service cover the same time window as the Caliper results. Scrape the Prometheus endpoint or receive StatsD pushes, and sample CPU, memory, and network IO on each host with the tool your team already uses. Caliper also reports resource consumption, so compare both sources. Done when every node has metrics covering the full measured window and the timestamps line up with the Caliper report.
Store the results with the configuration that produced them
Save the Caliper reports, the operations service and host metrics, the stored configuration record, and the Fabric and Caliper versions in one versioned location. Note any deviation from the plan, such as a node restart or a noisy neighbor on shared hardware. Compare the new run against the last accepted baseline only when the topology and configuration match. Done when the results can be reopened later and the baseline comparison is documented with its conditions.
What each Caliper result tells you about the network
This table maps each measure Caliper reports to what it means for the Fabric network and where the value comes from. Use the Caliper report for transaction-level results and the host and operations service metrics for resource use, then compare both before and after a change. The main takeaway is that a throughput gain means little if success rate falls or latency or resource use rises.
| Measure | What it means for the Fabric network | Where to read it | Question it answers before or after a change |
|---|---|---|---|
| Success rate | Share of submitted transactions that committed as valid. Falling success under load often points to endorsement mismatches, MVCC read conflicts or ordering backlog. | Caliper report | Did the change keep transactions committing correctly at the load we plan to run? |
| Transaction throughput | Rate of successful write transactions the network sustains over the round. Compare it only at the same send rate and workload. | Caliper report | Does the change raise or lower the write rate the channel can sustain? |
| Read throughput | Rate of query transactions served. It reflects peer state database performance and chaincode query logic, not ordering. | Caliper report | Did the change affect how quickly peers answer queries, such as after a state database change? |
| Minimum latency | Fastest observed submit-to-commit time. Useful as a baseline for an uncontended transaction path. | Caliper report | Has the best-case path through endorsement and ordering become slower? |
| Maximum latency | Slowest observed transaction in the round. Spikes can indicate ordering pauses, leader changes or peer garbage collection. | Caliper report | Did any transactions wait far longer after the change, even if the average looks stable? |
| Average latency | Typical submit-to-commit time across the round. Read it with the maximum to see whether the tail is wider. | Caliper report | Is the typical user-facing transaction time within the target the team agreed for the channel? |
| CPU use | Processor load on peers, orderers and the Caliper host during the round. High peer CPU during endorsement often limits throughput. | Host metrics, with the operations service /metrics endpoint for Fabric process context | Does the change move the bottleneck onto a component that is already near its limit? |
| Memory use | Resident memory of Fabric processes and chaincode containers. Growth across repeated rounds can point to a leak or cache sizing issue. | Host metrics, with the operations service /metrics endpoint | Does memory return to its baseline after the round, or does it keep climbing? |
| Network IO | Traffic between Caliper, peers, orderers and the state database. Gossip and block delivery add load that grows with peer count. | Host metrics for each node | Did the change add network load that could saturate links between sites or nodes? |
Which Fabric settings change benchmark results
Several Fabric settings shift throughput and latency at the same time, so a benchmark only tells you something when everything else is held still. Treat each factor below as its own measured baseline, and change one at a time so the difference you see can be traced to a single cause.
Ordering service type and size
The consensus mechanism and the number of consenters set how quickly blocks are agreed and cut. Moving between Raft and SmartBFT, or adding consenters, changes the coordination cost on every transaction. Record the ordering type, consenter count, and the orderer host resources in each run so a later comparison is valid. Confirm which ordering options your Fabric version documents before planning the matrix.
Ordering service docsEndorsement policy complexity
The endorsement policy decides how many peers from which organizations must sign each transaction proposal. A policy that requires more endorsers means more simulation work and more network round trips before ordering begins. Benchmark a simple policy and the stricter policy you plan to run in production as separate baselines, and note which organizations are endorsing in each run.
Peer state database choice
Peers store current world state in LevelDB by default or in CouchDB when rich queries are needed. The backend changes read and write cost during endorsement and validation, so results from one do not transfer to the other. Record the state database type and its placement, and run the same workload against each option you are considering.
Chaincode logic and data size
The work inside the chaincode, including loops, key range reads, and the size of values written to the ledger, often dominates latency more than Fabric configuration does. Keep the chaincode version, its input payloads, and the key space fixed across runs. When you change the data model, treat it as a new baseline rather than a tuning result.
Peer and orderer resources
CPU, memory, disk type, and network bandwidth on each peer and orderer set the ceiling for throughput before any configuration issue appears. Containers with resource limits can throttle a node under load and make a healthy configuration look slow. Capture resource usage during each Caliper run, and keep the same host sizes and container limits between comparisons.
Batch and block settings
Block cutting parameters such as batch size and timeout decide how many transactions go into each block and how long the orderer waits to fill one. These settings can trade latency for throughput, so a change that helps one measure may hurt another. Only tune the parameters your Fabric version documents, and record every value alongside the results.
Ordering service docsCommon failures when benchmarking Fabric with Caliper
This table lists the failures teams most often hit when running Caliper against Fabric, with the specific cause and the fix for each. Read it before a benchmark run so you can check your setup against each row, and before reporting results so you can rule out a misleading number.
| Failure | Likely cause | Fix |
|---|---|---|
| Benchmark fails or reports errors against the target network | The Caliper release targets Fabric v2.x only, so a Fabric 3.x network is outside its supported range | Confirm the network version before you start. Run the benchmark against a v2.x test network, or wait for Caliper support for your version, and record which Fabric version each result came from. |
| Results do not match the client code you plan to ship | The benchmark uses the deprecated network SDK, which differs from the Gateway client path many applications now use | Use the Gateway SDK for benchmarks that should reflect production clients, and note the SDK in every result so comparisons stay like for like. |
| Throughput tops out early and latency climbs with no change on the peers or orderers | The Caliper client host is saturated on CPU, memory or network IO, so the limit is the load generator, not Fabric | Watch the resource metrics on the client host alongside the network metrics. Reduce the send rate or spread workers across more client hosts until the network, not the client, is the bottleneck. |
| A tuning change appears to improve results, but the new number is not repeatable | The run used a warm cache or an unchanged baseline, so the comparison is against an already optimized state rather than the previous configuration | Run the baseline and the changed configuration under the same conditions, repeat each several times, and discard the first warm-up round before comparing. |
| Transactions fail with endorsement or access errors | Test identities are not members of the channel or do not satisfy the chaincode endorsement policy | Enroll the test identities under the organizations named in the channel and the endorsement policy, and confirm each one can invoke the chaincode before the benchmark starts. |
| Operations metrics do not explain the Caliper latency figures | Prometheus or StatsD metrics were collected over a different time window from the Caliper run, so the samples do not line up | Start metric collection before the Caliper round begins, stop it after the round ends, and use the same clock source on every host so the timestamps can be matched. |
Keeping benchmark runs isolated from production keys and data
A Caliper run exercises the same peers, orderers and channels that carry live transactions, so the test setup needs its own identities, network and data boundaries. The cards below cover the controls to set before a run starts and the cleanup that follows it.
Use dedicated test identities
Enroll separate test users and build a test MSP for the Caliper client instead of reusing production enrollment certificates or admin keys. Test identities should never be able to sign on production channels. Confirm that the test organization is a member only of the channels it needs, and that its signing keys are stored apart from production key material. Record which identities the benchmark used so they can be revoked after the run.
Benchmark a non-production network
Run Caliper against a dedicated benchmark network or against isolated channels on a shared network, not against channels that hold live business data. A separate network keeps load spikes, failed endorsements and test chaincode away from production peers. If you must share infrastructure, confirm with your platform team that the test traffic cannot reach production peer resources or consume the capacity those channels need.
Require mutual TLS on metrics endpoints
Fabric's operations service endpoints are secured with mutual TLS client certificates, so the test client must hold a valid certificate to read the health, log level and Prometheus metrics that Caliper results depend on. Confirm that the benchmark's client certificate is issued by a CA the operations service trusts and that it expires on a known date. Do not disable client authentication on the operations endpoints to make the benchmark work.
Restrict access to result files
Caliper reports and resource data can reveal peer counts, host names, orderer layout and channel names, which is topology information that attackers can use. Store result files in a location with the same access controls as your network configuration, and limit who can read or share them. Redact host names and endpoint addresses before results leave the team that ran the benchmark.
Remove test chaincode and data
After the run, remove the benchmark chaincode definitions, test channels and generated ledger data, or destroy the benchmark network entirely. Revoke the test identities and retire their certificates through your CA revocation process. Confirm in writing who owns the cleanup and check that no test artifacts remain on production nodes.
Questions teams ask before benchmarking Fabric with Caliper
What drives the cost and effort of a Caliper benchmark?
The main drivers are the number of workloads, the number of configurations you compare, how much of the test environment has to be built, and how much analysis the results need. Each workload needs a Caliper benchmark configuration and a chaincode or client path that matches your production transaction shape. Each configuration you compare multiplies the runs and the analysis. Building a test network that resembles production, with comparable peers, orderers, storage and TLS settings, often takes more effort than the runs themselves. Ask DeployOpen for a written scope that lists workloads, configurations, environment work and the analysis deliverable, and that states whether the price is fixed for that scope. Ask which costs recur if you rerun benchmarks after each release.
What does the work need from our team?
Expect to provide four things: a test network you can point Caliper at, identities with the right permissions to invoke transactions and read channel state, access to Fabric operations service logs and resource metrics, and a named owner who makes go or no-go decisions from the results. Without a test network that matches your intended topology, the numbers will describe a different system. Without metrics access, latency results cannot be explained by CPU, memory, disk or network behavior. Without a decision owner, findings tend to stall. Confirm these items, the person responsible for each, and the access process in the written scope before work starts.
Can our internal team run Caliper without outside help?
Yes, a capable Fabric team can run Caliper alone, provided it has people who understand Fabric channel and chaincode behavior, the Caliper benchmark configuration format, and how to collect and interpret resource metrics. Caliper supports Fabric v2.x through the Gateway SDK and the deprecated network SDK, so confirm which SDK and Fabric version your test uses before you start. Teams usually struggle with workload design, controlling for noise between runs, and distinguishing a bottleneck in the client from one in the network. An outside partner can add that experience and an independent view of the results. Decide which of these skills your team already has before choosing.
How long does a benchmark run take?
Duration depends on the workload, the number of rounds, the number of configurations, and how long the test network needs to reach a stable state before measurement. Each round runs a fixed set of transactions at a defined rate, and each configuration needs repeated rounds so results can be compared. Environment setup and resource collection add time before and after the runs. No duration figure is supplied for this page, so ask DeployOpen for a timeline in the written scope that breaks the work into environment build, runs, analysis and reporting. Ask how reruns after a configuration change are scheduled and whether they are included in the fixed scope.
Do Caliper results prove our production capacity?
No. Caliper results show how a specific Fabric network performed under specific workloads, on specific hardware, with specific configuration. Production capacity depends on your real transaction mix, data sizes, peer and orderer placement, network latency between organizations, concurrent client load, and operational events such as backups or certificate rotations. A benchmark is most useful as a comparison: it shows whether a change improved or degraded behavior under controlled conditions, and it gives a baseline for go-live decisions. Ask DeployOpen to state in the scope which conditions the results represent and which production factors were not tested.
What should we confirm before signing a benchmarking scope?
Confirm the Fabric version and SDK, the workloads and transaction shapes to test, the configurations to compare, the test environment and who builds it, the metrics and logs you will receive, the acceptance criteria for go or no-go, and the retest process after changes. Ask how sensitive data in logs and identities will be handled, and where results are stored. Also confirm what is one-time work and what is retained as a repeatable setup for future runs. DeployOpen provides these details only in a written scope, so use the quote request to get them in writing.
How DeployOpen scopes and delivers Fabric benchmark work
DeployOpen, a Chainscore Labs company, plans, builds and documents Caliper benchmark runs against Hyperledger Fabric networks in infrastructure you control. Each engagement starts from a written scope that names the Fabric version, the SDK path, the workloads and the pass criteria before any test runs.
How we scope
- Confirm the Fabric release line in use, such as v2.5 LTS or a 3.x release, before choosing Caliper configuration.
- Agree the workloads, channels, chaincode and transaction mix the benchmark must represent in the written scope.
- Define which results count as acceptance criteria, including success rate, latency and resource limits.
How we build
- Build the benchmark environment in your infrastructure, with network topology matching the production design under test.
- Configure Caliper workloads and the Gateway SDK or network SDK path that your client applications actually use.
- Run baseline and changed-configuration rounds under identical conditions so before and after results can be compared.
How we hand over
- Deliver the benchmark configuration, workload files and run scripts so your team can repeat the tests.
- Provide a results report covering throughput, latency, success rate and CPU, memory and network use per run.
- Document the test environment, known limits and the steps to rerun the benchmark after a Fabric upgrade.
How we support
- Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
- Ongoing support, repeat benchmarking after upgrades and continuous testing are available as a retainer.
- Ask for the retainer terms and the rerun schedule in your quote so retest effort is clear before go-live.

