÷

 Step 1 : Are the Lua LuaJIT 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 Lua LuaJIT program used compared to the fastest JavaScript V8 program.


 Step 2 : Are the Lua LuaJIT 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 Lua LuaJIT program used compared to the fastest JavaScript V8 program.

 Lua LuaJIT used what fraction? used how many times more? 
Benchmark Time Memory Code
 pidigits1/2371/16±
 fannkuch1/61/9±
 k-nucleotide1/5±
 spectral-norm1/51/13±
 n-body1/41/23±
 reverse-complement1/3±±
 fasta1/21/19±
 binary-trees±
 regex-dna±±

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

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

Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
 pidigits 
Lua LuaJIT0.990.991,296609  0% 0% 1% 100%
JavaScript V8235.04235.0421,172609  0% 0% 0% 100%
 fannkuch 
Lua LuaJIT113.11113.10856492  0% 0% 0% 100%
JavaScript V8707.22707.198,088488  0% 0% 0% 100%
 k-nucleotide 
Lua LuaJIT65.6365.63487,092613  0% 0% 0% 100%
JavaScript V8355.20355.19332,880390  0% 1% 0% 100%
 spectral-norm 
Lua LuaJIT15.6915.691,076329  0% 0% 0% 100%
JavaScript V881.1581.1413,880311  0% 0% 0% 100%
 n-body 
Lua LuaJIT45.4445.438681197  0% 0% 0% 100%
JavaScript V8200.11200.1020,3121287  0% 0% 0% 100%
 reverse-complement 
Lua LuaJIT13.2513.25473,416538  0% 0% 0% 100%
JavaScript V839.4039.40317,988456  0% 0% 0% 100%
 fasta 
Lua LuaJIT16.3016.301,2001039  0% 0% 0% 100%
JavaScript V840.0840.0822,488923  0% 0% 0% 100%
 binary-trees 
Lua LuaJIT147.96147.95877,760446  0% 0% 0% 100%
JavaScript V895.6695.67188,024467  0% 0% 0% 100%
 regex-dna 
Lua LuaJIT38.8638.86297,112427  0% 0% 0% 100%
JavaScript V85.635.63211,488373  0% 0% 0% 100%
 mandelbrot 
Lua LuaJIT0.200.20?353  0% 0% 5% 100%
JavaScript V8Failed
 chameneos-redux
   No programs

 Step 4 : Are there other Lua LuaJIT programs for these benchmarks?

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

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

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

Remember - those are just the fastest Lua LuaJIT and JavaScript V8 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.

 Lua LuaJIT : jit compiler fully compatible with lua 5.1 

LuaJIT 2.0 intellectual property disclosure and research opportunities

LuaJIT 2.0.0-beta2 -- Copyright (C) 2005-2009 Mike Pall

Home Page: The LuaJIT Project

Download: LuaJIT Download

Revised BSD license

  Home   Flawed   Fastest   License   Help