Hello everyone, such a problem. It is necessary to draw a table 1000x1000 using Javascript, so that the drawing time takes no more than a second (tobish the execution time of the script). How can this time be measured? What program or what method? Thank you in advance.

    2 answers 2

    var t = (new Date()).getTime(); //рисуем console.log((new Date()).getTime()-t); 

    Although, of course, the rendering time depends on the machine on which the script runs.

    • Thank you ling! - Jet

    It is not entirely clear what javascript drawing time means, but I think that first try Y! Slow for FF or DynaTrace for IE.

    • I tried YSlow, but I didn’t figure out how to measure page load time, can you tell me? - Jet