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.
Node.js load test and performance measurement tool
var Promise = require('bluebird');
Promise.longStackTraces();
var performanceRunner = require('node-perf');
var request = require('superagent');
var plugin = {};
plugin.before = function before() {
return Promise.resolve({});
};
plugin.doIteration = function doIteration(task) {
return new Promise(function (resolve, reject) {
request.get('localhost:4567/rate')
.end(function (err, result) {
if (err)
reject(err);
else
resolve(result.body);
});
});
};
plugin.generateData = function () {
};
plugin.after = function after(env) {
return Promise.resolve();
};
performanceRunner.run(plugin, {iterations: 1000, concurrency: 10});
The output like this:
sp@ubuntu13-50:~/tools/ratetable/node-ratetable$ node ratetable.js -i 10000 -c 50
###progress [===========================================================] 100% 10000 0.0s
iterations: 12911ms
{ iteration:
{ meter:
{ mean: 771.303948635688,
count: 10000,
currentRate: 771.3005793137153,
'1MinuteRate': 0,
'5MinuteRate': 0,
'15MinuteRate': 0 },
histogram:
{ min: 0.4303159713745117,
max: 50.32475280761719,
sum: 11414.773022651672,
variance: 1.4070160465684114,
mean: 1.1414773022651672,
stddev: 1.1861770721812201,
count: 10000,
median: 0.9900850057601929,
p75: 1.1628969311714172,
p95: 1.5546403527259824,
p99: 2.005256474018098,
p999: 15.711822549581546 } } }
FAQs
Node.js load test and performance measurement tool
The npm package node-perf receives a total of 0 weekly downloads. As such, node-perf popularity was classified as not popular.
We found that node-perf 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.