![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Multiple timers in single instance to measure repetitive events performance
Multiple timers in single instance to measure repetitive events performance
Grab it from npm and use with your favorite bundler:
npm install avtimer --save
Or download from CDN:
<script src='https://cdn.rawgit.com/anvaka/avtimer/v1.0.0/dist/avtimer.min.js'></script>
If you downloaded from CDN the library will be available under avTimer global name.
// Give your timer a friendly name:
var stopIteratorTimer = avTimer('Iterate over binary tree');
// do some work here. E.g. iterate over tree. When you are done, stop the timer:
stopIteratorTimer();
// This will print all timers that you've created, along with how many times
// each timer was called, how much time was spent total, and what's the average
// time cost per operation
avTimer.print();
// Prints:
//
// Iterate over binary tree called 1500 times and took 3612.345ms total.
// That is 2.408per call on average
// You can also print individual timers, by passing name:
avTimer.print('Iterate over binary tree');
Most of the time using performance profiling tools in your favorite browser should be better than using this library. However this library can be useful if you want to track performance of two code branches, that call shared functionality.
In my case I needed to traverse quad tree in multiple code paths, multiple event loop cycles. I was not sure which code path was more expensive. Performance profiler was showing that tree iterator was the slowest, but I couldn't figure out which code path to keep.
MIT
FAQs
Multiple timers in single instance to measure repetitive events performance
The npm package avtimer receives a total of 0 weekly downloads. As such, avtimer popularity was classified as not popular.
We found that avtimer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.