@hyperledger/caliper-core
Advanced tools
Comparing version 0.5.1-unstable-20230521222045 to 0.5.1-unstable-20240228155047
@@ -183,4 +183,13 @@ /* | ||
} | ||
/** | ||
* Stops the benchmark run | ||
*/ | ||
async stop() { | ||
if (this.roundOrchestrator) { | ||
await this.roundOrchestrator.stop(); | ||
} | ||
} | ||
} | ||
module.exports = CaliperEngine; |
@@ -228,3 +228,2 @@ /* | ||
// clean up, with "silent" failure handling | ||
try { | ||
@@ -237,2 +236,12 @@ this.report.printResultsByRound(); | ||
await this.stop(); | ||
let benchEndTime = Date.now(); | ||
logger.info(`Benchmark finished in ${(benchEndTime - benchStartTime)/1000.0} seconds. Total rounds: ${success + failed}. Successful rounds: ${success}. Failed rounds: ${failed}.`); | ||
} | ||
/** | ||
* Stops the benchmark. | ||
*/ | ||
async stop() { | ||
// clean up, with "silent" failure handling | ||
try { | ||
@@ -249,5 +258,2 @@ await this.monitorOrchestrator.stopAllMonitors(); | ||
} | ||
let benchEndTime = Date.now(); | ||
logger.info(`Benchmark finished in ${(benchEndTime - benchStartTime)/1000.0} seconds. Total rounds: ${success + failed}. Successful rounds: ${success}. Failed rounds: ${failed}.`); | ||
} | ||
@@ -254,0 +260,0 @@ } |
{ | ||
"name": "@hyperledger/caliper-core", | ||
"description": "Core Hyperledger Caliper module, used for running performance benchmarks that interact with blockchain technologies", | ||
"version": "0.5.1-unstable-20230521222045", | ||
"version": "0.5.1-unstable-20240228155047", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "type": "git", |
464494
10543