lua-users home
lua-l archive

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


On 20/07/15 17:00, Roberto Ierusalimschy wrote:
> I was doing some quick-and-dirty benchmarks about 'table.move'. The
> file 'temp' is here:
...
> Now, see how the times change with the name of the executable:
> 
> roberto@arraial:~/prj/lua$ lua temp
> 0.91
> roberto@arraial:~/prj/lua$ lua temp
> 0.91
> roberto@arraial:~/prj/lua$ mv lua lua1
> roberto@arraial:~/prj/lua$ lua1 temp
> 0.57
> roberto@arraial:~/prj/lua$ lua1 temp
> 0.57
> roberto@arraial:~/prj/lua$ mv lua1 sol
> roberto@arraial:~/prj/lua$ sol temp
> 0.91
> roberto@arraial:~/prj/lua$ sol temp
> 0.91
> roberto@arraial:~/prj/lua$ mv sol sol1
> roberto@arraial:~/prj/lua$ sol1 temp
> 0.57
> roberto@arraial:~/prj/lua$ sol1 temp
> 0.58

What happens if you use full paths to the executable? That is, is it
just the file name itself, or something to do with argv data.

Scott