Change logs for transaction execution.
Move log statement after making snapshot.
Change elapsed time format in msecs(milli-seconds).
@@ -25,7 +25,7 @@ const (
)
const (
- configUseParallelExecution = true
+ configUseParallelExecution = false
)
type transition struct {
@@ -243,10 +243,6 @@ func (t *transition) executeSync(alreadyValidated bool) {
normalReceipts := make([]Receipt, normalCount)
t.executeTxs(t.normalTransactions, wc, normalReceipts)
- ellapsed := float64(time.Now().Sub(startTime) / time.Microsecond)
- log.Printf("Transactions: %d Elapsed: %.3f microsecs TPS: %.2f",
- patchCount+normalCount, ellapsed, float64(patchCount+normalCount)/ellapsed*1000000)
-
cumulativeSteps := big.NewInt(0)
gatheredFee := big.NewInt(0)
fee := big.NewInt(0)
@@ -273,6 +269,10 @@ func (t *transition) executeSync(alreadyValidated bool) {
t.worldSnapshot = wc.GetSnapshot()
+ ellapsed := float64(time.Now().Sub(startTime)/time.Microsecond) / 1000
+ log.Printf("Transactions: %6d Elapsed: %7.3f msecs TPS: %9.2f",
+ patchCount+normalCount, ellapsed, float64(patchCount+normalCount)/ellapsed*1000)
+
tresult := transitionResult{
t.worldSnapshot.StateHash(),
t.patchReceipts.Hash(),
