Physics engines/Speed tests

From OLPC
Jump to navigation Jump to search
Info: 
    - Speed tests done with Python 2.5 and the latest engine releases as of 17. March 2008
    - Source Codes: http://svn2.assembla.com/svn/elements/speedtest/
    - Speed Test were made by Joshua Minor and Chris Hager
    - Timings are average after 10 times
    - In test3 and 4, fps are captured to the console all 3 seconds
    - With pressing "1", 25 balls will be added and the element count printed to console
    

  TEST ON AN AMD64 SYSTEM
    > Linux 2.6.19-gentoo-r5 #1 SMP Tue Jul 31 09:51:33 CEST 2007 
    > x86_64 AMD Athlon(tm) 64 Processor 3200+ AuthenticAMD GNU/Linux
=======================================================================

  Test1
  =====
  1. Loading Library
  2. Creating A World with Gravity  

  Box2d:
    real    0m0.054s
    user    0m0.028s
    sys     0m0.008s

  Chipmunk:
    real    0m0.080s
    user    0m0.052s
    sys     0m0.012s


  Test 2
  ======
  1. U Shaped World
  2. Ball radius = 10px
  x. 40.0 fps, 5 iterations per update
    
                   WITH DRAWING            WITHOUT DRAWING (test2-2.py)
  Balls / FPS      Box2d   Chipmunk        Box2d    Chipmunk
    0              40        40            40        40
    200            39        39            40        40
    300            32        34            40        40
    400            26        27            40        40
    500            23        23            40        40
      
      
  Test 3
  ======
  1. Wide ground, small 50px stoppers left and right
  2. Ball radius = 10px
  x. 40.0 fps, 10 iterations per update
  
                   WITH DRAWING            WITHOUT DRAWING (test3-2.py)
  Balls / FPS      Box2d   Chipmunk        Box2d   Chipmunk
    0              40        40            40        40
    100            40        40            40        40
    200            39        39            40        40
    300            32        30            40        40
    400            26        22            40        40
    500            22        18            40        32


  Test 4
  ======
  1. Wide ground, small 50px stoppers left and right
  2. Ball radius = 10px
  x. 50.0 fps, 10 iterations per update
  
                   WITH DRAWING            WITHOUT DRAWING (test4-2.py)
  Balls / FPS      Box2d   Chipmunk        Box2d   Chipmunk
    0              50        50            50        50
    100            50        50            50        50
    200            45        41            50        50
    300            33        30            50        49
    400            27        24            49        40
    500            21        19            49        33


  TESTS ON THE XO LAPTOP
    > Linux 2.6.22-20071121.7.olpc, B4, Build 650
    > AMD Geode with 431.222 MHz, 128 KB Cache, 256 MB RAM
============================================================

  Test 3
  ======
  1. Wide ground, small 50px stoppers left and right
  2. Ball radius = 10px
  x. 40.0 fps, 10 iterations per update
    
                   WITH DRAWING            WITHOUT DRAWING (test3-2.py)
  Balls / FPS      Box2d   Chipmunk        Box2d    Chipmunk
    0              40        40            40        40
    25             40        28            40        40
    50             27        16            40        35
    75             21        15            40        23
    100            15        10            40        16
    125            -        -              40        12
    
  Test 4
  ======
  1. Wide ground, small 50px stoppers left and right
  2. Ball radius = 10px
  x. 50.0 fps, 10 iterations per update
  
                   WITH DRAWING            WITHOUT DRAWING (test4-2.py)
  Balls / FPS      Box2d   Chipmunk        Box2d   Chipmunk
    0              50        50            50        50
    25             42        28            50        50
    50             27        19            50        35
    75             20        13            50        24
    100            16        9             50        18
    125            -        -              50        16
    150            -        -              50        12