17
randx/rand_test.go
Normal file
17
randx/rand_test.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package randx
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func BenchmarkNumber(b *testing.B) {
|
||||
for i := 0; i < b.N; i++ {
|
||||
Number(10)
|
||||
}
|
||||
}
|
||||
|
||||
func BenchmarkAny(b *testing.B) {
|
||||
for i := 0; i < b.N; i++ {
|
||||
Any(10)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user