[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua Patterns Viewer and Lua Infographics announcement
- From: Spar <developspartv@...>
- Date: Thu, 12 Nov 2020 01:20:25 +0300
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?
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:
i = i + 1
until i> = 100000
So, like C, it only takes 0.01s to get the result.