Home » Tip Bank » Web Development » Javascript And Other Client Scripting
  • Email Article
  • Comment on this Article
  • Share Article
    • Digg
    • del.icio.us
    • Newvine
    • furl
    • StumbleUpon
    • BlinkList
    • Newsvine
    • Magnolia
    • Facebook
    • Tailrank
    • Slashdot
    • Technorati
    • Google Bookmarks
    • Yahoo Favorites
    • Windows Live
    • Ask
Language: Enterprise
Expertise: Beginner
Sep 4, 2017

Benchmarking the Speed of JavaScript/Angular Functions

See how to use the console's time and timeend functions to capture time taken for a block of script to execute.

See below for a simple example.

//start the timer
console.time('Start:Filter');
//the Filter code
//console.timeEnd('End:Filter');
Srinath M S
 
Submit a Tip
Browse "Web Development" Tips
Browse All Tips
sitepoint.com
javascriptweekly.com