Statistic output is activated by setting the simulation option --statistic-output<FILE> on the command line or in a .sumocfg file.
Note
The elements vehicleTripStatistics, pedestrianStatistics, rideStatistics and transportStatistics are only generated when either of the options --duration-log.statistics or --tripinfo-output are set.
The number of vehicles contributing to this statistic (defaults to arrived vehicles but includes all inserted vehicles if option --tripinfo-output.write-unfinished is set)
routeLength
m
The average route length
speed
m/s
The average trip speed
duration
s
The average trip duration
waitingTime
s
The average time spent standing (involuntarily)
timeLoss
s
The average time lost due to driving slower than desired (includes waitingTime)
departDelay
s
The average time vehicles had to wait before starting their journeys
departDelayWaiting
s
The average waiting time of vehicles which could not be inserted due to lack of road space
When comparing simulations with a fixed end-time, those simulations may differ in the number of departed and arrived vehicles. In this case, care must be taken to include the "missing" vehicles in a comparison, since many outputs only include arrived vehicles by default.
To include statistics for these vehicles, the options --tripinfo-output.write-unfinished --duration-log.statistics must be set.
The general idea is to add up the travel time (duration) and the time that was spent waiting for departure (departDelay) for all vehicles that were defined in the input.
To simplify comparison between simulations that have the same number of vehicles, the attributes 'totalTravelTime' and 'totalDepartDelay' are provided.
An alternative way to compute the sum of travel time and delays is to multiply the averages: