lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Mike Pall wrote:
[...]
> Ok, works now. Fix is in git HEAD. Thanks to everyone involved!

Yup, that works --- ta. Here's the benchmarks:

$ time lua nsieve.lua 7
Primes up to  1280000    98610
Primes up to   640000    52074
Primes up to   320000    27608

real	0m7.797s
user	0m7.280s
sys	0m0.510s

$ time luajit-2.0.0-beta6 nsieve.lua 7
Primes up to  1280000    98610
Primes up to   640000    52074
Primes up to   320000    27608

real	0m1.710s
user	0m1.140s
sys	0m0.570s

$ time lua fannkuchredux.lua 9
8629
Pfannkuchen(9) = 30

real	0m9.787s
user	0m8.830s
sys	0m0.820s

$ time luajit-2.0.0-beta6 fannkuchredux.lua 9
8629
Pfannkuchen(9) = 30

real	0m1.290s
user	0m1.280s
sys	0m0.010s

$ time lua scimark.lua
Lua SciMark 2010-12-10 based on SciMark 2.0a. Copyright (C) 2006-2010
Mike Pall.

FFT         0.82  [1024]
SOR         1.84  [100]
MC          0.62
SPARSE      1.02  [1000, 5000]
LU          1.22  [100]

SciMark     1.11  [small problem sizes]

real	0m23.956s
user	0m22.540s
sys	0m1.270s

$ time luajit-2.0.0-beta6 scimark.lua
Lua SciMark 2010-12-10 based on SciMark 2.0a. Copyright (C) 2006-2010
Mike Pall.

FFT         2.28  [1024]
SOR         6.63  [100]
MC          1.71
SPARSE      4.10  [1000, 5000]
LU          5.43  [100]

SciMark     4.03  [small problem sizes]

real	0m28.599s
user	0m26.250s
sys	0m1.960s

$ cat /proc/cpuinfo
Processor	: Feroceon 88FR131 rev 1 (v5l)
BogoMIPS	: 1192.75
Features	: swp half thumb fastmult edsp
CPU implementer	: 0x56
CPU architecture: 5TE
CPU variant	: 0x2
CPU part	: 0x131
CPU revision	: 1

Hardware	: Marvell SheevaPlug Reference Board
Revision	: 0000
Serial		: 0000000000000000


...which is pretty impressive. Can't wait for the JIT.

-- 
┌─── dg@cowlark.com ───── http://www.cowlark.com ─────
│ "I have always wished for my computer to be as easy to use as my
│ telephone; my wish has come true because I can no longer figure out
│ how to use my telephone." --- Bjarne Stroustrup

Attachment: signature.asc
Description: OpenPGP digital signature