Sign in to follow this  
Followers 0
oren

Genrel Question Benchamark of function

4 posts in this topic

I'm building a script to interface with website.

And i know about 4 ways to interface with website

There is Curl but its a external program...

There is Wininet.dll

There is winhttprequest Object

(And there is Inetget but its not subtable for my needes)

What is in you opinion the fastest why?

And how can i benchmark them?

Thanks In Advance.

Share this post


Link to post
Share on other sites



I'm building a script to interface with website.

And i know about 4 ways to interface with website

There is Curl but its a external program...

There is Wininet.dll

There is winhttprequest Object

(And there is Inetget but its not subtable for my needes)

What is in you opinion the fastest why?

And how can i benchmark them?

Thanks In Advance.

Your only criteria is "fastest"? Not a very complicated set of benchmarks. Just use TimerInit()/TimerDiff() to see how long they take.

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

... but make sure to avoid caching when testing because you basically said:

There are four ways

-Curl

-Wininet.dll

-Wininet.dll

-Wininet.dll

There are some more ways (or just a way) posted arround

Edited by trancexx

♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites

Your only criteria is "fastest"? Not a very complicated set of benchmarks. Just use TimerInit()/TimerDiff() to see how long they take.

:)

Well i had some more criteria .. but this are all the ways that support all my criteria.

I'm now building each way and testing there speed with TimerInit/Timerdeif. Its seems that must of the time spet in curl is from this code...

Dim $sOut = ""
While 1
    $sOut &= StdoutRead($iLogCurl)
    If @error Then ExitLoop
WEnd
While 1
    $sOut &= StderrRead($iLogCurl)
    If @error Then ExitLoop
WEnd

... but make sure to avoid caching when testing because you basically said:

There are four ways

-Curl

-Wininet.dll

-Wininet.dll

-Wininet.dll

There are some more ways (or just a way) posted arround

Well you mean that Inetget and winhttp object both using the wininet.dll?

What more ways of cxonecting do you know? I would love the help...

Thanks

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  
Followers 0