The Computer Language
Benchmarks Game

Lua programs versus Java

by benchmark task performance

regex-dna
secs KB gz cpu cpu load
Lua 31.05 379,828 596 31.04 1% 1% 0% 100%
Java 21.40 575,372 1284 21.39 1% 0% 1% 100%
k-nucleotide
secs KB gz cpu cpu load
Lua 174.70 793,696 613 173.24 1% 1% 0% 100%
Java 34.83 1,124,104 1844 34.79 1% 1% 0% 100%
spectral-norm
secs KB gz cpu cpu load
Lua 190.05 1,324 329 190.00 1% 0% 0% 100%
Java 16.22 32,332 950 16.22 0% 1% 1% 100%
n-body
secs KB gz cpu cpu load
Lua 435.86 1,080 1305 435.74 1% 0% 0% 100%
Java 22.68 30,056 1424 22.67 0% 0% 1% 100%
fannkuch-redux
secs KB gz cpu cpu load
Lua 1,786.85 1,008 462 1,786.44 1% 1% 1% 100%
Java 69.27 47,784 1282 69.25 1% 0% 0% 100%
mandelbrot
secs KB gz cpu cpu load
Lua 727.06 1,068 367 726.87 1% 1% 1% 100%
Java 23.93 91,684 796 23.92 1% 1% 1% 100%
binary-trees
secs KB gz cpu cpu load
Lua 417.90 1,672,244 446 417.22 0% 1% 1% 100%
Java 7.39 414,024 583 7.38 1% 1% 1% 100%
fasta
secs KB gz cpu cpu load
Lua   Failed
Java 0.24 2,012 1507 0.24 0% 0% 0% 100%
fasta-redux
secs KB gz cpu cpu load
  No program contribute your program
Java 0.22 1,704 1443 0.20 5% 0% 0% 100%
reverse-complement
secs KB gz cpu cpu load
Lua   Failed
Java 0.24 2,008 745 0.23 0% 0% 8% 100%
pidigits
secs KB gz cpu cpu load
Lua   Failed
Java 0.33 2,020 938 0.30 0% 0% 3% 100%
Lua

Lua 5.3.0 Copyright (C) 1994-2015 Lua.org, PUC-Rio

Java

java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)