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 » Squirrel - the programming language
Re: Squirrel - the programming language [message #34481 is a reply to message #34480] Fri, 25 November 2011 08:55 Go to previous messageGo to previous message
Sender Ghost is currently offline  Sender Ghost
Messages: 301
Registered: November 2008
Senior Member
mdelfede wrote on Fri, 25 November 2011 08:42

BTW, looking into your example, it seems to me that the squirrel time is the whole of compiling+running the script (why running ?) and evaluating the function; it would be more interesting to take evaluation part of pre-compiled script separate.

Because without running, it will not find Squirrel function to get interpreted result.
Results for pre-compiled code:
1 / (1 - x * y + x - y) = -0.01851851852
fn->Execute() = -0.01851851852
sum = 5190404.858
sum = 5190404.858
sum = 5190404.858
sum = 5190404.858
TIMING Squirrel (fully interpreted): 195.00 ms - 195.00 ms (195.00 ms / 1 ), min: 195.00 ms, max: 195.00 ms, nesting: 1 - 1
TIMING Direct         : 13.00 ms - 13.00 ms (13.00 ms / 1 ), min: 13.00 ms, max: 13.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    : 759.00 ms - 759.00 ms (759.00 ms / 1 ), min: 759.00 ms, max: 759.00 ms, nesting: 1 - 1
Results by sections:
Toggle Spoiler


1 / (1 - x * y + x - y) = -0.01851851852
fn->Execute() = -0.01851851852
sum = 5190404.858
sum = 5190404.858
sum = 5190404.858
sum = 5190404.858
TIMING Squirrel (fully interpreted): 222.00 ms - 222.00 ms (222.00 ms / 1 ), min: 222.00 ms, max: 222.00 ms, nesting: 1 - 1
TIMING Squirrel (running and getting function):  0.00 ns -  0.00 ns ( 0.00 ns / 1 ), min:  0.00 ns, max:  0.00 ns, nesting: 1 - 1
TIMING Squirrel (compiling):  0.00 ns -  0.00 ns ( 0.00 ns / 1 ), min:  0.00 ns, max:  0.00 ns, 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       : 59.00 ms - 59.00 ms (59.00 ms / 1 ), min: 59.00 ms, max: 59.00 ms, nesting: 1 - 1
TIMING Interpreted    : 848.00 ms - 848.00 ms (848.00 ms / 1 ), min: 848.00 ms, max: 848.00 ms, nesting: 1 - 1

Edit: Updated to Squirrel 3.0.7 version. The results from previous versions.

[Updated on: Wed, 14 January 2015 19:03]

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
Read Message
Previous Topic: XMLMenu - User configurable menu system - completed
Next Topic: SysInfo package
Goto Forum:
  


Current Time: Wed Apr 24 21:55:15 CEST 2024

Total time taken to generate the page: 0.02408 seconds