Wedgetail

Time your functions in your tests

Wedgetail is a small and simple profiler. It’s focus is to provide timing information for a large number of invocations of the same function. This allows you to derive meaningful statistics of the performance of that function.

Wedgetail is added to your tests, and can help you ensure you’re not adding code that is dramatically slowing down your app or module.

Reviews

Discussion

You need to become a Contributor to join the discussion - Find out how.
Jacqueline von Tesmar@jacqvon · Community at Product Hunt ⚡️
Hey @ojkelly, This is helpful. What made you decide to build this? Have others found it helpful as well?
Owen KellyMaker@ojkelly · Fullstack Engineer
@jacqvon I wrote it a few days ago, for another package I'm making https://github.com/ojkelly/wahn That package is an access control library, and it needs to be fast. So I wanted to be able to enforce the required minimum performance in a test. That way, I can know if a new feature, or some new code will have a negative impact on performance.