Wiki

Changes between Version 2 and Version 3 of RunTimePerformance

Show
Ignore:
Timestamp:
02/14/17 04:00:29 (8 years ago)
Author:
torial
Comment:

Fixed 500k typo

Legend:

Unmodified
Added
Removed
Modified
  • RunTimePerformance

    v2 v3  
    1010== Example == 
    1111From 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 500,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. 
    1313 * 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 
    1414 * 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.