Socket
Socket
Sign inDemoInstall

@indutny/bencher

Package Overview
Dependencies
0
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @indutny/bencher

Simple benchmarking tool


Version published
Weekly downloads
241
decreased by-28.27%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

@indutny/bencher

npm size CI Status

Sneaky equals comparison between objects that checks only the properties that were touched.

Inspired by proxy-compare.

Installation

npm install -g @indutny/bencher

Usage

benchmark.js

export const name = 'benchmark name';

// Function to benchmark
export default () => {
  // Make sure to return a side-effect number
  // (possibly result of a computation) to ensure that the pure function calls
  // are not optimized out by the runtime.
  return 0;
};
bencher benchmark.js

Credits

Name coined by Scott Nonnenberg.

LICENSE

This software is licensed under the MIT License.

Keywords

FAQs

Last updated on 24 Dec 2022

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc