AutoHotkey Community

It is currently May 26th, 2012, 8:05 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Performance junkie
PostPosted: July 13th, 2009, 4:05 am 
Offline

Joined: December 25th, 2008, 3:50 pm
Posts: 23
Location: 50° lat.
Can anybody enlighten me as to the interpretation approach adopted by AHK? Referring to this discrimination, please don't tell me it falls into category #1.

My motivation for raising this question is grounded in a usage-specific interest in algorithmic efficiency. Having come to learn about these numbers [under the heading "Comparing Languages" towards the bottom], I shivered. Good God, GCC 3.2.3 compiled C code runs 26x while Ruby's evaluates a single time. JavaScript in FF1 was fiftyfold slower than the aforementioned benchmark.

Am I vainly fighting for milliseconds by considering which condition to evaluate first in an if statement given a short-circuit evaluation strategy?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 14th, 2009, 12:45 am 
Offline

Joined: November 27th, 2008, 9:44 am
Posts: 62
I think it depends on what you're doing. From another page on that guy's site:
Quote:
This page links to two benchmarks I've used to evaluate computer performance ever since 1980. They focus on things which matter to me—floating point computation speed, evaluation of trigonometric functions, and matrix algebra. If you're interested in text searching or database retrieval speed, you should run screaming from these benchmarks.


AHK is plenty fast for what I use it for (the standard "different tools for different tasks" argument).

Edit: it can't actually be true that Visual Basic .NET is faster than C for those benchmarks, can it?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 14th, 2009, 10:28 am 
Offline

Joined: June 18th, 2009, 11:13 pm
Posts: 73
Hello,

I rather give an example than try to understand what exactly you are looking for. Just yesterday I benchmarked My C#-HelloWorld against AHK.
The code was
Code:
myvar:=0
Loop, 1222333444
     MyVar++

MsgBox % MyVar

for AHK and analog for C#.

C# __5'200 ms
AHK 457'190 ms
Factor: *88

Unfortunately it takes several hundred ms to call a C#-tool via AHK (using CMDret), otherwise I would outsource some calculations on a broader scale.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 14th, 2009, 11:20 am 
Offline

Joined: October 1st, 2005, 9:55 pm
Posts: 775
Location: Texas, USA
OK, I'll answer the question posed. Category 2. Faster than a simple interpreter but not nearly as fast as compiled or JIT compiled code.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: [VxE], Google Feedfetcher, jrav and 1 guest


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group