240
edits
Changes
→Pi
This is a comparison between two programs that calculate Pi.
* '''Test System Specifications'''
OS: Windows 7 (64-bit)
CPU: Intel Core i3-2350M @ 2.30GHz
The maximum speedup on the test system is approximately 33 times.
* '''Stage 3 - Test Runs'''
The following tests were done on the Matrix server:
4 digits are correct at 10K iterations:
* '''Stage 1 - Big-O:'''
The (predicted) hotspot begins from line 35 and ends at line 44. Although there are two for loops, the outer for loop executes ''n'' / ''stride'' times while the inner for loop executes ''stride'' times; the actual iteration is just ''n'' ( O(n) runtime ).
* '''Stage 2 - Potential Speedup:'''
The maximum speedup on the test system is approximately 44 times.
* '''Stage 3 - Test Runs'''
The following tests were done on the Matrix server:
At around 10K iterations, the first decimal is stable.