Closed pensierinmusica closed 4 years ago
same here
Yeah you are correct, currently only the first service is shown on the chart. This would certainly be a great pull request and has also been mentioned in #16.
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.
benchmark.html:175 Uncaught TypeError: Cannot read property 'end' of undefined
at Object.route (benchmark.html:175)
at HTMLDocument.<anonymous> (benchmark.html:294)
at l (jquery.min.js:4)
at Object.fireWith [as resolveWith] (jquery.min.js:4)
at Function.ready (jquery.min.js:4)
at HTMLDocument.S (jquery.min.js:4)
I have the same problem as @arufian. The problem ist, that the benchmark stats are rendered into the result html like this:
// this is only an extract showing the issue
var data={
"benchmark":{
"server1":{
"api_method_1":{
// sevel information, stats and so on
"options": {"method":"post","concurrencyLevel":1,"start":"2019-01-25T09:47:27.828Z","end":"2019-01-25T09:47:39.315Z"}
"isSlowest":true
},
"api_method_2":{
// sevel information, stats and so on
"options": {}
"isSlowest":true
},
"isSlowest":true // <-- THIS IS WRONG
},
"server2":{
"api_method_1":{
// sevel information, stats and so on
"options": {"method":"post","concurrencyLevel":1,"start":"2019-01-25T09:47:39.415Z","end":"2019-01-25T09:47:42.853Z"}
"isFastest":true
},
"api_method_2":{
// sevel information, stats and so on
"options": {}
"isSlowest":true
},
"isFastest":true // <-- THIS IS WRONG
}
},
};
For each route the report tries to access the options
property. But the problem is, that there are the isSlowest/isFastest properties on the same level where the route stats are. And this produces the error @arufian mentioned.
I think this is still unresolved. Happy if anyone wants to attempt a Pull Request and/or Review existing ones :)
Hi,
I'm using this code:
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!