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?
3
-
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 Sood Oct 12 '18 at 11:31
-
1I mean the delay between the send time and the confirmation time – A.Gh Oct 12 '18 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 Sood Oct 12 '18 at 12:09
Add a comment
|