Please note, every time you re-run it will produce completely different results, so you can't event say how long it will take a particular function to run.
Unlike console.time(), benchmark allows you to run you suits lots of times, giving your more correct average results.
I have great experience in IT over 12 years: front / back - ends, mobile, system administration and deployment cycle. I implement effective and great software products.
Of course, because processor allocates resources differently.
When we talk about measurement for unit tests or for performance function โ time is the range of allowed min/max.
Striving to become a master Go/Cloud developer; Father ๐จโ๐งโ๐ฆ; ๐ค/((Full Stack Web|Unity3D) + Developer)/g; Science supporter ๐ฉโ๐ฌ; https://coder.today
I agree, the dev must know what a framework does, but framework or vanilla, the LOC used to benchmark (like performance or console) would be better to be in separate .js files, which are not bundled into the product.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Please note, every time you re-run it will produce completely different results, so you can't event say how long it will take a particular function to run.
Unlike console.time(), benchmark allows you to run you suits lots of times, giving your more correct average results.
Or you can test your units with jsperf.com/
Of course, because processor allocates resources differently.
When we talk about measurement for unit tests or for performance function โ time is the range of allowed min/max.
I agree, the dev must know what a framework does, but framework or vanilla, the LOC used to benchmark (like performance or console) would be better to be in separate .js files, which are not bundled into the product.