lua-users home
lua-l archive

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


I've got a deal on $149 HP webOS TouchPad,
and bought it right away.

And tested luajit on it (scimark).
It's linux with custom ui, but the PDK (Palm PDK) offers SDL, OpenGLES2, etc. Very cool indeed.

Here is how I built it:

#!/bin/bash
set -e
ROOT=../../../luajit
PDK=/opt/PalmPDK
PDKGCC=$PDK/arm-gcc
make -C $ROOT/src cleaner
make -C $ROOT/src -j amalg TARGET_SONAME=libluajit.so BUILDMODE=dynamic TARGET_DYNXLDOPTS=-Wl,-rpath,'$$\ORIGIN' Q= HOST_CC="gcc -m32" CROSS=$PDKGCC/bin/arm-none-linux-gnueabi- TARGET=arm TARGET_FLAGS="--sysroot $PDKGCC/sysroot" TARGET_SYS=Linux
mv      $ROOT/src/luajit       ../../bin/webOS
mv      $ROOT/src/libluajit.so ../../bin/webOS

afer it:

novacom put file:///media/internal/scimark.lua < ~/p/ufo/samples/bench/scimark.lua

same copy process (novacom put) for libluajit.so and luajit, then just
novaterm, and cd media/internal

root@touchPad:/media/internal# cat /proc/version
Linux version 2.6.35-palm-tenderloin (reviewdaemon@buildoe-43) (gcc version 4.3.3 (Sourcery G++ 4.3-234) ) #1 SMP PREEMPT 129.3.10

root@touchPad:/# uname -a
Linux touchPad 2.6.35-palm-tenderloin #1 SMP PREEMPT 129.3.10 armv7l GNU/Linux

root@touchPad:/# cat /proc/cpuinfo
Processor	: ARMv7 Processor rev 2 (v7l)
processor	: 0
BogoMIPS	: 13.52

Features	: swp half thumb fastmult vfp edsp neon vfpv3
CPU implementer	: 0x51
CPU architecture: 7
CPU variant	: 0x0
CPU part	: 0x02d
CPU revision	: 2

Hardware	: TENDERLOIN
Revision	: 0000
Serial		: 0000000000000000

root@touchPad:/media/internal# ./luajit scimark.lua
Lua SciMark 2010-12-10 based on SciMark 2.0a. Copyright (C) 2006-2010 Mike Pall.

FFT         4.80  [1024]
SOR        17.40  [100]
MC          9.87
SPARSE     10.04  [1000, 5000]
LU         14.41  [100]

SciMark    11.30  [small problem sizes]



root@touchPad:/media/internal# ./luajit -joff scimark.lua
Lua SciMark 2010-12-10 based on SciMark 2.0a. Copyright (C) 2006-2010 Mike Pall.

FFT         3.18  [1024]
SOR         8.43  [100]
MC          2.16
SPARSE      5.39  [1000, 5000]
LU          6.58  [100]

SciMark     5.15  [small problem sizes]


This is with latest LuaJIT I have:

malkia ~/p/luajit $ git log -1
commit d1569a5d6888ecc43c44822afca19461e96af623
Author: Mike Pall <mike>
Date:   Sun Nov 27 12:35:35 2011 +0100

    Fix docs. The code base doesn't work on Windows 98 anymore.

On 5/11/11 10:33 AM, Dimiter "malkia" Stanev wrote:
Some results on Efika MX smartbook (I'm very happy!):

Note: LuaJIT is running with (-joff, e.g. JIT off on this architecture
right now). But even without it, the results are impressive!

I would also test it on the Efika MX smarttop (very small cute device,
but I expect the same results).

This is running on Ubuntu 11.04 (just upgraded it from Ubuntu 10.10).

malkia@genesi:~/p/luajit$ git log -1
commit b79cdba3a06cbabb772535b5bce18d6460135845
Author: Mike Pall <mike>
Date: Tue May 10 16:55:23 2011 +0200

Tuning loop unrolling heuristics again.
malkia@genesi:~/p/luajit$ cat /proc/cpuinfo
Processor : ARMv7 Processor rev 5 (v7l)
BogoMIPS : 799.53
Features : swp half thumb fastmult vfp edsp thumbee neon vfpv3
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x2
CPU part : 0xc08
CPU revision : 5

Hardware : Genesi Efika MX (Smartbook)
Revision : 51030
Serial : 0000000000000000
malkia@genesi:~/p/luajit$ lua ../scimark.lua
Lua SciMark 2010-12-10 based on SciMark 2.0a. Copyright (C) 2006-2010
Mike Pall.

FFT 1.36 [1024]
SOR 2.82 [100]
MC 0.90
SPARSE 1.58 [1000, 5000]
LU 1.89 [100]

SciMark 1.71 [small problem sizes]
malkia@genesi:~/p/luajit$ src/luajit ../scimark.lua
Lua SciMark 2010-12-10 based on SciMark 2.0a. Copyright (C) 2006-2010
Mike Pall.

FFT 2.14 [1024]
SOR 6.49 [100]
MC 1.72
SPARSE 4.70 [1000, 5000]
LU 5.39 [100]

SciMark 4.09 [small problem sizes]
malkia@genesi:~/p/luajit$