Routino : Standard Benchmarks

Database Generation

These OSM extract for Great Britain in September 2011 (from Geofabrik) was used for these tests. This file is 6.1GB when uncompressed and contains 92.9 million lines, 30 million nodes, 3.7 million highways and 77,000 relations (statistics come from planetsplitter output).

Time and Memory

The results for time and memory are presented below as a table and a pair of graphs with explanations for the major features.

VersionCPU Time (s)Elapsed Time (s)Max Resident
Set Size (MB)
2.0n/an/an/a
2.0.1922.80966.31523
2.0.2921.98961.61523
2.0.3926.46969.29524
2.1932.45972.54531
2.1.1807.68847.27531
2.1.2806.41844.81531
2.2805.68860.43582
2.3787.56846.00582
2.3.1793.39848.14582
2.3.2795.84848.75582
2.4671.76724.12537
2.4.1669.40721.26537
2.5643.80702.35537
2.5.1698.84762.36543
2.6199.88259.79537
2.7202.29268.05537
2.7.1201.72258.88537
2.7.2205.58263.80537
2.7.3213.29259.01536
3.0213.42314.62537
3.1 / 3.1.1219.41273.80583

Planetsplitter time vs version graph

Planetsplitter memory vs version graph

The first obvious thing to notice is that version 2.0 has no results. This is because this version could not process the complete input file without crashing. The interesting thing is that at the time of the release of this version it could process the current Great Britain OSM file.

Version 2.1.1 reduced the default number of iterations from 10 down to 5 because tests showed that there was no significant change in the routing time by doing this. This was the primary reason for the speed increase and the other optimisations were quite small in comparison.

Version 2.2 added the new feature of pruning unneeded nodes and segments which takes time but produces a smaller database. The time taken to identify and remove the unneeded points is compensated by the reduction in time to process the smaller remaining data set. The memory usage was increased slightly though due to the extra tables needed to perform the pruning.

Version 2.3 contained only small improvements to the database generation for the XML parsing and the option of multi-threaded data sorting which is not used for these benchmarks and gives only a small improvement.

Version 2.4 contained some large changes to the database generation with fewer sorting operations and less disk I/O due to rearranging or combining the processing steps.

Version 2.5 had a faster XML parser, but there are more tagging rules which cancels out this improvement.

Version 2.5.1 was slightly slower than version 2.5 which may be caused by a slight change in the order of the steps.

Version 2.6 had a large number of speed improvements; for database generation this was primarily because of using file buffering so that reads and writes are performed on large blocks (4 kB) rather than a few bytes.

Versions 2.7, 2.7.1 and 2.7.2 had very few changes that impact the performance.

Version 2.7.3 had a significant change to reduce the memory use and elapsed time although the CPU time is not significantly affected. The reduced elapsed time is most significantly visible in the Low Memory Benchmarks.

Version 3.0 has no significant changes to the planetsplitter so the time taken is the same.

Version 3.1 (same as 3.1.1) uses 64-bit IDs for the nodes when reading the OSM data so there is an increase in memory usage and a slight increase in time taken.

Database Size and Contents

There is less variation in the size of the database between the different versions than there was for time and memory usage.

VersionNodes (k)Super-
Nodes (k)
Segments (k)Super-
Segments (k)
Ways (k)Relations (k)
2.0n/an/an/an/an/an/a
2.0.112058.11701.914355.22482.2484.12.2
2.0.212060.61701.914357.72482.1484.92.2
2.0.312060.61701.914357.72482.1484.92.2
2.112062.41707.814361.42488.4485.02.1
2.1.112062.41708.114361.62488.8485.02.1
2.1.212062.51708.214361.72488.8485.02.1
2.27512.41698.49446.02478.7487.12.1
2.37512.41698.59446.12478.9487.02.1
2.3.17512.41698.59446.12478.9487.02.1
2.3.27512.41697.39445.92477.5487.02.1
2.47510.81687.59441.62467.7497.52.1
2.4.17510.81687.59441.62467.7497.52.1
2.57510.91687.79441.72468.0496.92.1
2.5.17443.81696.59376.42476.9497.32.1
2.67429.81696.09357.22476.4497.92.1
2.77429.81696.19357.32476.5498.22.1
2.7.17429.81696.19357.32476.5498.22.1
2.7.27429.81696.19357.32476.5498.22.1
2.7.37430.51696.19358.32476.5498.22.1
3.07428.41693.49356.22473.9498.02.1
3.1 / 3.1.17428.41693.49356.22473.9498.02.1

Planetsplitter number of objects vs version graph

VersionNodes (MB)Segments (MB)Ways (MB)Relations (MB)
2.0n/an/an/an/a
2.0.1138.143273.80412.3540.033
2.0.2138.211273.85212.3700.033
2.0.3138.211273.85212.3700.033
2.1138.232273.92212.3700.032
2.1.1138.232273.92612.3700.032
2.1.2138.233273.92912.3700.032
2.286.161180.16812.4020.033
2.386.161180.17012.4020.033
2.3.186.161180.17012.4020.033
2.3.286.162180.16612.4020.033
2.486.143180.08312.5610.033
2.4.186.143180.08312.5610.033
2.586.144180.08612.5520.033
2.5.185.376178.84012.5590.033
2.685.216178.47512.5680.033
2.785.216178.47612.5720.033
2.7.185.216178.47612.5720.033
2.7.285.216178.47612.5720.033
2.7.385.224178.49512.5720.033
3.085.200178.45512.5700.033
3.1 / 3.1.185.200178.45512.5700.033

Planetsplitter database size vs version graph

Version 2.1 added more tagging rules which explains the increase in the number of nodes, segments and ways since more highways are now considered valid.

Version 2.2 pruned unneeded nodes and segments by default which leads to approximately a one-third reduction in the size of the database.

Version 2.3 made no significant changes to the database format and therefore size except version 2.3.2 which changes the way that some barriers are stored (not as super-nodes).

Version 2.4 changed some tagging rules and removed pruned ways although extra ways are also created by pruning for different transport types.

Version 2.5 had more tagging rules which means that more highways are included in the database.

Versions 2.6, 2.7, 2.7.1, 2.7.2, 2.7.3, 3.0 and 3.1 (same as 3.1.1) change a few tagging rules but there is only a small change in database size.

Version 3.1 (same as 3.1.1) uses 64-bit IDs for the nodes when reading the OSM data but keeps 32-bt nodes in the database so there is no change in the size.

Routing

The routing is performed using 200 pairs of nodes; the statistics presented in the table and graphs are the average for all of the routes that could be found.

Time and Memory

There are some significant differences in the time taken and memory used for routing between the different versions.

VersionCPU Time (s)Elapsed Time (s)Max Resident
Set Size (MB)
Number
Routed
2.0n/an/an/an/a
2.0.111.4511.47250179
2.0.211.1311.14249179
2.0.311.1411.15249179
2.111.2111.23250178
2.1.11.931.93267178
2.1.20.740.75103178
2.20.690.7078180
2.30.680.6878180
2.3.10.680.6878180
2.3.20.680.6978180
2.40.680.6978182
2.4.10.740.7583187
2.50.740.7483187
2.5.10.740.7583187
2.60.590.6082187
2.70.590.6082187
2.7.10.590.6082187
2.7.20.600.6082187
2.7.30.590.6082187
3.00.570.5787187
3.1 / 3.1.10.580.5990187

Router time vs version graph

Router memory vs version graph

Version 2.0 suffered from a poor choice of hash function used to look up the intermediate nodes in the route. The lookup function was taking a large fraction of the total routing time when it should only be a small part.

Version 2.1.1 corrected the problem described above for the hash function but also added some other improvements which increased the speed by a further 10% at the expense of a small amount of extra memory.

Version 2.1.2 changed the method used to decide when to stop searching for better routes, this greatly reduced the number of nodes that need to be checked. This fixes a previous error and reduces the time and memory by a factor of 2.5.

Version 2.2 used a smaller database for routing with many unneeded nodes and segments having been removed. This lead to a reasonable reduction in memory required but only a very small reduction in time.

Version 2.3 did not have any changes to the routing algorithm so the observed changes in the time taken are just an indication of the measurement error.

Version 2.4 did not change the routing algorithm but the database is slightly different due to the changed tagging rules.

Version 2.4.1 did not change the routing algorithm but fixed a bug that existed since version 1.1 that caused the search to terminate early if the route has low preference scores. This allowed a few extra difficult routes to be calculated which increased the average memory and time required even though the routes calculated previously take the same amount as before.

No changes to the routing algorithm were included in versions 2.5 or 2.5.1.

Version 2.6 was faster because of improvements in the data structures used for storing the results.

Versions 2.7, 2.7.1, 2.7.2 and 2.7.3 had almost no changes that affect the routing performance.

Version 3.0 has a very small reduction in time, possibly due to the parsing of the profiles files.

Version 3.1 (same as 3.1.1) performs the routing from the two ends towards the middle, this requires slightly more memory and is fractionally slower for finding a route. When there is no possible route it is often much quicker to discover this by routing from both ends.

Conclusions

Versions 2.0 through to 2.1 are very much slower at routing than earlier versions because of an inefficient hash function that causes a massive slow-down in looking up intermediate nodes.

Version 2.1.1 corrected the problems of versions 2.0 to 2.1 as well as some further small speed improvements. Version 2.1.2 makes significant changes to the routing speed and memory usage by better detection of when the optimum route has been found.

Version 2.2 made a large reduction in the database size but only a modest reduction in routing memory. The price to pay for the reduced database is a slight increase in the amount of memory for database generation but no change in time taken.

Version 2.3 was virtually identical to version 2.2 in performance but with a small reduction in database generation time.

Version 2.4 provided a 10% decrease in database generation time but no significant change to the database size or routing time.

Version 2.5 had more complex tagging rules but there was no change in the overall time taken.

Version 2.6 was considerably faster for database generation and slightly faster for routing. Changes are primarily due to low level changes to the data handling rather than improvements in the algorithms.

Versions 2.7, 2.7.1 and 2.7.2 are almost unchanged from version 2.6.

Version 2.7.3 reduced the database generation memory and elapsed time but this reduction in time is significantly dependent on the amount of available memory.

Version 3.0 has no significant effect on the database generation or routing time.

Version 3.1 (same as 3.1.1) uses slightly more memory for database generation due to the 64-bit nodes and slightly more memory for routing due to routing from both ends towards the middle.