3 ms·
Thanks for the explanation. On your machine what time does it take to color all the numbers on : IE10, Firefox and Chrome ?
by vmarsy 13y ago
Thanks for the explanation.
On your machine what time does it take to color all the numbers on : IE10, Firefox and Chrome ?
- swannodette 13y agoFF probably takes about the same time - Chrome takes only a 5-6 seconds. I don't have IE 10 handy.
- bzbarsky 13y agoFF takes longer just because the script is pretty broken, imo: it only processes 4-5 chars per 16ms frame, and reflowing/painting each frame tick here is the expensive thing in all browsers. As a result, the behavior of the script in wall-clock time is O(N^2/K) where N is the number of chars and K is the number it processes in a single tick. Furthermore, its CPU consumption is pretty much constant no matter what K is for a wide range of K.