Changes between Version 2 and Version 3 of RunTimePerformance
- Timestamp:
- 02/14/17 04:00:29 (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
RunTimePerformance
v2 v3 10 10 == Example == 11 11 From the discussion thread in the forums (Why so slow?), some modified versions of the code are available for comparison: 12 * With Python 3.6.0, running against a slightly modified version (for tracking time) with 50 0,000 loops yielded a run-time of 0.66819638 seconds.12 * With Python 3.6.0, running against a slightly modified version (for tracking time) with 50,000 loops yielded a run-time of 0.66819638 seconds. 13 13 * An initial port (which included substantial refactoring to identify the cause of the different final results) with 50,000 loops yielded a run-time of 98.284 seconds 14 14 * After numerous attempts at speed improvement, the cobra code was sped up to a run-time of 0.057 seconds (or 11x faster than python, or 1,724x faster than original implementation.