diff --git a/random/random_test.go b/random/random_test.go index 6009b89..e08d852 100644 --- a/random/random_test.go +++ b/random/random_test.go @@ -12,3 +12,9 @@ func Test(t *testing.T) { r := New() assert.Regexp(t, regexp.MustCompile("[0-9]+$"), r.String(8, Numeric)) } + +func BenchmarkRandomString(b *testing.B) { + for n := 0; n < b.N; n++ { + String(32, Alphanumeric) + } +}