In "compare" mode HTML output only displays stats of first server
See original GitHub issueHi,
I’m using this code:
'use strict';
var fs = require('fs');
var open = require('open');
var apiBenchmark = require('api-benchmark');
var services = {
server1: "http://localhost:4000/",
server2: "http://localhost:9999/"
};
var routes = { route1: '/create/email' };
var opts = {
runMode: 'parallel',
minSamples: 5000
}
apiBenchmark.compare(services, routes, opts, function(err, results){
apiBenchmark.getHtml(results, function(error, html){
fs.writeFile('./output.html', html, function () {
open('./output.html');
});
});
});
The HTML output opens correctly in the browser, but it only displays stats from “server1”. Is this the expected behavior? Shouldn’t it compare the performance of both (possibly wuth different colored lines)? Also, the “Request details” and “Response details” tabs don’t seem to work in this case.

Thanks!
Issue Analytics
- State:
- Created 8 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Edit form and Display form controls in Power Apps
Display, edit, and create a record in a data source. ... DefaultMode - The initial mode of the form control. See the description...
Read more >HTML output Tag
The <output> tag is used to represent the result of a calculation (like one performed by a script). Browser Support. The numbers in...
Read more >tshark(1) Manual Page
TShark is a network protocol analyzer. It lets you capture packet data from a live network, or read packets from a previously saved...
Read more >28.2. The Cumulative Statistics System
PostgreSQL's cumulative statistics system supports collection and reporting of information about server activity. Presently, accesses to tables and indexes ...
Read more >4 Formatting Query Results
This chapter explains how to format your query results to produce a finished ... When displaying column headings, you can either use the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Is this still unresolved ? I got the same issue, plus I couldn’t go to the other menu beside stats. I got this error on my console log.
I think this is still unresolved. Happy if anyone wants to attempt a Pull Request and/or Review existing ones 😃