https://github.com/blockchain-dei/benchmark
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (8.8%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: blockchain-dei
- Language: Solidity
- Default Branch: main
- Size: 1.97 MB
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
📊 bBench Setup & Benchmark Execution
This guide outlines the steps to configure a benchmarking environment using Hardhat and Hyperledger Caliper, based on the bBench project.
✅ Requirements
- One contract per file
- The contract name must match the name of the contract defined in the Solidity code
⚙️ Installation and Component Structure
📁 Hardhat Component
This component simulates a local Ethereum network where the benchmark will be executed.
- Download the Hardhat folder from the
bBenchrepository.
bash
/hardhat
📁 Caliper Component
This component runs the tests and generates performance metrics based on the smart contracts.
- Download the Caliper folder from the
bBenchrepository.
bash
/caliper
📥 Step 1 — Prepare the Input Folder
Copy the contract(s) to be tested into:
bash
/hardhat/contracts
⚙️ Step 2 — Generate ABI Code
Compile the contracts with Hardhat to generate ABI files:
bash
cd hardhat
. compile.sh contract_file.sol
📁 Step 3 — Set Up the Scenario
- Edit the function parameters file:
bash
/caliper/workloadGen/functionParameters.json
- Run the scenario creation script:
Usage: createParam.sh MaxRound NumberOfWorkers RampUp(min) MeasurementTime(min) RampDown(min) NumberOfTps
bash
cd /caliper/ethereum
. createScenario.sh 10 5 2 10 2 200
🚀 Step 4 — Run the Benchmark
With everything set up, run the benchmark tests:
- Run the bBench!!
Usage: startC.sh ContractName
bash
cd /caliper/ethereum
. startC.sh contract_file
📈 Step 5 — Analyze the All Merged Output Files
bash
/caliper/ethereum/output
(Optional) 🐘 Step 6 — Insert the CSV Files into PostgreSQL DataBase
Run DDL.sql Create the tables using this file.
Run EDA.sql to visualize and analyze the results.
🧪 Final Notes
- Make sure all file paths are correct and required configuration files are present.
Owner
- Login: blockchain-dei
- Kind: user
- Repositories: 1
- Profile: https://github.com/blockchain-dei
GitHub Events
Total
- Push event: 1
- Public event: 1
Last Year
- Push event: 1
- Public event: 1
Dependencies
- 530 dependencies
- @nomicfoundation/hardhat-toolbox ^5.0.0 development
- hardhat ^2.22.2 development
- hardhat-abi-exporter ^2.10.1 development
- mocha ^10.4.0 development
- random-zipcode ^1.0.2