/mobile Handheld Friendly website

÷

 Step 1 : Are the 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 program used compared to the fastest Scala program.


Look at speed another way - look at a box plot of Time-used data.

 Step 2 : Are the 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 program used compared to the fastest Scala program.

  used what fraction? used how many times more? 
Benchmark Time Memory Code
  used what fraction? used how many times more? 
Time-used  |-  |---  25% median  75%  ---|  -|
(Elapsed secs)       

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

 Step 3 : Are the 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 program are shown for comparison against measurements of the fastest Scala program.

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 binary-trees 
No program
Scala0.380.35204641  17% 31% 75% 14%
 regex-dna 
No program
Scala1.160.58148,228723  32% 41% 42% 91%
 n-body 
No program
Scala0.480.4417,0641358  2% 7% 98% 5%
 fannkuch-redux 
No program
Scala0.880.382081017  53% 51% 45% 89%
 spectral-norm 
No program
Scala0.500.28208720  30% 24% 89% 29%
 fasta 
No program
Scala0.350.292361080  7% 7% 11% 97%
 fasta-redux 
No program
Scala0.400.292081372  17% 21% 7% 93%
 pidigits 
No program
Scala0.600.402041125  15% 24% 15% 97%
 k-nucleotide 
No program
Scala2.280.94107,7921625  55% 66% 66% 61%
 reverse-complement 
No program
Scala0.230.20?505  0% 10% 5% 100%
 mandelbrot 
No program
Scala0.640.34208796  29% 29% 97% 36%

 Step 4 : Are there other programs for these benchmarks?

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

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

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

Remember - those are just the fastest and Scala 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.

  :  

online book "Programming in Lua" by Roberto Ierusalimschy

"Game Developers Conference 2010 Lua Tutorial" (slides)

Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio

Home Page: http://www.lua.org/

Download: http://www.lua.org/download.html

Revised BSD license

  Home   Conclusions   License   Help