÷

 Step 1 : Are the Python Psyco programs faster? At a glance.

This chart shows 3 comparisons - Time-used, Memory-used and Code-used ~ speed and size.

Each chart bar shows, for one unidentified benchmark, how much the fastest Python Psyco program used compared to the fastest JavaScript SpiderMonkey program.


 Step 2 : Are the Python Psyco programs faster? Approximately.

This table shows 3 comparisons - Time-used, Memory-used and Code-used ~ speed and size.

Each table row shows, for one named benchmark, how much the fastest Python Psyco program used compared to the fastest JavaScript SpiderMonkey program.

 Python Psyco used what fraction? used how many times more? 
Benchmark Time Memory Code
 fannkuch1/88±
 reverse-complement1/441/4±
 nsieve1/151/8±
 spectral-norm1/111/21±
 fasta1/111/45±
 binary-trees1/101/8±
 nsieve-bits1/81/13±
 n-body1/71/18±
 partial-sums1/51/22±
 k-nucleotide1/51/7±
 recursive1/4±
 regex-dna1/31/9±

± read the measurements and then read the program source code.

 Step 3 : Are the Python Psyco programs faster? Measurements.

This table shows 5 measurements - CPU Time, Elapsed Time, Memory, Code and ≈ CPU Load ~ speed and size.

For each named benchmark, measurements of the fastest Python Psyco program are shown for comparison against measurements of the fastest JavaScript SpiderMonkey program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 fannkuch 
Python Psyco0.153,092434  
JavaScript SpiderMonkey13.43876482  
 reverse-complement 
Python Psyco1.6655,960346  
JavaScript SpiderMonkey73.29200,980305  
 nsieve 
Python Psyco4.2022,976227  
JavaScript SpiderMonkey61.85194,372340  
 spectral-norm 
Python Psyco470.533,240301  
JavaScript SpiderMonkey5,335.0266,808311  
 fasta 
Python Psyco170.343,156913  
JavaScript SpiderMonkey1,799.67142,532791  
 binary-trees 
Python Psyco14.9916,692389  
JavaScript SpiderMonkey150.07136,832467  
 nsieve-bits 
Python Psyco5.975,580294  
JavaScript SpiderMonkey49.2772,680322  
 n-body 
Python Psyco498.083,6441185  
JavaScript SpiderMonkey3,447.9966,4521287  
 partial-sums 
Python Psyco11.723,044411  
JavaScript SpiderMonkey58.5666,480380  
 k-nucleotide 
Python Psyco25.1425,756492  
JavaScript SpiderMonkey125.44191,116423  
 recursive 
Python Psyco0.673,076354  
JavaScript SpiderMonkey2.38868306  
 regex-dna 
Python Psyco6.4319,576355  
JavaScript SpiderMonkey17.16180,280365  
 mandelbrot 
Python Psyco0.303,156513  
JavaScript SpiderMonkeyFailed
 chameneos-redux 
Python Psyco2.043,408813  
No program
 pidigits 
Python Psyco0.803,476490  
No program

 Step 4 : Are there other Python Psyco programs for these benchmarks?

Remember - those are just the fastest Python Psyco and JavaScript SpiderMonkey programs measured on this OS/machine. Check if there are other implementations of these benchmark programs for Python Psyco.

Maybe one of those other Python Psyco programs is fastest on a different OS/machine.

 Step 5 : Are there other faster programs for these benchmarks?

Remember - those are just the fastest Python Psyco and JavaScript SpiderMonkey programs measured on this OS/machine. Check if there are faster implementations of these benchmark programs for other programming languages.

Maybe one of those other programs is fastest on a different OS/machine.

 Python Psyco : representation-based just-in-time specialization 

online article "Representation-based Just-in-time Specialization and the Psyco prototype for Python" (pdf), Armin Rigo

Psyco 1.6

Home Page: http://psyco.sourceforge.net/

Download: http://psyco.sourceforge.net/download.html

Revised BSD license

  Home   Flawed   Fastest   License   Help