lua-users home
lua-l archive

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


On Fri, Apr 15, 2011 at 07:29, Fabio Mascarenhas <mascarenhas@acm.org> wrote:
> Remember that it is easy to combine several different benchmarks in a
> single script, you just have to put each one in a do .. end block and
> time the whole thing.

Only if benchmarks are behaving and not changing global variables etc.

> I have several variations of the Richards benchmark
> (http://labs.oracle.com/people/mario/java_benchmarking/richards/richards.html),
> you can download them from

> http://www.dcc.ufrj.br/~fabiom/richards_lua.zip

> "richards_loop.lua" is the one closest to the C implementation,
> "richards_oo_loop.lua" is a variat that encapsulates the state and
> behavior of each process in
> a Lua table, and "richards_meta.lua" puts the behavior in a metatable.
> The "_tail" variats use tail calls for passing control from one
> process to another instead of a dispatch loop, and the "_cache" variat
> caches metatable access.

Thanks!

> Mike Pall has written a Lua version of scimark (http://math.nist.gov/scimark2/):
>
> http://luajit.org/download/scimark.lua

Right, I forgot about it.

> The WoW Lua community has pure Lua implementations of non-trivial
> algorithms, as they cannot use C extensions. If you ping Jim Whitehead
> I think he can point you in the right direction.

Thank you, but I prefer to check out pre-made benchmarks first — less
work, more reuse :-)

Alexander.