print gomaxprocs in txgen

pull/69/head
Rongjian Lan 6 years ago
parent f44762fa54
commit 30b82cc6dc
  1. 5
      client/txgen/main.go

@ -8,6 +8,7 @@ import (
"math/rand"
"os"
"path"
"runtime"
"sync"
"time"
@ -332,7 +333,7 @@ func main() {
wg.Add(len(shardIdLeaderMap))
utxoPoolMutex.Lock()
log.Warn("STARTING TX GEN")
log.Warn("STARTING TX GEN", "gomaxprocs", runtime.GOMAXPROCS(0))
for shardId, _ := range shardIdLeaderMap { // Generate simulated transactions
go func() {
txs, crossTxs := generateSimulatedTransactions(subsetCounter, *numSubset, int(shardId), nodes)
@ -370,7 +371,7 @@ func main() {
lock.Unlock()
subsetCounter++
time.Sleep(5000 * time.Millisecond)
//time.Sleep(5000 * time.Millisecond)
}
// Send a stop message to stop the nodes at the end

Loading…
Cancel
Save