I'm using truffle to test my smart contract written in solidity language deployed on the Quorum blockchain. I want to measure the execution time of the invocation of a function using truffle. Is that possible in the truffle commande line? Otherwise, is there any proposition for a solution to measure the execution time of a function in a smart contract whatever how it was invocated?
-
1What do you mean by execution time? The actual time taken to compute a result is not usually super relevant in a blockchain, since the block time is almost always greater, and gas prevents very large computations in a single tx/block.– Raghav SoodOct 12, 2018 at 11:31
-
1I mean the delay between the send time and the confirmation time– A.GhOct 12, 2018 at 11:40
-
2In a production network, it will mostly be a function of how much traffic there is on the chain, and the block time. Measuring it will not be of much use since it is not a constant value.– Raghav SoodOct 12, 2018 at 12:09