github.com/0xPolygon/supernets2-node@v0.0.0-20230711153321-2fe574524eaa/test/benchmarks/sequencer/scripts/common/results/print.go (about)

     1  package results
     2  
     3  import (
     4  	"time"
     5  
     6  	"github.com/0xPolygon/supernets2-node/log"
     7  	"github.com/0xPolygon/supernets2-node/test/benchmarks/sequencer/common/params"
     8  )
     9  
    10  // Print prints the results of the benchmark
    11  func Print(elapsed time.Duration) {
    12  	// Print results
    13  	log.Info("##########")
    14  	log.Info("# Result #")
    15  	log.Info("##########")
    16  	log.Infof("Total time took for the sequencer to select all txs from the pool: %v", elapsed)
    17  	log.Infof("Number of txs sent: %d", params.NumberOfTxs)
    18  	log.Infof("Txs per second: %f", float64(params.NumberOfTxs)/elapsed.Seconds())
    19  }