Repository navigation
Adds some new functionality to Measurement class. - #1366
Conversation
Signed-off-by: ammagamma <[email protected]>
| */ | ||
| private void writeSummary(String summaryLocation, String propLocation) { | ||
| // choose properties that should be in summary here | ||
| String[] properties = { |
There was a problem hiding this comment.
Here we can choose the properties that are written to the summary
There was a problem hiding this comment.
Would it be possible to add a timestamp? I think this could really help when looking at historical data, for example write to the same summary over several weeks/days and easily spot when the run was executed. WDYT?
There was a problem hiding this comment.
right now we get an 'indirect' timestamp via the .properties file name, but yeah I think adding a proper timestamp is a good idea. will do.
Signed-off-by: ammagamma <[email protected]>
|
Nice, I really like the idea. The repeat feature is a great help IMHO. Running measurements multiple times always bothered me. Regarding the summary file, do you think it would make sense to write this as csv? This would only require to add a |
I just checked and one can specify the separator for gnuplot also using |
…rement class. Signed-off-by: ammagamma <[email protected]>
|
It looks like this now: So it is both human readable and can be parsed like a csv file. |
|
Slightly off-topic: Why are routing.distance_mean and routingCH.distance_mean different ? |
|
Looks good to me btw: how are you currently executing Measurement without #1351 :) ?
The request count is different and so it is not using the same total distance |
I am simply starting the main either using run configuration in IntelliJ or using
ok right |
| "routingCH.visited_nodes_mean", | ||
| "measurement.timestamp" | ||
| }; | ||
| try { |
There was a problem hiding this comment.
Can we use try (FileWriter writer = new FileWriter) to use automated writer.close call?
|
build fails because of a missing api key ? |
|
If you update to master this should not happen anymore. The API key was likely misused and so I changed it and hide it now: 50e975b |
|
Hmmh, ugly. I should additionally exclude the client-hc from the build as otherwise the build does not run through locally without the key parameter |
|
Hmm still getting error with most recent master merged in (80d345a) testSimpleRoute(com.graphhopper.api.GraphHopperWebIT) Time elapsed: 0.006 sec <<< ERROR!
java.lang.IllegalStateException: Key cannot be empty
at com.graphhopper.api.GraphHopperWebIT.setUp(GraphHopperWebIT.java:38) |
|
It looks like $API_KEY stays empty whereas in the master branch it is ok. Ah, this is the reason:
|
|
Can you try this fix: c02ee49? |
|
appveyor built successfully, but travis seems to be running forever (>3h) ? |
|
Again my fault - but good news is that I was able to push the fix directly to your branch - got the git magic right ;) |
This PR adds some new parameters to the Measurement class:
measurement.cleancan be used to delete an existing graph when running the measurement, default is falsemeasurement.summaryfilecan be used to specify a file name and at the end of the measurement a single log line with selected properties of the measurement is written to the specified file. If no file is specified nothing is done.measurement.repeatscan be used to run the measurement multiple timesUsing all of these parameters we can get a table of the (hard-coded) selected properties of the different runs for example like this:
This is useful to check how stable the measurement data is across multiple runs and even more when we want to run graph preparations (like LM or CH) with different parameters (one still needs to add the parameters that should be varied, like number of lazy updates in CH etc.