Click here to Skip to main content
13,900,697 members
Click here to Skip to main content
Add your own
alternative version

Tagged as

Stats

3K views
5 bookmarked
Posted 27 Feb 2019
Licenced CPOL

Python Random Number Generation Performance with the Intel Python Distribution

, 27 Feb 2019
Jeff looks at the performance of random number generation using the Intel Python distribution

Editorial Note

This article is in the Product Showcase section for our sponsors at CodeProject. These articles are intended to provide you with information on products and services that we consider useful and of value to developers.

Jeff compares a stock random number generation for 10,000 numbers, then compares it to the random Intel version. Then Jeff brings in some timers to generate 10,000 random numbers, but then swaps in several different pseudo random number generators, then tests their performance relative to the Mersenne Twister basic random number generator, the MT19937. He also uses the Wichmann–Hill algorithm, the Philox Block cipher algorithms, the MT2203, the SIMD optimized Mersenne Twister, etc. to compare other performances, Then compares how much faster or slower these are to the Mersenne Twister.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Jeffrey T. Fritz
Program Manager
United States United States
Jeff Fritz is a senior program manager in Microsoft’s Developer Division working on the .NET Community Team. As a long time web developer and application architect with experience in large and small applications across a variety of verticals, he knows how to build for performance and practicality. Four days a week, you can catch Jeff hosting a live video stream called 'Fritz and Friends' at twitch.tv/csharpfritz. You can also learn from Jeff on WintellectNow and Pluralsight, follow him on twitter @csharpfritz, and read his blog at jeffreyfritz.com

You may also be interested in...

Comments and Discussions

 
-- There are no messages in this forum --
Permalink | Advertise | Privacy | Cookies | Terms of Use | Mobile
Web04 | 2.8.190306.1 | Last Updated 27 Feb 2019
Article Copyright 2019 by Jeffrey T. Fritz
Everything else Copyright © CodeProject, 1999-2019
Layout: fixed | fluid