lua-users home
lua-l archive

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


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