New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

event-loop-lag

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

event-loop-lag - npm Package Compare versions

Comparing version 1.0.3 to 1.1.0

testing.js

10

event-loop-lag.js

@@ -28,5 +28,11 @@

// how much time has actually elapsed in the loop beyond what
// setTimeout says is supposed to happen
// setTimeout says is supposed to happen. we use setTimeout to
// cover multiple iterations of the event loop, getting a larger
// sample of what the process is working on.
var t = time();
delay = t - start - ms;
// we use Math.max to handle case where timers are running efficiently
// and our callback executes earlier than `ms` due to how timers are
// implemented. this is ok. it means we're healthy.
delay = Math.max(0, t - start - ms);
start = t;

@@ -33,0 +39,0 @@

1.1.0 / 2015-02-18
==================
* fixed; report healthy event loops as 0
* test; remove --harmony-generators flag
1.0.3 / 2015-01-06

@@ -3,0 +9,0 @@ ==================

2

package.json
{
"name": "event-loop-lag",
"version": "1.0.3",
"version": "1.1.0",
"description": "Measure event loop lag",

@@ -5,0 +5,0 @@ "main": "event-loop-lag.js",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc