Security News
New Proposed CISA Mandate Would Require Critical Infrastructure to Report Ransom Payments Within 24 Hours
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
bipbip
Advanced tools
Benchmark runner for performance regression test suites
Weekly downloads
Readme
bipbip
Easy to setup, benchmark tool for Node.js. This module is inspired by jest.
BipBip is intended to be run as a part of a performance regression test suite. It is intended to help answer questions like "have performance characteristics changed between releases" or "does this change have an impact on performance?"
$ npm install -g bipbip
Create a file __benchmarks__/hello.js
(example):
suite('Hello world', () => {
scenario('hello()', () => {
doSomething();
});
scenario('world()', () => {
doSomething();
})
});
then run:
$ bipbip
Results can be saved to a JSON file, to be compared later on:
$ bipbip --save ./results.json
$ bipbip --compare ./results.json
bipbip
defines some global variables in the executed JS files:
suite(name: string, fn: () => void)
: define a suite of scenariosscenario(name: string, run: () => void)
: define a scenario$ bipbip <files...> [options]
The command line accepts globs as arguments: benchmark *.js
, benchmark module1/*.js module2/*.js
Option | Description |
---|---|
-s, --save [file] | Save the results of benchmarks |
-c, --compare [file] | Compare the results to previously saved results |
-d, --duration [ms] | Maximum duration of each scenario (default is 5sec) |
-e, --executions [count] | Maximum executions per scenario (default is 1M) |
When using bipbip
in a CI service (like Travis), the results can be preserved in the CI cache.
jobs:
include:
- if: branch = master
script:
- bipbip --save .cache/benchmarks.json --compare .cache/benchmarks.json
- if: branch != master
script:
- bipbip --compare .cache/benchmarks.json
When running benchmarks on JS files not compiled for the current node version. You can run the benchmark CLI using babel-node
:
$ babel-node node_modules/.bin/bipbip
FAQs
Benchmark runner for performance regression test suites
The npm package bipbip receives a total of 1,870 weekly downloads. As such, bipbip popularity was classified as popular.
We found that bipbip demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
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.
Security News
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
Security News
Redis is no longer OSS, breaking its explicit commitment to remain under the BSD 3-Clause License forever. This has angered contributors who are now working to fork the software.
Product
Socket AI now enables 'AI detected potential malware' alerts by default, ensuring users benefit from AI-powered state-of-the-art malware detection without needing to opt-in.