÷

 1 : Are the JavaScript TraceMonkey programs faster? At a glance.

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

Each chart bar shows, for one unidentified benchmark, how much the fastest JavaScript TraceMonkey program used compared to the fastest Perl program.


 2 : Are the JavaScript TraceMonkey programs faster? Approximately.

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

Each table row shows, for one named benchmark, how much the fastest JavaScript TraceMonkey program used compared to the fastest Perl program.

 JavaScript TraceMonkey used what fraction? used how many times more? 
Benchmark Time Memory Code Reduced N
 n-body1/71,280×± 5,000,000
 spectral-norm1/51/21/3
 binary-trees1/4± 16
 fasta1/241×±
 regex-dna±±
 fannkuch1/3±
 k-nucleotide1/31/2
 reverse-complement
 pidigits333×16× 6,000

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

 3 : Are the JavaScript TraceMonkey programs faster? Measurements.

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

For each named benchmark, measurements of the fastest JavaScript TraceMonkey program are shown for comparison against measurements of the fastest Perl program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ~ CPU Load
 n-body N = 5,000,000 reduced workload 
JavaScript TraceMonkey22.4522.473,293,1761287  100% 0% 0% 0%
Perl168.45168.442,5721140  0% 100% 0% 0%
 spectral-norm 
JavaScript TraceMonkey58.4058.414,428311  0% 100% 0% 0%
Perl1,137.10285.5510,976846  100% 100% 100% 100%
 binary-trees N = 16 reduced workload 
JavaScript TraceMonkey12.7112.71154,316467  100% 0% 0% 0%
Perl50.6150.6170,092541  0% 0% 0% 100%
 fasta 
JavaScript TraceMonkey135.09136.49104,300923  30% 21% 24% 28%
Perl314.46314.462,548934  100% 0% 0% 0%
 regex-dna 
JavaScript TraceMonkey10.7910.80636,800365  0% 100% 0% 0%
Perl38.6112.84167,208527  78% 66% 76% 81%
 fannkuch 
JavaScript TraceMonkey2,255.132,255.052,688488  14% 51% 34% 0%
Perl3,749.89942.908,808471  99% 100% 100% 100%
 k-nucleotide 
JavaScript TraceMonkey443.71444.531,057,340423  98% 1% 1% 0%
Perl256.1578.582,883,780648  81% 71% 88% 84%
 reverse-complement 
JavaScript TraceMonkey44.4944.491,377,688456  100% 0% 0% 0%
Perl5.255.25431,496298  100% 0% 0% 0%
 pidigits N = 6,000 reduced workload 
JavaScript TraceMonkey1,106.851,106.7957,796609  1% 100% 1% 1%
Perl3.323.323,548385  100% 0% 0% 0%
 mandelbrot
JavaScript TraceMonkeyFailed
 chameneos-redux
   No program

 JavaScript TraceMonkey : ubiquitous web-browser embedded scripting  

"Trace-based Just-in-Time Type Specialization for Dynamic Languages" pdf

mozilla-central-6282cd265a5c

Home Page: Introduction to the JavaScript shell

Download: Building SpiderMonkey tip

Revised BSD license