github.com/xaionaro-go/rand@v0.0.0-20191005105903-aba1befc54a5/mathrand/uint64_autogenerated_test.go (about) 1 package mathrand_test 2 3 import ( 4 "testing" 5 6 "github.com/xaionaro-go/rand/mathrand" 7 ) 8 9 // This file was automatically generated by github.com/xaionaro-go/rand/internal/autogen 10 11 func TestUint64AddRotateMultiply(t *testing.T) { 12 //testUint64(t, mathrand.GlobalPRNG.Uint64AddRotateMultiply) 13 } 14 func BenchmarkUint64AddRotateMultiply(b *testing.B) { 15 prng := mathrand.New() 16 b.SetBytes(8) 17 b.ResetTimer() 18 for i := 0; i < b.N; i++ { 19 prng.Uint64AddRotateMultiply() 20 } 21 } 22 23 func TestUint64AddNRotateMultiply(t *testing.T) { 24 //testUint64(t, mathrand.GlobalPRNG.Uint64AddNRotateMultiply) 25 } 26 func BenchmarkUint64AddNRotateMultiply(b *testing.B) { 27 prng := mathrand.New() 28 b.SetBytes(8) 29 b.ResetTimer() 30 for i := 0; i < b.N; i++ { 31 prng.Uint64AddNRotateMultiply() 32 } 33 } 34 35 func TestUint64MultiplyAdd(t *testing.T) { 36 //testUint64(t, mathrand.GlobalPRNG.Uint64MultiplyAdd) 37 } 38 func BenchmarkUint64MultiplyAdd(b *testing.B) { 39 prng := mathrand.New() 40 b.SetBytes(8) 41 b.ResetTimer() 42 for i := 0; i < b.N; i++ { 43 prng.Uint64MultiplyAdd() 44 } 45 } 46 47 func TestUint64AddRotate(t *testing.T) { 48 //testUint64(t, mathrand.GlobalPRNG.Uint64AddRotate) 49 } 50 func BenchmarkUint64AddRotate(b *testing.B) { 51 prng := mathrand.New() 52 b.SetBytes(8) 53 b.ResetTimer() 54 for i := 0; i < b.N; i++ { 55 prng.Uint64AddRotate() 56 } 57 } 58 59 func TestUint64AddIfShiftXOR(t *testing.T) { 60 //testUint64(t, mathrand.GlobalPRNG.Uint64AddIfShiftXOR) 61 } 62 func BenchmarkUint64AddIfShiftXOR(b *testing.B) { 63 prng := mathrand.New() 64 b.SetBytes(8) 65 b.ResetTimer() 66 for i := 0; i < b.N; i++ { 67 prng.Uint64AddIfShiftXOR() 68 } 69 } 70 71 func TestUint64Xorshift(t *testing.T) { 72 //testUint64(t, mathrand.GlobalPRNG.Uint64Xorshift) 73 } 74 func BenchmarkUint64Xorshift(b *testing.B) { 75 prng := mathrand.New() 76 b.SetBytes(8) 77 b.ResetTimer() 78 for i := 0; i < b.N; i++ { 79 prng.Uint64Xorshift() 80 } 81 } 82 83 func TestUint64Xoshiro256(t *testing.T) { 84 //testUint64(t, mathrand.GlobalPRNG.Uint64Xoshiro256) 85 } 86 func BenchmarkUint64Xoshiro256(b *testing.B) { 87 prng := mathrand.New() 88 b.SetBytes(8) 89 b.ResetTimer() 90 for i := 0; i < b.N; i++ { 91 prng.Uint64Xoshiro256() 92 } 93 } 94 95 func TestUint64MSWS(t *testing.T) { 96 //testUint64(t, mathrand.GlobalPRNG.Uint64MSWS) 97 } 98 func BenchmarkUint64MSWS(b *testing.B) { 99 prng := mathrand.New() 100 b.SetBytes(8) 101 b.ResetTimer() 102 for i := 0; i < b.N; i++ { 103 prng.Uint64MSWS() 104 } 105 }