This week's book giveaway is in the Server-Side JavaScript and NodeJS forum.
We're giving away four copies of Micro Frontends in Action and have Michael Geers on-line!
See this thread for details.
Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Measure peformance of your JavaScript code with simpleperfo.js

Ranch Hand
Posts: 310
MS IE Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • 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
That's my roommate. He's kinda weird, but he always pays his half of the rent. And he gave me this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic