Skip to content
Speaking of GIS

Benchmarks

Benchmarking OpenStreetMap Tile & Geocoding Endpoints in 2026

Tiles answered in 35 ms and Overpass in 37.7 seconds, on the same afternoon. How to measure public OSM endpoints without measuring the wrong thing.

Last tested
Level
Beginner
Versions
curl 8 (-w timing variables) · Node.js 24 fetch

“Which is faster, Nominatim or Photon?” sounds like a one-line answer. In practice most published latency numbers for OpenStreetMap services measure something else: a CDN cache, the benchmark machine’s TLS handshake, or one lucky request. This guide shows how we measure public tile, geocoding, query and routing endpoints, the numbers we got on 24 November 2026, and why several of them mean less than they appear to.

OpenFreeMap style25 msNominatim /status26 msNominatim search29 msOSM tile 0/0/035 msValhalla /status100 msOSRM route (1.4 km)105 msPhoton search140 msOverpass /api/status175 ms050100150200Median time to first byte (ms), 24 Nov 2026 · lower is better

Median of five sequential requests per URL from one client machine in Europe (UTC+2), with pauses between requests. Raw rows are kept with the site’s source. Your numbers from another network will differ.

Measure the phases, not just the total

A single HTTPS request has four parts: DNS lookup, TCP connect, TLS handshake, and the server’s time to produce the first byte. Only the last one is about the service. curl reports the cumulative time at each boundary:

shell
curl -s -o /dev/null -A "your-benchmark/1.0 (+https://example.com/contact)" \
  -w "dns=%{time_namelookup} connect=%{time_connect} tls=%{time_appconnect} ttfb=%{time_starttransfer} total=%{time_total} http=%{http_code} bytes=%{size_download}\n" \
  "https://tile.openstreetmap.org/0/0/0.png"

Subtract neighbouring values to get each phase: tls − connect is the handshake, ttfb − tls is the request and server time. In our run the TLS handshake alone ranged from 8 ms (OpenFreeMap) to 66 ms (Photon). For servers far from you, connection setup is a large share of what a cold client waits for, and it says nothing about how fast the service itself is.

The numbers

RequestMedian TTFBRangeTLSCache header
OpenFreeMap style25 ms25–34 ms8 msCloudflare HIT ×5
Nominatim /status26 ms24–27 ms10 msHIT ×5
Nominatim searchfirst request 313 ms, repeats served from cache29 ms26–313 ms11 msMISS, then HIT ×4
OSM tile 0/0/035 ms24–52 ms14 msHIT ×5
Valhalla /status100 ms99–102 ms35 msnone
OSRM route (1.4 km)105 ms102–110 ms36 msnone
Photon search140 ms134–301 ms66 msnone
Overpass /api/statusone 502 and one 37.7 s response in five requests175 ms99–37,711 ms34 msnone

Trap 1: you are measuring the CDN

tile.openstreetmap.org, nominatim.openstreetmap.org and tiles.openfreemap.org all answered through a CDN, and the response headers say so: x-cache: HIT or cf-cache-status: HIT. A 26 ms Nominatim status check is the cache edge near you answering, not the geocoder.

The clearest case is Nominatim search. The first request for “Congress Avenue Austin” was a cache MISS and took 313 ms. The next four identical requests were HITs at 26–29 ms. A benchmark that repeats one query reports the cache. To measure the service, vary the input on every request (from a fixed list, so runs are comparable) and record the cache header alongside the time, then report hits and misses separately.

Trap 2: the median hides the request you will remember

Overpass had a median of 175 ms, which sounds healthy. In the same five requests it also returned one 502 Bad Gateway and one response that took 37.7 seconds. Overpass is a shared query engine whose load depends on what everyone else is running; its status page shows the rate-limit slots available to your address. For a service like that, the p95 and the error rate tell you whether you can build on it. The p50 does not.

Report at least:

  • p50 and p95 of time to first byte over successful requests;
  • error rate, counting timeouts and non-2xx responses, and validating the body (a 200 with an HTML error page is a failure);
  • sample size and window. Five requests is a spot check, not a benchmark. A p95 needs hundreds of samples spread over days.

Trap 3: one vantage point, one moment

Everything above came from one machine on one afternoon. A Fastly or Cloudflare edge near us says little about a user in Brazil, and a server that is idle at 15:00 UTC can queue at peak. For numbers you can rely on, measure continuously from more than one region and keep the history.

We built that for the public endpoints: OSM Monitor probes OSM tiles, OpenFreeMap, Nominatim, Overpass, Valhalla and the OSRM demo server every 5 minutes with one lightweight request each, and publishes p50, p95 and uptime with the size of its sample window. It is run by the same team as Speaking of GIS, and it currently measures from a single server, which its pages state.

A minimal benchmark script

If you would rather collect your own numbers, this Node 24 script measures time to first byte and total time with fetch, validates the status, records the cache header, and paces requests. Node’s fetch reuses a connection when the server keeps it open between requests, so with short pauses these are mostly warm-connection numbers; lengthen the pause to see what a cold client gets.

bench.mjs (Node 24)
const UA = "your-benchmark/1.0 (+https://example.com/contact)"
const urls = process.argv.slice(2)
const runs = 20
const pauseMs = 3000 // stay well under every public policy

const pct = (xs, p) => xs.toSorted((a, b) => a - b)[Math.max(0, Math.ceil((p / 100) * xs.length) - 1)]

for (const url of urls) {
  const ok = []
  let errors = 0
  const cache = new Map()
  for (let i = 0; i < runs; i++) {
    const t0 = performance.now()
    try {
      const res = await fetch(url, { headers: { "User-Agent": UA }, signal: AbortSignal.timeout(15_000) })
      const ttfb = performance.now() - t0
      await res.arrayBuffer()
      const hit = res.headers.get("x-cache") ?? res.headers.get("cf-cache-status") ?? "none"
      cache.set(hit, (cache.get(hit) ?? 0) + 1)
      if (res.ok) ok.push(ttfb)
      else errors++
    } catch {
      errors++
    }
    await new Promise((r) => setTimeout(r, pauseMs))
  }
  console.log(url)
  console.log(`  p50 ${Math.round(pct(ok, 50))} ms  p95 ${Math.round(pct(ok, 95))} ms  errors ${errors}/${runs}  cache ${JSON.stringify(Object.fromEntries(cache))}`)
}

Usage: node bench.mjs https://tile.openstreetmap.org/0/0/0.png https://photon.komoot.io/api/?q=Berlin. With 20 runs per URL the p95 is the second-slowest sample, so treat it as indicative.

What the numbers say about architecture

  • Tiles are a caching problem. Popular tiles come from an edge cache in tens of milliseconds. Your own tiles should too: put a CDN in front of whatever you host (see the PMTiles on R2 guide).
  • Geocoding is a cache-miss problem. Real user queries are mostly unique, so the 313 ms miss is closer to what users see than the 26 ms hit. Cache your own results; the Nominatim policy requires it anyway.
  • Routing is a compute problem. Valhalla and OSRM answered in about 100 ms here, most of it network distance from us. A self-hosted router next to your app removes that and the policy limits together.
  • Overpass is a shared resource. Do not put it in a user-facing request path. Run queries in the background, cache results, or host your own instance.

When this is the wrong choice

Do not benchmark public endpoints to choose a production provider. They are free services with usage limits, and their latency from your laptop predicts nothing about a paid or self-hosted deployment. Benchmark the endpoints you would actually run, from where your users are, with your real query mix.

Found an error or a step that no longer works? Write to info@adeptaoperations.com; we correct guides and note the change date. More in the guide index.