2 ms·
> ...severely round performance.now(). This sucks, and is a side-effect that I didn't even think about. I guess it's probably pretty effective, but it will mak
by jchw 9y ago
> ...severely round performance.now().
This sucks, and is a side-effect that I didn't even think about. I guess it's probably pretty effective, but it will make benchmarking a lot harder, since you'll probably now have to do a lot more runs.
- user5994461 9y agoDoubt that. The Firefox news said they will round to 20 us. That's much more accurate than necessary to benchmark any software code.
- gchadwick 9y agoIf it was a big issue you can always introduce a 'benchmark mode' switch that allows you to put resolution back into the counter when you want to run a benchmark. Display a 'WARNING BROWSER INSECURE IN THIS MODE' banner for good measure.