Announcement

Collapse
No announcement yet.

AutoPlay Media Studio 8.0 vs LuaJIT 2.0-beta4 (x86) vs Lua 5.2-work2

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • RizlaUK
    replied
    is Rizla's point a fair one though Sakuya?
    it was IP's point, i actully agreed with him......now somebody shoot me for having an opinion!

    Leave a comment:


  • Imagine Programming
    replied
    Thank you Riz I second that! :yes

    Leave a comment:


  • RizlaUK
    replied
    I think having a support base is an integral part of these forums...
    agreed :yes

    Do you really have to back up literally everything that RizlaUK says?
    yes, because im always right!

    I hope this doesn't come off as rude to you
    how else can it come across, it sounds like the rant of a spoilt 14yo that spat the dummy out because no-one agreed with him!

    Leave a comment:


  • Imagine Programming
    replied
    Excuse me Sakuya, I was not backing him up in the first place, since I first wrote that it was not comparible because of the window etc
    Secondly, I was simply agreeing Is that illegal? And I agree with Centauri as well, if that's okay with you!

    And yes, this comes of rude Because frankly, it's not really your business who I agree with right?

    Leave a comment:


  • Tone
    replied
    ~~ Thank you ~~

    Leave a comment:


  • Sakuya
    replied
    Originally posted by Tone View Post
    at least we ended up laughing - is Rizla's point a fair one though Sakuya?
    Yeah, I'll do further benchmarking. Maybe wxLua but I guess that'll be more lightweight than an AutoPlay application.

    Leave a comment:


  • Tone
    replied
    at least we ended up laughing - is Rizla's point a fair one though Sakuya?

    Leave a comment:


  • Centauri Soldier
    replied
    Originally posted by Sakuya View Post
    Do you really have to back up literally everything that RizlaUK says? (i don't mean just this thread.)
    I think having a support base is an integral part of these forums...does someone want to back me up on that? :P

    Leave a comment:


  • Sakuya
    replied
    Originally posted by Imagine Programming View Post
    Indeed, there is so much more execution to be done in a GUI app.
    Do you really have to back up literally everything that RizlaUK says? (i don't mean just this thread.)

    (I hope this doesn't come off as rude to you, I'm just wondering.)
    Last edited by Sakuya; 06-20-2010, 11:06 AM.

    Leave a comment:


  • Imagine Programming
    replied
    Originally posted by RizlaUK View Post
    its true, i can get lua 5.1 to process a table containing over 1500 items in less than 1 second, add this to a PB UI and it takes over 8 seconds, add it to a AMS UI and it takes 15 seconds

    console apps are notoriously faster than windowed apps, its not fair to compare them in a speed test
    Indeed, there is so much more execution to be done in a GUI app.

    Leave a comment:


  • RizlaUK
    replied
    its true, i can get lua 5.1 to process a table containing over 1500 items in less than 1 second, add this to a PB UI and it takes over 8 seconds, add it to a AMS UI and it takes 15 seconds

    console apps are notoriously faster than windowed apps, its not fair to compare them in a speed test

    Leave a comment:


  • Imagine Programming
    replied
    Originally posted by Sakuya View Post
    I'm fully aware of that but there's still a massive margin in between the results.
    Yes, I know, but you can't compare this to AMS. If you use the Lua 5.2 works or LuaJIT for a large engine like AMS', you'll get some slower results too.
    Sure, it might be a little bit faster when using 5.2 or JIT, but the difference won't be huge.

    Leave a comment:


  • Sakuya
    replied
    I'm fully aware of that but there's still a massive margin in between the results.

    Leave a comment:


  • Imagine Programming
    replied
    Sakuya, don't forget that this is not really a valid test. The AMS test has a window, and tons of other stuff it has to do.
    I'm sure that, when only the lua state and a console was used it'll be much faster.

    Leave a comment:


  • AutoPlay Media Studio 8.0 vs LuaJIT 2.0-beta4 (x86) vs Lua 5.2-work2

    What do you think about these statistics?

    AutoPlay Media Studio 8.0



    LuaJIT 2.0.0 (beta4)
    (LuaJIT has proved to be tons faster than the default Lua VM.)



    Lua 5.2 work2
    (This is the binary downloaded from here.)



    Now I might be doing it wrong but LuaJIT does this in no time at all, Lua 5.2-w2 takes 8 seconds. However, AutoPlay takes a good 40+ seconds.

    The source code is here.
    Code:
    function sieve(n)
      x = {}
      iter = 0
      repeat
        x[1] = 0
        i = 2
        repeat
          x[i] = 1
          i = i + 1
        until i > n
        p = 2
        while(p * p <= n) do
          j = p
          while(j <= n) do
            x[j] = 0
            j = j + p
          end
          repeat
            p = p + 1
          until x[p] == 1
        end
        iter = iter + 1
      until iter == 101
    end
    
    print("Sieve of Eratosthenes - Lua Benchmark test 0.00001")
    print("Start testing .....")
    start = os.time()
    sieve(100000);
    stop = os.time()
    print("Done!")
    print("Total Time = "..(stop - start))
    To get the output into a paragraph you must rewrite print, like this.

    Code:
    print = function(...)
         Paragraph.SetText("Paragraph1", Paragraph.GetText("Paragraph1").."\r\n"..Table.Concat(arg, " ", 1, -1));
    end
    Try this out, tell me what you get.

    I've attached the LuaJIT binary I compiled using Visual Studio 2008 on Windows Server 2003 and Lua 5.2 work2 found on the Lua.org website.

    Extract them and run sieve.bat.
    Attached Files
Working...
X