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 #34480 is a reply to message #34478] Fri, 25 November 2011 08:42 Go to previous messageGo to previous message
mdelfede is currently offline  mdelfede
Messages: 1307
Registered: September 2007
Ultimate Contributor
Sender Ghost wrote on Fri, 25 November 2011 07:58

mdelfede wrote on Fri, 25 November 2011 07:43


BTW, a question.... I still don't understand the timing with RTIMING macro... could you explain a bit more the results ?

For example, what are the 197 ms for fully interpreted and the 770 ms for interpreted ?


Hello, Massimo.

RTIMING is profiling macro for source code scopes. In this case for:
	{
		RTIMING("Interpreted");
		double sum = 0;
		// ...
		RDUMP(sum);
	}
	// ...
	{
		RTIMING("Squirrel (fully interpreted)
		using namespace Sqrat;

		double sum = 0;
		// ...
		RDUMP(sum);
	}

RTIMING writes results to application *.log file, even in Release mode. TIMING for Debug.


The time given is just the time spent inside block ? Because I see than that Squirrel fully interpreted is quite faster than interpreted case.....
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.

I mean, usually script compiling is done once and the important stuff is execution speed.

@Unodgs : I like squirrel because it's simple, powerful and it forces you to declare variables, even if untyped.... I hate javascript because of this lack which makes very easy to introduce hidden bugs just because of mispelled vars.

Max
 
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: Fri Mar 29 00:31:07 CET 2024

Total time taken to generate the page: 0.01041 seconds