Closed patsonluk closed 1 year ago
@chatman please take a look at this PR, quite critical for our solr performance framework work. Many thanks! 🙇🏼
Added a sample graph-data.js file (please rename to graph-data.js) and drop it to solr-bench\graph
directory and open solr-bench\graph\graph.html
to see the work
graph-data.js.txt
@patsonluk This is very exciting and well organized. I'll work on this new graph framework now, and add the metrics to the graphs. Please feel free to merge :-) Thanks!
I'm merging it, so that I can use this on the https://mostly.cool server for the data already collected there. :-)
I'm merging it, so that I can use this on the https://mostly.cool server for the data already collected there. :-)
Thank you @chatman ! I have committed some minor fixes in master https://github.com/fullstorydev/solr-bench/commit/c91388d011c9e974c8ae31c8c49c02e21a43e0fa .
Please do lemme know whether it works for https://mostly.cool/
Description
Added a new flow that only handles results gathering/pre-processing in python script and delegate graph rendering logic to js. The main advantage of this is the flexibility to manipulate the result data and since js has better access/control over html elements it's also easier to handle html generation via js.
The suggested flow is pretty similar to before. Run the python script and then open the result html file. As described in https://github.com/fullstorydev/solr-bench/compare/patsonluk/graph-js?expand=1#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
The new script organizes the graphs slightly differently:
All the graph related resources are placed in the new
graph
directory. It contains 3 files:This is an experiment to see what's involved if we want to move graph rendering to javascript. That might be a good direction if we want better flexibility with future development (for example adding metrics or different types of charts).