Measuring transaction means that to measure how much time it take to execute a set of step over the application. A transaction is collection of steps that we are intended to know how much time it take to execute. We can define the transaction by enclosing the set of steps with the start transaction and end transaction.
Start transaction: after encounter of start transaction time measurement start. It may be considered as the start point where the time starts calculation. It is inserted in the beginning of the block we want to measure.
End transaction: it is used to stop the time measurement. It is kept at the end of the statement where we want to stop our time measurement.
Need for Transactions:
Transactions can be used to measure the performance of the script
By analysing the output of the Transaction we can optimize the script in certain areas
Start transaction: after encounter of start transaction time measurement start. It may be considered as the start point where the time starts calculation. It is inserted in the beginning of the block we want to measure.
End transaction: it is used to stop the time measurement. It is kept at the end of the statement where we want to stop our time measurement.
Need for Transactions:
Transactions can be used to measure the performance of the script
By analysing the output of the Transaction we can optimize the script in certain areas