{"action":"created","issue":{"url":"https://api.github.com/repos/graphhopper/graphhopper/issues/1366","repository_url":"https://api.github.com/repos/graphhopper/graphhopper","labels_url":"https://api.github.com/repos/graphhopper/graphhopper/issues/1366/labels{/name}","comments_url":"https://api.github.com/repos/graphhopper/graphhopper/issues/1366/comments","events_url":"https://api.github.com/repos/graphhopper/graphhopper/issues/1366/events","html_url":"https://github.com/graphhopper/graphhopper/pull/1366","id":321848700,"number":1366,"title":"Adds some new functionality to Measurement class.","user":{"login":"ammagamma","id":17603532,"avatar_url":"https://avatars1.githubusercontent.com/u/17603532?v=4","gravatar_id":"","url":"https://api.github.com/users/ammagamma","html_url":"https://github.com/ammagamma","followers_url":"https://api.github.com/users/ammagamma/followers","following_url":"https://api.github.com/users/ammagamma/following{/other_user}","gists_url":"https://api.github.com/users/ammagamma/gists{/gist_id}","starred_url":"https://api.github.com/users/ammagamma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ammagamma/subscriptions","organizations_url":"https://api.github.com/users/ammagamma/orgs","repos_url":"https://api.github.com/users/ammagamma/repos","events_url":"https://api.github.com/users/ammagamma/events{/privacy}","received_events_url":"https://api.github.com/users/ammagamma/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-10T08:17:58Z","updated_at":"2018-05-10T09:42:49Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/graphhopper/graphhopper/pulls/1366","html_url":"https://github.com/graphhopper/graphhopper/pull/1366","diff_url":"https://github.com/graphhopper/graphhopper/pull/1366.diff","patch_url":"https://github.com/graphhopper/graphhopper/pull/1366.patch"},"body":"This PR adds some new parameters to the Measurement class:\r\n\r\n1.  `measurement.clean` can be used to delete an existing graph when running the measurement, default is false\r\n\r\n2. `measurement.summaryfile` can 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.\r\n\r\n3. `measurement.repeats` can be used to run the measurement multiple times\r\n\r\nUsing all of these parameters we can get a table of the (hard-coded) selected properties of the different runs for example like this:\r\n\r\n    #graph.nodes graph.edges measurement.seed prepare.ch.time prepare.ch.shortcuts routing.distance_mean routing.mean routing.visited_nodes_mean routingCH.distance_mean routingCH.mean routingCH.visited_nodes_mean propertyFile\r\n           32678       48788              123            1536                24389              14566.23         3.77                    5827.71                14021.56           0.96                       111.69 measurement2018-05-10_09_57_11.properties\r\n           32678       48788              123            1152                24389              14566.23         3.67                    5827.71                14021.56           0.93                       111.69 measurement2018-05-10_09_57_36.properties\r\n           32678       48788              123            1196                24389              14566.23         3.42                    5827.71                14021.56           0.93                       111.69 measurement2018-05-10_09_57_59.properties\r\n           32678       48788              123            1136                24389              14566.23         3.49                    5827.71                14021.56           1.05                       111.69 measurement2018-05-10_09_58_21.properties\r\n\r\nThis 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.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/graphhopper/graphhopper/issues/comments/388006260","html_url":"https://github.com/graphhopper/graphhopper/pull/1366#issuecomment-388006260","issue_url":"https://api.github.com/repos/graphhopper/graphhopper/issues/1366","id":388006260,"user":{"login":"ammagamma","id":17603532,"avatar_url":"https://avatars1.githubusercontent.com/u/17603532?v=4","gravatar_id":"","url":"https://api.github.com/users/ammagamma","html_url":"https://github.com/ammagamma","followers_url":"https://api.github.com/users/ammagamma/followers","following_url":"https://api.github.com/users/ammagamma/following{/other_user}","gists_url":"https://api.github.com/users/ammagamma/gists{/gist_id}","starred_url":"https://api.github.com/users/ammagamma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ammagamma/subscriptions","organizations_url":"https://api.github.com/users/ammagamma/orgs","repos_url":"https://api.github.com/users/ammagamma/repos","events_url":"https://api.github.com/users/ammagamma/events{/privacy}","received_events_url":"https://api.github.com/users/ammagamma/received_events","type":"User","site_admin":false},"created_at":"2018-05-10T09:42:49Z","updated_at":"2018-05-10T09:42:49Z","author_association":"CONTRIBUTOR","body":"It looks like this now:\r\n\r\n    #graph.nodes, graph.edges, measurement.seed, prepare.ch.time, prepare.ch.shortcuts, routing.distance_mean, routing.mean, routing.visited_nodes_mean, routingCH.distance_mean, routingCH.mean, routingCH.visited_nodes_mean, measurement.timestamp, propertyFile\r\n           32678,       48788,              123,            1875,                24389,              14566.23,         4.27,                    5827.71,                14021.56,           1.16,                       111.69,   2018-05-10_11_33_42, measurement2018-05-10_11_33_42.properties\r\n\r\nSo it is both human readable and can be parsed like a csv file.\r\n"}}
{"actor":{"display_login":"ammagamma"}}