Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
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
name | type | args | description |
---|---|---|---|
warmUpCount | number | Optional. Default. 1024 How many times to call the test fn prior to running the test | |
cycleCount | number | Optional. Default. 8 How many times to execute the test loop | |
testLoopCount | number | Optional. Default. 1048576 How many times to run the test fn. | |
setup | method | Optional. Method called before the first cycle begins | |
tearDown | method | Optional. Method called after the last cycle end | |
cycleSetup | method | Optional. Method called before each cycle begins | |
cycleTearDown | method | Optional. Method called after each cycle ends | |
reporter | class or array | Optional. Default. [AvergageReporter, MedianReporter] Reporter(s) used to show formatted results. |
You can discover the history inside the History.md
file
You can discover the contributing instructions inside the Contributing.md
file
Licensed under the incredibly permissive MIT License
Copyright © 2013+ Stringz Solutions Ltd
Copyright © 2013+ Peter Flannery
FAQs
A simple benchmark library for JavaScript
The npm package benchie receives a total of 0 weekly downloads. As such, benchie popularity was classified as not popular.
We found that benchie demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.