-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
module: plot: add dynamic plot type #8
base: general-cmd
Are you sure you want to change the base?
Conversation
First draft, it will need some additions in MoonGen Tester to add the lists of the mg.throughput.csv to the result.json but wanted to get early feedback what you think about this idea of this plot type. All feedback is welcome! |
Thanks. Looking at the code, it seems you want to have strings in the x-axis like in this example. Is that right? It would be good if you could write a simple example containing result.json and a latex file as well. If the goal is to support "symbolic x coords", then I think it is easier just to extend Plot_simple with a boolean configuration variable named |
ah sorry about the symbolic coords, my mistake this was some left over from another test. I will remove this. So I just want have numerical values on both x and y axis. I will provide a simple result.json for testing. |
No problem. But then I don't know what is this about. At any rate, the development is mostly on branch |
A test run has a duration. On every second Moongen records the current throughput. I want to plot the throughput over time, so that I can observe the dynamic behavior of the SuT. See as example for the rough idea the first figure in https://blog.tohojo.dk/2017/04/the-story-of-flent-the-flexible-network-tester.html . Especially the top plot of the three. Happy to change it to general-cmd branch. |
7621200
to
ab385e9
Compare
So, instead of calculate a data-point from many measurements, you'd like to create a curve from one measurement? We have a mostly undocumented feature for this: https://github.com/hsnlab/tipsy/tree/general-cmd/doc/examples/datafile The trick there is to use variable substitution for the value for the "datafile". |
(The example was actually wrong. I've now fixed it.) |
ah thanks, now the plot makes more sense. I think this could technically work for my use case. Just out of curiosity: what was the design decision for this data file format? To me, it would make more sense to have the data from the |
If this data is part of the results.json, then I think mongo-query is powerful enough to convert it to whatever format is necessary for a complex plot. I don't remember why we choose this format. I think the whitespace separated columns is the default import format in gnuplot. We had these time-based plots (latency as a function of time) for each configuration (say window-size). But we weren't interested in these. We wanted to plot the average latency as a function of window-size. Then in turned out we quickly had to plot latency curves as a function time for several window-sizes in the same plot, i.e., four curves when each curve corresponds to one window-size. Anyway, if you have a cleaner design, I'm happy to incorporate it into tipsy. |
Thanks! I will then just go ahead and try to embed the data into the results.json and ping you if I am done, and then we can discuss again :) |
This tries to add a new plot type. The motivation behind this is to plot the throughput over timer for a particular test run.
The data format in results.json is expected to be