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?