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.
autocannon-reporter
Advanced tools
A simple html reporter for autocannon.
On *nix systems, you can use pipes:
$ autocannon -j http://localhost:3000 | autocannon-reporter
Running 10s test @ http://localhost:3000
10 connections
Stat Avg Stdev Max
Latency (ms) 0.13 0.55 14
Req/Sec 15276 0 15279
Bytes/Sec 1.67 MB 0 B 1.7 MB
15k requests in 1s, 1.7 MB read
Report written to: /some/*nix/path/report.html
On windows, you can supply a file to read
$ autocannon-reporter -i ./report.json
Report written to: C:/some/windows/path/report.html
This tool can also be used programmatically
var autocannon = require('autocannon')
var reporter = require('autocannon-reporter')
var path = require('path')
var reportOutputPath = path.join(process.cwd, 'report.html')
autocannon({
url: 'http://localhost:3000'
}, (err, result) => {
if (err) throw err
reporter.buildReport(result) // the html structure
reporter.writeReport(result, reportOutputPath, (err, res) => {
if (err) console.err('Error writting report: ', err)
else console.log('Report written to: ', reportOutputPath)
}) //write the report
})
Usage: autocannon-reporter [opts]
Outputs a report at ./report.html
Available options:
-i/--input FILE
The path to the json results. Required when not piping into this tool.
-c/--compare FILES
The paths to multiple json results to be compared to the input.
-v/--version
Print the version number.
-h/--help
Print this menu.
You can also pipe in ndjson results, the first will be considered the input and
the rest are used for the comparison
result
: The result of an autocannon run. Object
. Requiredcompare
: An array of old autocannon results to compare against. Array
. optionalReturns a string of html representing the results and comparison
report
: The report returned from buildReport
. Requiredpath
: The full path to the output file/report. Requiredcb
: A function that is called on finishing writing to the file. Passed an err
param if it failed.Sponsored by nearForm
MIT. Copyright (c) 2016 Glen Keane and other contributors.
FAQs
A tool for creating html reports for autocannon
We found that autocannon-reporter 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.
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.