glentiki / autocannon-reporter Goto Github PK
View Code? Open in Web Editor NEW๐ A single-paged html reporter for Autocannon ๐
License: MIT License
๐ A single-paged html reporter for Autocannon ๐
License: MIT License
As titled, same as #7
let report = reporter.buildReport(result) // the html structure
reporter.writeReport(report, reportOutputPath, (err, res) => {
if (err) console.err('Error writting report: ', err)
else console.log('Report written to: ', reportOutputPath)
}) //write the report
var reportOutputPath = path.join(process.cwd, 'report.html')
-> process.cwd()
reporter.buildReport(result) // the html structure
reporter.writeReport(result, reportOutputPath, (err, res) => {
->
const report = reporter.buildReport(result) // the html structure
reporter.writeReport(report, reportOutputPath, (err, res) => {
In your documentation when i tried to build the report, simply i need to type
report.buildReport
then you are output the Json in html file which is incorrect, however i couldn't get the structure from that built report, why you output the json two times one for build and the second one for json data, since the build strucutre takes json then it should be
reporter.writeReport(reporter.buildReport(JSON.parse(result)), reportOutputPath, (err, res) => {
if (err) console.err('Error writting report: ', err)
else console.log('Report written to: ', reportOutputPath)
})
not reporter.writeReport(res) // json again
or you can assign it to a constant and use this variable for outputting the html file
as titled, same as #7
I think we should use the blue instead of the grey, and maybe change the red to something more nice.
Any thoughts, @mcdonnelldean?
should set charset utf-8 in html
It seems compare tracks changes over time. I want to show a stacked chart to compare benchmarks of different tools.
As titled, the requests are currently visualized as a table.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.