Skip to content

Instantly share code, notes, and snippets.

@adityajoshi12
Created September 12, 2021 08:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adityajoshi12/ed1beef9ca9f3e97d2759d3f43737321 to your computer and use it in GitHub Desktop.
Save adityajoshi12/ed1beef9ca9f3e97d2759d3f43737321 to your computer and use it in GitHub Desktop.
test:
name: basic-contract-benchmark
description: A test benchmark
workers:
type: local
number: 5
rounds:
- label: createAsset
description: Create asset benchmark
txNumber: 1000
rateControl:
{ type: "linear-rate", opts: { startingTps: 50, finishingTps: 200 } }
workload:
module: workload/createAsset.js
arguments:
contractId: basic
- label: readAsset
description: Read asset benchmark
txDuration: 60
rateControl: { type: "fixed-load", opts: { transactionLoad: 5 } }
workload:
module: workload/readAsset.js
arguments:
assets: 10
contractId: basic
monitors:
resource:
- module: docker
options:
interval: 4
containers:
[
"peer0.org1.example.com",
"peer0.org2.example.com",
"orderer.example.com",
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment