caliper metrics #fabric


George
 

Hello community,
Is there any paper or reference that explains the caliper metrics produced by the tool(latency, TPS) and how they are calculated by it?

Also Im getting different  execution times from invokeSmartContract and submitTransaction functions from caliper and nodeSDK respectively.
console.time('100-elements');
return_var= bc.bcObj.invokeSmartContract(ctx, contractID, version, myArgs);
console.timeEnd('100-elements');
console.time('timer');
contract.submitTransaction('createMyAsset', string, 'Model X');
console.timeEnd('timer');
 
Above I'm showing how I calculated the times
For reference the times are 3.801ms(my test) and 0.030ms(caliper)
Is there a reason for that or am I doing something wrong

Thanks in advance.
George