[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Uncommon OOP in Lua: right or wrong?
- From: Alexander Gladysh <agladysh@...>
- Date: Sat, 25 Sep 2010 01:33:59 +0400
On Sat, Sep 25, 2010 at 01:20, Rebel Neurofog <firstname.lastname@example.org> wrote:
> I've made some benchmarking. This may help you to decide which way
> fits your requipments.
> Take a look: http://lua-users.org/wiki/ObjectOrientationClosureApproach
You should probably add metatable-based approach to the benchmark.
Also you should measure object creation and method calls separately. For different kinds of objects one may be more important than another.
See here for example benchmark:
To run, clone repository, cd to it and run
./run_benchmark.sh bench/factory.lua 1e6