How to do the performance evaluation in terms of secs or minutes? what is the command to use in solidity?


You should not evaluate performance in time units. Your code will not even start computing immediately anyway so whether the actual execution takes 1 or 10 seconds doesn't make much difference.

What you should be interested in is how much gas your code execution takes as gas is the performance counter in Ethereum. You can read more about gas here: What is meant by the term "gas"?

So even if you optimize your code so that it runs 10 times faster but costs 2 times more gas, your optimization has failed.

| improve this answer | |
  • So, then how can i do the performance graph for 50 customers? please give me some ideas – aarthi Jun 13 '18 at 9:51
  • I don't quite understand what you wish to do. What kind of graphs are you looking for? – Lauri Peltonen Jun 13 '18 at 9:54
  • I want to know the performance evaluation of smart contract for 50customers – aarthi Jun 13 '18 at 9:56
  • for the evaluation we need the processing time for one customers.then, we can easily calculate the other customers – aarthi Jun 13 '18 at 9:57
  • As I said, processing time is not something you want to evaluate. The processing time varies a lot and it's typically not much related to your code. Mostly it depends on other factors, such as gas price given for the transaction (decided by the one who calls the function). Even with static gas prices, the whole execution time varies a lot. – Lauri Peltonen Jun 13 '18 at 9:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.