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

benchie

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

benchie

A simple benchmark library for JavaScript

  • 0.0.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Benchie JS (WIP)

Build Status NPM version Dependency Status Gittip donate button Bitdeli Badge

A simple benchmark library for JavaScript

##Usage

	npm install benchie
Simple Example:
	Benchmark = require("benchie").Benchmark
	var test = new Benchmark( "My Bench Test", function() { 
		// some code to test 
		var i = 2 * 2;
	});

	test.run();
	# outputs
	My Bench Test 221,982,195 x Avg ops per second
	My Bench Test 262,144,000 x Median ops per second

##Benchmark Options

nametypeargsdescription
warmUpCountnumberOptional.
Default. 1024
How many times to call the test fn prior to running the test
cycleCountnumberOptional.
Default. 8
How many times to execute the test loop
testLoopCountnumberOptional.
Default. 1048576
How many times to run the test fn.
setupmethodOptional.
Method called before the first cycle begins
tearDownmethodOptional.
Method called after the last cycle end
cycleSetupmethodOptional.
Method called before each cycle begins
cycleTearDownmethodOptional.
Method called after each cycle ends
reporterclass or arrayOptional.
Default. [AvergageReporter, MedianReporter]
Reporter(s) used to show formatted results.

History

You can discover the history inside the History.md file

Contributing

You can discover the contributing instructions inside the Contributing.md file

License

Licensed under the incredibly permissive MIT License
Copyright © 2013+ Stringz Solutions Ltd
Copyright © 2013+ Peter Flannery

FAQs

Package last updated on 04 Dec 2013

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