src

Go monorepo.
git clone git://code.dwrz.net/src
Log | Files | Refs

randstr_test.go (249B)


      1 package randstr
      2 
      3 import "testing"
      4 
      5 func BenchmarkCharsetAlphanumeric(b *testing.B) {
      6 	for i := 0; i < b.N; i++ {
      7 		Charset(Alphanumeric, 100)
      8 	}
      9 }
     10 
     11 func BenchmarkCharsetNumeric(b *testing.B) {
     12 	for i := 0; i < b.N; i++ {
     13 		Charset(Numeric, 10)
     14 	}
     15 }