Re: [ANN] luabind 0.9-rc1
Daniel Wallin <[email protected]>
| Newsgroups | gmane.comp.lang.lua.bind.user |
|---|---|
| Message-ID | <[email protected]> |
liam mail wrote: > Daniel would you mind sharing your speed tests which you have previously > claimed were on par with Swig as I am not seeing the speeds you are talking > about. I will, but my benchmark suite currently isn't usable outside my development environment. I will try to make time to fix it up, and when I have I will publish the code. > In this releases notes you say "Major optimizations. For example, calling > member functions should be close to twice as fast." > Luabind 9.0rc1 tests http://pastebin.com/f72880a97 > Luabind 8.1 tests http://code.google.com/p/oolua/wiki/Speed_comparisons > > Now I know Luabind can do more than OOLua and I would like to have results > which are fair, so if there is anything which you think I should be doing in > the tests or more defines to speed it up please do inform me. Which compiler are you using for this? I just tried you benchmark, after some fiddling to make it build, and while my results match yours for 0.8.1, for 0.9 they are completely different: > OOLua access (average elapsed time): 0.698 > OOLua passing derived to a function that wants a base (average elapsed time): 0.719 > OOLua passing derived with multiple bases to a function that wants a base (average elapsed time): 0.747 > OOLua virtual function (average elapsed time): 0.338 > OOLua pure virtual function (average elapsed time): 0.341 > OOLua - Lua function which takes a base and calls a virtual function (average elapsed time): 0.309 > Swig access (average elapsed time): 1.582 > Swig passing derived to a function that wants a base (average elapsed time): 0.797 > Swig passing derived with multiple bases to a function that wants a base (average elapsed time): 0.835 > Swig virtual function (average elapsed time): 0.747 > Swig pure virtual function (average elapsed time): 0.755 > Swig - Lua function which takes a base and calls a virtual function (average elapsed time): 0.74 > Luabind access (average elapsed time): 1.089 > Luabind passing derived to a function that wants a base (average elapsed time): 0.659 > Luabind passing derived with multiple bases to a function that wants a base (average elapsed time): 0.673 > Luabind virtual function (average elapsed time): 0.515 > Luabind pure virtual function (average elapsed time): 0.517 > Luabind - Lua function which takes a base and calls a virtual function (average elapsed time): 0.502 This is with: gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4) -- Daniel Wallin BoostPro Computing http://www.boostpro.com ------------------------------------------------------------------------------ Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev