Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

perf-deets

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

perf-deets - npm Package Compare versions

Comparing version 1.0.8 to 1.0.9

2

package.json
{
"name": "perf-deets",
"version": "1.0.8",
"version": "1.0.9",
"main": "./perf.js",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -19,3 +19,11 @@ let buffer = 40000;

export async function end() {
export function start() {
globalThis.postMessage({ type: '__perf-deets:clear-perf' });
timings = {};
counts = {};
baseTime = performance.now();
}
export async function stop() {
Object.keys(timings).map(name => {

@@ -36,10 +44,2 @@ let timing = timings[name];

export function start() {
globalThis.postMessage({ type: '__perf-deets:clear-perf' });
timings = {};
counts = {};
baseTime = performance.now();
}
export function record(name) {

@@ -92,6 +92,6 @@ if (timings[name] == null) {

break;
case '__perf-deets:end-profile':
end();
case '__perf-deets:stop-profile':
stop();
break;
}
});
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