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

@eeue56/mainc

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eeue56/mainc

A simple, small benchmarking library for Node

  • 0.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-57.14%
Maintainers
1
Weekly downloads
 
Created
Source

mainc

A simple, small benchmarking library for Node

Looks in tsconfig.include for files ending with bench. Look in those files for functions starting with bench, and run them. Async functions are run with await. The return result is ignored.

Part of the Hiraeth collection.

Installation

Requires ts-node to be installed.

npm install --save-dev @eeue56/mainc

Usage

Make sure your tsconfig has include set up correctly. Then you can run bach via npx @eeue56/mainc from the project root.

See mainc_bench.ts for example usage.

You can also specify specific files or functions to run via flags:

  --function [string...]:   Run a specific function
  --file [string...]:       Run a specific file
  -n number:                Number of times to run each benchmark
  --json :                  Output results as json
  --compare :               Run comparisons
  --fixed number :          Number of decimal places to go to. Defaults to 3
  -h, --help :              Displays help message

Name

Mainc means "bench" in Welsh. You'd pronounce it as "main-cuh"

Keywords

FAQs

Package last updated on 25 Dec 2021

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc