Click here to Skip to main content
15,891,033 members
Articles / Programming Languages / Python
Article

Python Random Number Generation Performance with the Intel Python Distribution

27 Feb 2019CPOL 5.9K   7  
Jeff looks at the performance of random number generation using the Intel Python distribution

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)


Written By
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

Comments and Discussions

 
-- There are no messages in this forum --