Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » UppHub » AngelScript - AngelCode Scripting Library
Re: AngelScript - AngelCode Scripting Library [message #34364 is a reply to message #34355] Fri, 18 November 2011 15:38 Go to previous messageGo to previous message
Sender Ghost is currently offline  Sender Ghost
Messages: 301
Registered: November 2008
Senior Member
Hello, Koldo.

koldo wrote on Fri, 18 November 2011 12:12


It seems worthwhile to include it in Bazaar


For now, I just uploaded it here. Feel free to test it.
koldo wrote on Fri, 18 November 2011 12:12


It would also be very useful to have a benchmark to compare it with this example from Mirek. I would like to add to it the TCC (Tiny C Compiler) part.


Based on AngelScript samples, I added the same calculation functions for Mirek source code, with following results (for MSC9 compiler in optimal mode):
1 / (1 - x * y + x - y) = -0.01851851852
fn->Execute() = -0.01851851852
sum = 5190404.858
sum = 5190404.858
sum = 5190404.858
sum = 5190404.858
sum = 5190404.858
TIMING AngelScript (fully interpreted): 110.00 ms - 110.00 ms (110.00 ms / 1 ), min: 110.00 ms, max: 110.00 ms, nesting: 1 - 1
TIMING AngelScript (interpreted): 332.00 ms - 332.00 ms (332.00 ms / 1 ), min: 332.00 ms, max: 332.00 ms, nesting: 1 - 1
TIMING Direct         : 14.00 ms - 14.00 ms (14.00 ms / 1 ), min: 14.00 ms, max: 14.00 ms, nesting: 1 - 1
TIMING Compiled       : 58.00 ms - 58.00 ms (58.00 ms / 1 ), min: 58.00 ms, max: 58.00 ms, nesting: 1 - 1
TIMING Interpreted    : 807.00 ms - 807.00 ms (807.00 ms / 1 ), min: 807.00 ms, max: 807.00 ms, nesting: 1 - 1

But need to note, that it is also possible to bind compiled functions to script functions, cache compiled functions, etc. Therefore, the real optimized results might be different.

The changed package could be found in the attachments.

[Updated on: Fri, 18 November 2011 15:43]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: PopEasy
Next Topic: Updated Protect package
Goto Forum:
  


Current Time: Thu Aug 28 20:37:29 CEST 2025

Total time taken to generate the page: 0.06686 seconds