diff options
author | Kevin Sheppard <kevin.k.sheppard@gmail.com> | 2019-06-28 13:38:56 +0100 |
---|---|---|
committer | Kevin Sheppard <kevin.k.sheppard@gmail.com> | 2019-06-28 13:38:56 +0100 |
commit | be065950f632f17b91e00e3fc15d990790d63671 (patch) | |
tree | b2d4fd7e502064a52046eb591eddee9efe9ec708 /doc/source/reference/random | |
parent | 588310c7bdf75715955e7eefce4151c0569dc730 (diff) | |
download | numpy-be065950f632f17b91e00e3fc15d990790d63671.tar.gz |
DOC: Update performance numbers
Update PCG performance numbers using the code in #13858
Diffstat (limited to 'doc/source/reference/random')
-rw-r--r-- | doc/source/reference/random/performance.rst | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/doc/source/reference/random/performance.rst b/doc/source/reference/random/performance.rst index 4e6f2d9d7..2d5fca496 100644 --- a/doc/source/reference/random/performance.rst +++ b/doc/source/reference/random/performance.rst @@ -50,15 +50,15 @@ The column labeled MT19973 is used the same 32-bit generator as :header: ,MT19937,PCG64,Philox,SFC64,RandomState :widths: 14,14,14,14,14,14 - 32-bit Unsigned Ints,4.1,3.3,4.8,2.7,3.2 - 64-bit Unsigned Ints,5.9,5.0,6.4,2.7,5.6 - Uniforms,7.4,5.2,8.1,3.1,7.3 - Normals,13.0,11.4,13.1,7.8,33.9 - Exponentials,8.0,6.6,8.5,4.1,39.8 - Gammas,36.5,31.3,34.8,27.5,57.9 - Binomials,25.6,23.1,26.0,19.8,25.0 - Laplaces,45.8,41.9,45.4,38.0,45.5 - Poissons,67.9,57.7,68.3,58.7,80.8 + 32-bit Unsigned Ints,3.2,2.7,4.9,2.7,3.2 + 64-bit Unsigned Ints,5.6,3.7,6.3,2.9,5.7 + Uniforms,7.3,4.1,8.1,3.1,7.3 + Normals,13.1,10.2,13.5,7.8,34.6 + Exponentials,7.9,5.4,8.5,4.1,40.3 + Gammas,34.8,28.0,34.7,25.1,58.1 + Binomials,25.0,21.4,26.1,19.5,25.2 + Laplaces,45.1,40.7,45.5,38.1,45.6 + Poissons,67.6,52.4,69.2,46.4,78.1 The next table presents the performance in percentage relative to values generated by the legacy generator, `RandomState(MT19937())`. The overall @@ -68,16 +68,16 @@ performance was computed using a geometric mean. :header: ,MT19937,PCG64,Philox,SFC64 :widths: 14,14,14,14,14 - 32-bit Unsigned Ints,77,96,66,116 - 64-bit Unsigned Ints,95,112,86,206 - Uniforms,99,140,90,235 - Normals,260,296,258,437 - Exponentials,497,600,467,974 - Gammas,159,185,166,211 - Binomials,98,108,96,126 - Laplaces,99,109,100,120 - Poissons,119,140,118,138 - Overall,137,163,131,217 + 32-bit Unsigned Ints,101,121,67,121 + 64-bit Unsigned Ints,102,156,91,199 + Uniforms,100,179,90,235 + Normals,263,338,257,443 + Exponentials,507,752,474,985 + Gammas,167,207,167,231 + Binomials,101,118,96,129 + Laplaces,101,112,100,120 + Poissons,116,149,113,168 + Overall,144,192,132,225 .. note:: @@ -101,12 +101,12 @@ across tables. =================== ========= ======= ======== ======= Distribution MT19937 PCG64 Philox SFC64 =================== ========= ======= ======== ======= -32-bit Unsigned Int 100 98.0 67.7 120.2 -64-bit Unsigned Int 100 120.4 90.8 213.3 -Uniforms 100 141.0 87.0 232.0 -Normals 100 115.7 99.2 167.8 -Exponentials 100 116.8 93.0 189.3 -**Overall** 100 117.6 86.8 180.0 +32-bit Unsigned Int 100 119.8 67.7 120.2 +64-bit Unsigned Int 100 152.9 90.8 213.3 +Uniforms 100 179.0 87.0 232.0 +Normals 100 128.5 99.2 167.8 +Exponentials 100 148.3 93.0 189.3 +**Overall** 100 144.3 86.8 180.0 =================== ========= ======= ======== ======= |