Jump to content

StringInStr Vs StringRegExp


Recommended Posts

You can try a speed test.. StrInString is faster in the test for me.

$sString = 'Autoit'

For $x = 1 to 8
    ConsoleWrite('Test '&$x&@LF)
    $itime = TimerInit()
    If StringInStr($sString,'Autoit') Then ConsoleWrite(@TAB&'Str='&TimerDiff($itime)&' ms'&@lf)
    $itime = TimerInit()
    If StringRegExp($sString,'Autoit') Then ConsoleWrite(@TAB&'Reg='&TimerDiff($itime)&' ms'&@lf)
Next
Don't bother, It's inside your monitor!------GUISetOnEvent should behave more like HotKeySet()
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...