lua-users home
lua-l archive

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


On Mon, Dec 29, 2008 at 3:24 PM, Samuel Greear wrote:
> ...I have seen a 1.5-28% performance increase...
> http://evilcode.net/sjg/patches/lua.patch

Here's a few runtime comparisons on some of my Lua only code, with Lua
compiled using "make linux" (gcc -O2) under Cygwin / P4.

Runtimes for the pure Lua implementation of the DEFLATE/gzip
algorithm[1] on decompressing lua-5.1.4.tar.gz with CRC checking
enabled:

  unpatched: 10.107 / 10.831 / 10.112 s
  patched:     9.306  / 9.285   / 9.308   s
  (About 10% faster.)

Runtimes for 50 iterations of the LuaMatrix[2] test suite:

  unpatched: 10.931 / 10.901 / 10.872 s
  patched:     11.283 / 11.095 / 10.881 s
  (Not conclusive.)

Runtimes for StringLibraryInLua[3] performance test (perftest.lua):

  unpatched: 35.615 / 36.759 / 34.527 s
  patched:    36.149 / 35.362 / 33.285 s
  (Not conclusive.)

[1] http://lua-users.org/wiki/ModuleCompressDeflateLua
[2] http://lua-users.org/wiki/LuaMatrix
[3] http://lua-users.org/wiki/StringLibraryInLua