Win a copy of Head First Android this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

Measure peformance of your JavaScript code with simpleperfo.js

Ranch Hand
Posts: 310
MS IE Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Ranchers,

Lately I wrote a very simple, but effective, library for measuring performance of JavaScript code. Currently, I have implemented only features to measure function execution times. Here is a link to the project's GitHub repo.

The motivation to write this little project is to create a lightweight and very simple in use library for measuring JavaScript code performance, that doesn't add much ballast to existing projects and can be used even by total JS beginners. The project was born thanks to last Saturday's big boredom

I saw somewhere that Chrome offers some kind of API to measure memory usage, so probably it is the next functionality I will implement when I will have more free time.

The library is licensed under MIT. The algorithm used to measure execution time is described in the readme, and you can of course see the source as well. Example code is available in the repo.

Let me know what do you think, ask any questions, and have fun with the library
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic