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?

  • 1
    What 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. Oct 12, 2018 at 11:31
  • 1
    I mean the delay between the send time and the confirmation time
    – A.Gh
    Oct 12, 2018 at 11:40
  • 2
    In 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. Oct 12, 2018 at 12:09


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.