Results 1 to 5 of 5

Thread: Timing Functions (UserScripts)

Threaded View

  1. #1

    Joined
    Jun 2012
    Posts
    2,270
    Pronouns
    He / Him
    Userbars
    40
    Thanks
    1,505
    Thanked
    2,191/821
    DL/UL
    16/0
    Mentioned
    232 times
    Time Online
    65d 14h 33m
    Avg. Time Online
    22m

    Timing Functions (UserScripts)

    TLDR: What's a good way to time the speed of my script?
    Inside a function or when I call the function?
    I'm currently using performance.now() to time, should I use this?




    I'm working on a main shop ABer and I'm working on solving pet captcha portion.
    I know there's a publicly-available method of solving this captcha but I decided to try to work on my own.

    After completing mine, I believe I might have something that's more accurate and faster.
    The improved accuracy is a certainty, but I want to make sure that my captcha solving function is not slowed down by this.
    How should I measure how long my function takes to solve?



    This is what I'm doing currently:



    Should I be timing when I call the function instead of inside the function itself?





  2. The Following User Says Thank You to Shawn For This Useful Post:

    npm (05-07-2021)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •