Sign in to follow this  
ProtectedMode

Performance

Recommended Posts

I'm sorry if this question has already been asked before, but I can't find any up-to-date benchmarks for Angelscript. The only benchmark I found was from 2009 or something while I see there have been a lot of progress since. I'm especially interested in the performance compared to LuaJIT. Usually I would just benchmark it myself, but I'm not good with benchmarks. Are there any existing, a bit up-to-date benchmarks, or has the performance not changed so much in these years?

Share this post


Link to post
Share on other sites

I'm not aware of any recent benchmarks compared to LuaJIT, but in the project I work on, using our JIT (https://github.com/BlindMindStudios/AngelScript-JIT-Compiler), we typically achieve performance roughly 2x-3x slower than comparable C++, and at least 2x faster than general AngelScript, with specific tasks going much faster and almost as fast as native C++.

Share this post


Link to post
Share on other sites

I'm not aware of any recent benchmarks compared to LuaJIT, but in the project I work on, using our JIT (https://github.com/BlindMindStudios/AngelScript-JIT-Compiler), we typically achieve performance roughly 2x-3x slower than comparable C++, and at least 2x faster than general AngelScript, with specific tasks going much faster and almost as fast as native C++.

Thank you for your reply! This sound pretty much like LuaJIT's performance, and enough in most situations, so I think I will try AngelScript.

Share this post


Link to post
Share on other sites

I'm not aware of any recent benchmarks comparing AngelScript to other scripting engines either.

 

Unless you're planning on doing everything in the script language (e.g. pathfinding, collision detection, particle systems, etc) the performance of any non-interpreted scripting language is likely not going to be an issue, and your choice of scripting engine should probably be based on the the features of the scripting engine instead.

 

At the moment the performance should be on-par to the fastest scripting engines out there. Should anyone find/do a benchmark that shows otherwise, I'd be very interested in taking a look at it. As the author of AngelScript I can tell you that there is still a lot that can be done to improve the runtime performance of AngelScript even further, but I will not spend a lot of time on optimizations unless there is an actual need for the improved performance.

 

Regards,

Andreas

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this