github.com/coreservice-io/utils@v0.3.0/rand_util/gen_test.go (about)

     1  package rand_util
     2  
     3  import (
     4  	"testing"
     5  )
     6  
     7  func Benchmark_randStr(b *testing.B) {
     8  	b.ReportAllocs()
     9  	b.ResetTimer()
    10  	for i := 0; i < b.N; i++ {
    11  		GenRandStr(i)
    12  	}
    13  }