lua-users home
lua-l archive

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


Question, what's the point of posting executables? Isn't this better if you tell what patches you made? Moreover, maybe they do something malicious.
As I remember you started the thread about optimizations patches and they were rejected.
I don't want to argue whether you should optimize this or not, but for me, it seems like you can't accept opinions from the previous thread.  

On Thu, Dec 10, 2020 at 3:53 PM Ranier Vilela <ranier.vf@gmail.com> wrote:
I made a little optimization through the Lua code.
But I learned that testing Lua is not easy.
With Linux Ubuntu, I was able to reduce the testing time from 10.42s to 9.95s.
With Windows, for now, without tests.

I also tested factorial.lua on Windows 64 bits (msvc 2019 64 bits):

Best Lua result (5.4.2 last git):
0.054000
0.055000
0.055000
0.055000
0.055000
0.064000
0.051000
0.051000
0.056000
0.051000
0.055000
0.054000
Averange: 0.054667
Three 0.051000

Best Lua result (patched):
0.053000
0.055000
0.051000
0.051000
0.051000
0.051000
0.051000
0.055000
0.055000
0.055000
0.059000
0.055000
Averange: 0.053500
Five 0.051000

It's not very impressive ...

Link to executables:
https://drive.google.com/drive/folders/1FAG5CZdNIC69dFZ1Z_iFfd6JtscF737g?usp=sharing

regards,
Ranier Vilela