Skip to main content

Performance

The gDcc exposes several functions. The main use cases are:

  • Distance 1 to 1: Calculates the distance from one coordinate to another. It returns the distance in meters, the time in seconds, and an abstract cost that can depend on either distance or time, or the roads used (for instance toll-roads)
  • Distance 1 to N: Calculate the distance from one coordinate to several (N) other coordinates. The underlying algorithm means that a 1 to 1 calculation is only slightly faster than a 1 to N for almost an arbitrarily high value of N.
  • Trace: Calculates the trace from one coordinate to another. It returns the same values as Distance 1 to 1, along with coordinatepairs describing the path.
  • Trace N: Calculates N traces at once. Overheads in contacting services over the network means that doing a bulk lookup of N traces in one operation will be a lot faster than doing N individual lookups.

The gDcc is optimized to deliver results from a cache, so for the best results the end user is recommended to pre-burn their results.

SLA

These numbers are preliminary from a local developer machine, and the final production ready version will probably be a lot slower.

The time taken for the operations will vary based on your road-net, and the distance between coordinates. Ops/S = operations per second

OperationCache (Ops/S)Calculation (Ops/S)
Distance 1 to 1????
Distance 1 to 101001.5
Distance 1 to 100161.5
Distance 1 to 100021.3
Trace????
Trace 10130.3
Trace 10030.02
Trace 10000,20.002