@@ -132,14 +132,14 @@ The `nextInt32()` and `nextInt64()` return the raw output of the generator.
132132
133133| Time (lower is better) | nextInt | nextInt32 | nextInt64 |
134134| ------------------------| ---------| -----------| -----------|
135- | Random (dart: math ) | 1206 | - | - |
136- | Xorshift32 | 727 | 411 | - |
137- | Xorshift64 | 1089 | 806 | 739 |
138- | Xorshift128 | 907 | 621 | - |
139- | Xorshift128p | 1144 | 839 | 854 |
140- | Xoshiro128pp | 1268 | 994 | - |
141- | Xoshiro256pp | 1738 | 1463 | 2004 |
142- | Splitmix64 | 1065 | 761 | 458 |
135+ | Random (dart: math ) | 1208 | - | - |
136+ | Xorshift32 | 719 | 409 | - |
137+ | Xorshift64 | 1114 | 814 | 838 |
138+ | Xorshift128 | 907 | 618 | - |
139+ | Xorshift128p | 1162 | 854 | 952 |
140+ | Xoshiro128pp | 1228 | 912 | - |
141+ | Xoshiro256pp | 1746 | 1498 | 2039 |
142+ | Splitmix64 | 1248 | 931 | 782 |
143143
144144### Rough double
145145
@@ -149,27 +149,27 @@ to a maximum of 2^32-1 values. But it's still a double with four billion shades.
149149
150150| Time (lower is better) | nextDouble | nextFloat |
151151| ------------------------| ------------| -----------|
152- | Random (dart: math ) | 1616 | - |
153- | Xorshift32 | 1144 | 415 |
154- | Xorshift64 | 1001 | 799 |
155- | Xorshift128 | 1457 | 629 |
156- | Xorshift128p | 1105 | 850 |
157- | Xoshiro128pp | 2154 | 1018 |
158- | Xoshiro256pp | 2206 | 1446 |
159- | Splitmix64 | 792 | 764 |
152+ | Random (dart: math ) | 1653 | - |
153+ | Xorshift32 | 1126 | 407 |
154+ | Xorshift64 | 1011 | 825 |
155+ | Xorshift128 | 1461 | 622 |
156+ | Xorshift128p | 1141 | 860 |
157+ | Xoshiro128pp | 2095 | 923 |
158+ | Xoshiro256pp | 2294 | 1488 |
159+ | Splitmix64 | 1098 | 932 |
160160
161161# More benchmarks
162162
163163| Time (lower is better) | nextInt | nextDouble | nextBool |
164164| ------------------------| ---------| ------------| ----------|
165- | Random (dart: math ) | 1206 | 1616 | 1184 |
166- | Xorshift32 | 727 | 1144 | 740 |
167- | Xorshift64 | 1089 | 1001 | 712 |
168- | Xorshift128 | 907 | 1457 | 750 |
169- | Xorshift128p | 1144 | 1105 | 719 |
170- | Xoshiro128pp | 1268 | 2154 | 759 |
171- | Xoshiro256pp | 1738 | 2206 | 748 |
172- | Splitmix64 | 1065 | 792 | 708 |
165+ | Random (dart: math ) | 1208 | 1653 | 1177 |
166+ | Xorshift32 | 719 | 1126 | 710 |
167+ | Xorshift64 | 1114 | 1011 | 685 |
168+ | Xorshift128 | 907 | 1461 | 719 |
169+ | Xorshift128p | 1162 | 1141 | 694 |
170+ | Xoshiro128pp | 1228 | 2095 | 726 |
171+ | Xoshiro256pp | 1746 | 2294 | 721 |
172+ | Splitmix64 | 1248 | 1098 | 688 |
173173
174174All the benchmarks on this page are from AOT-compiled binaries running on AMD A9-9420e with Ubuntu 20.04. Time is measured in milliseconds.
175175
0 commit comments