lua-users home
lua-l archive

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

Hi Ranier.
The Fibonacci test was chosen because it was the first that came to my mind, I took it from PIL. But yeah it seems not fair to compare Lua 5.4 with LuaJIT in the conclusion.
I also had to use `repeat until` because Lua didn't have for loops until version 4.0.  
What benchmark example do you suggest instead?

On Wed, Nov 11, 2020 at 11:26 PM Ranier Vilela <> wrote:
Em qua., 11 de nov. de 2020 às 14:27, Spar <> escreveu:

2. Lua Infographics
A collection of charts and infographics about Lua such as:
- Lua libraries names, dependencies and pureness.
- Lua activity and popularity.
- Lua speed benchmarks (From 1.0 to 5.4.1).
I don't think fibonacci is a good test for benchmarks, with dynamic languages like Lua.
LuaJIT, like C, has the ability at compile time, to process and save the block result:
fact (16)
i = i + 1
until i> = 100000
So, like C, it only takes 0.01s to get the result.

Ranier Vilela