Jump to content

Genrel Question Benchamark of function


oren
 Share

Recommended Posts

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.

Link to comment
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
Link to comment
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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...