Ubuntu : Intel® Q6600® one core |
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.
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 | |
| pidigits | 1/237 | 1/16 | ± | |
| fannkuch | 1/6 | 1/9 | ± | |
| k-nucleotide | 1/5 | ± | 2× | |
| spectral-norm | 1/5 | 1/13 | ± | |
| n-body | 1/4 | 1/23 | ± | |
| reverse-complement | 1/3 | ± | ± | |
| fasta | 1/2 | 1/19 | ± | |
| binary-trees | 2× | 5× | ± | |
| regex-dna | 7× | ± | ± | |
± read the measurements and then read the program source code.
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 LuaJIT | 0.99 | 0.99 | 1,296 | 609 | 0% 0% 1% 100% |
| JavaScript V8 | 235.04 | 235.04 | 21,172 | 609 | 0% 0% 0% 100% |
| fannkuch | |||||
| Lua LuaJIT | 113.11 | 113.10 | 856 | 492 | 0% 0% 0% 100% |
| JavaScript V8 | 707.22 | 707.19 | 8,088 | 488 | 0% 0% 0% 100% |
| k-nucleotide | |||||
| Lua LuaJIT | 65.63 | 65.63 | 487,092 | 613 | 0% 0% 0% 100% |
| JavaScript V8 | 355.20 | 355.19 | 332,880 | 390 | 0% 1% 0% 100% |
| spectral-norm | |||||
| Lua LuaJIT | 15.69 | 15.69 | 1,076 | 329 | 0% 0% 0% 100% |
| JavaScript V8 | 81.15 | 81.14 | 13,880 | 311 | 0% 0% 0% 100% |
| n-body | |||||
| Lua LuaJIT | 45.44 | 45.43 | 868 | 1197 | 0% 0% 0% 100% |
| JavaScript V8 | 200.11 | 200.10 | 20,312 | 1287 | 0% 0% 0% 100% |
| reverse-complement | |||||
| Lua LuaJIT | 13.25 | 13.25 | 473,416 | 538 | 0% 0% 0% 100% |
| JavaScript V8 | 39.40 | 39.40 | 317,988 | 456 | 0% 0% 0% 100% |
| fasta | |||||
| Lua LuaJIT | 16.30 | 16.30 | 1,200 | 1039 | 0% 0% 0% 100% |
| JavaScript V8 | 40.08 | 40.08 | 22,488 | 923 | 0% 0% 0% 100% |
| binary-trees | |||||
| Lua LuaJIT | 147.96 | 147.95 | 877,760 | 446 | 0% 0% 0% 100% |
| JavaScript V8 | 95.66 | 95.67 | 188,024 | 467 | 0% 0% 0% 100% |
| regex-dna | |||||
| Lua LuaJIT | 38.86 | 38.86 | 297,112 | 427 | 0% 0% 0% 100% |
| JavaScript V8 | 5.63 | 5.63 | 211,488 | 373 | 0% 0% 0% 100% |
| mandelbrot | |||||
| Lua LuaJIT | 0.20 | 0.20 | ? | 353 | 0% 0% 5% 100% |
| JavaScript V8 | |||||
| chameneos-redux | |||||
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.
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.
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