Measure API Response Time from Germany: A Pre-Purchase Checklist

Updated on Dec 2, 2026
Mila H
13 MINS READ
Table of Contents
Server Latency Test from Germany

Before you buy a server in Frankfurt, you must test it from the places your users really are. A good server latency test from Germany takes about an hour. It uses two tools, including RIPE Atlas probes for network speed and curl for HTTPS timing.

This guide shows how to run both. Also, it shows how to read the results and decide if Frankfurt fits your API.

What You Will Build

By the end of this guide, you will have a simple test setup and a clear report. You can use it to check if Frankfurt is fast enough for your API users. You will learn to build:

  • A small HTTPS test endpoint in Frankfurt that you own or have approval to test.
  • RIPE Atlas ping and traceroute tests from probes in Germany and nearby countries.
  • A repeated curl test that splits each request into DNS, TCP, TLS, and TTFB.
  • A CSV file with UTC timestamps, probe IDs, and raw results.
  • A chart that shows where the time goes.
  • A short summary with median, p95, and packet loss.
  • A clear decision: buy in Frankfurt, test more, or look at another location.

Step 1: Set Your Goal and Rules

Write these down before you start:

  • Who are your users? Germany, Austria, Switzerland, Poland, or France?
  • What is your API target? For example, p95 total time under 300 ms. Pick your own number.
  • What are you testing? One endpoint, like /health.

Only test servers that are yours; never run tests on someone else's server. Keep your test small. RIPE Atlas is a shared network, and volunteers run the probes, and each test costs credits. Don't run more tests than you need.

Step 2: Prepare the Frankfurt Test Endpoint

You need a small HTTPS endpoint in Frankfurt before you buy the final server. You can use a short trial, a test VPS, or a server you already have in the same city. Your endpoint should:

  • Have a public IPv4 address and a DNS name, like latency-test.example.com.
  • Have a valid TLS certificate.
  • Answer ICMP ping. RIPE Atlas ping needs this.
  • Return a small response at /health, with no database work.

Here is a quick test with Docker and Caddy. Before you run them, point your domain's DNS A record to the server's IP. Open ports 80 and 443 too. Caddy needs both to get the TLS certificate:

Bash
mkdir -p ~/latency-test && cd ~/latency-testcat > Caddyfile <<'EOF'latency-test.example.com {    respond /health "ok" 200}EOFdocker run -d --name caddy -p 80:80 -p 443:443 \  -v $PWD/Caddyfile:/etc/caddy/Caddyfile \  -v caddy_data:/data caddy:2

Verify it works with the following curl command:

Bash
curl -I https://latency-test.example.com/health

You should see HTTP/2 200. Also, check ping:

Bash
ping -c 3 latency-test.example.com

If ping doesn't work, your firewall may be blocking it. Change the firewall rule to allow ping requests (ICMP echo). RIPE Atlas needs this to test your server.

Step 3: Pick Probes From Germany and Neighbors

RIPE Atlas lets you pick probes by country, region, or ASN. A probe is a small device on a real network. You choose where the tests come from. Use a mix like this:

Group Country codes Why
Core DE Your main users
DACH AT, CH Close German-speaking users
Neighbors NL, FR, PL, CZ Nearby traffic

Tips:

  • Use 10 to 20 probes for Germany and 5 to 10 for other countries.
  • Mix home and business networks if you can.
  • Save the probe IDs. You need them to repeat the test later.

You must create an account at the RIPE Atlas site, then create an API key. You need credits to run tests.

HTTP limit: RIPE Atlas can only run HTTP tests on its own servers, called anchors. It can't run them on your server. So in this guide, Atlas does the ping, traceroute, and TLS checks, and curl measures the full HTTPS time.

Step 4: Run RIPE Atlas Tests

You can use the web form or the API. The API makes the test easy to repeat and to save. Save your key with:

Bash
export ATLAS_KEY="YOUR-KEY"

Then, create a ping test and a TCP traceroute on port 443:

Bash
curl --location 'https://atlas.ripe.net/api/v2/measurements/' \  --header "Authorization: Key $ATLAS_KEY" \  --header 'Content-Type: application/json' \  --data '{    "definitions": [      {        "target": "latency-test.example.com",        "description": "Frankfurt ping",        "type": "ping",        "af": 4,        "packets": 5      },      {        "target": "latency-test.example.com",        "description": "Frankfurt TCP 443 traceroute",        "type": "traceroute",        "af": 4,        "protocol": "TCP",        "port": 443      }    ],    "probes": [      {"requested": 15, "type": "country", "value": "DE"},      {"requested": 5,  "type": "country", "value": "AT"},      {"requested": 5,  "type": "country", "value": "CH"},      {"requested": 5,  "type": "country", "value": "NL"},      {"requested": 5,  "type": "country", "value": "PL"}    ],    "is_oneoff": true  }'

The API gives you measurement IDs. Save them, because you need them to download the results.

For a better test, run it more than once. Try the morning, midday, and evening.

You can also make Atlas repeat the test for you. Set "is_oneoff": false and add an interval (in seconds) to each definition.

Step 5: Download the Raw Results

Wait a few minutes, then download the results. Replace the IDs with yours:

Bash
mkdir -p datacurl -s "https://atlas.ripe.net/api/v2/measurements/PING_ID/results/" \  -o data/atlas_ping_$(date -u +%Y%m%dT%H%M%SZ).jsoncurl -s "https://atlas.ripe.net/api/v2/measurements/TRACE_ID/results/" \  -o data/atlas_trace_$(date -u +%Y%m%dT%H%M%SZ).json

Also, save a probe list. Probe details (country, ASN) come from the Atlas probes API:

Bash
curl -s "https://atlas.ripe.net/api/v2/measurements/PING_ID/?optional_fields=probes" \  -o data/atlas_ping_meta.json

Don't edit these files. They are your original test data.

Step 6: Check Median, p95, and Packet Loss

The RIPE Atlas results come as raw JSON files, which are hard to read. In this step, you can use a short Python script to turn them into a clean table. You will see the round-trip time (RTT) and packet loss for each probe. You will also get the median and p95 for your Frankfurt server latency test.

Run these commands in order. They create the script, install the tools, and run it.

1) Install the required tools with the commands below:

Bash
sudo apt updatesudo apt install python3 python3-venv python3-pip -y

2) Go to your test folder and set up Python:

Bash
cd ~/latency-testmkdir -p datapython3 -m venv venvsource venv/bin/activatepip install pandas

3) Create the script with the following command:

Bash
cat > analyze_atlas.py <<'EOF'import json, sysimport pandas as pd rows = json.load(open(sys.argv[1]))df = pd.DataFrame(rows)df = df[["prb_id", "timestamp", "sent", "rcvd", "min", "avg", "max"]]df["time_utc"] = pd.to_datetime(df["timestamp"], unit="s", utc=True)df["loss_pct"] = (df["sent"] - df["rcvd"]) / df["sent"] * 100df.to_csv("data/atlas_ping_clean.csv", index=False) ok = df.dropna(subset=["avg"])print("probes:", df["prb_id"].nunique())print("median avg RTT (ms):", round(ok["avg"].median(), 1))print("p95 avg RTT (ms):", round(ok["avg"].quantile(0.95), 1))print("overall loss (%):", round(df["loss_pct"].mean(), 2))EOF

4) Find your ping result file and run the script with your file name:

Bash
ls data/python3 analyze_atlas.py data/atlas_ping_YYYYMMDDTHHMMSSZ.json

5) Open the new CSV file and make sure the data looks right before you use it:

Bash
head data/atlas_ping_clean.csv

The script prints the number of probes, the median RTT, the p95 RTT, and the packet loss. It also saves the clean table to data/atlas_ping_clean.csv.

To see results for each country, add the probe country from your metadata file. Then, group the results by country.

Don't remove probes that look bad. Include them in your report. A slow probe can show a real problem that real users may have.

Step 7: Measure HTTPS Timing With curl

Ping only shows how fast data travels over the network. But your API users wait for the whole HTTPS request. curl shows which part of that request takes the most time.

curl starts its timer when the request begins. Each value below shows how much time passed from that start until a step finished:

  • time_namelookup: DNS is done.
  • time_connect: TCP is connected.
  • time_appconnect: TLS handshake is done.
  • time_starttransfer: first byte received. It includes server work.

To find how long one step took, take its value and remove the earlier value. You can use these formulas:

Step Formula
DNS time_namelookup
TCP time_connect − time_namelookup
TLS time_appconnect − time_connect
App TTFB (wait) time_starttransfer − time_appconnect

Run these commands on each test machine, such as a VPS in Germany or your laptop.

Go to your test folder and check that curl is installed:

Bash
cd ~/latency-testmkdir -p datacurl --version || sudo apt install curl -y

Create the script with the command below:

Bash
cat > curl_timing.sh <<'EOF'#!/usr/bin/env bashURL="https://latency-test.example.com/health"OUT="data/curl_$(hostname)_$(date -u +%Y%m%dT%H%M%SZ).csv"echo "ts_utc,dns,connect,tls,ttfb,total,code" > "$OUT"for i in $(seq 1 100); do  TS=$(date -u +%Y-%m-%dT%H:%M:%SZ)  curl -sS -o /dev/null --max-time 10 \    -w "$TS,%{time_namelookup},%{time_connect},%{time_appconnect},%{time_starttransfer},%{time_total},%{response_code}\n" \    "$URL" >> "$OUT" || echo "$TS,,,,,,FAIL" >> "$OUT"  sleep 1doneecho "saved $OUT"EOF

Change the URL to your real test domain and make the script runnable:

Bash
sed -i 's#latency-test.example.com#YOUR-DOMAIN#' curl_timing.shchmod +x curl_timing.sh

Run a quick test; you should see 200:

Bash
curl -sS -o /dev/null -w "%{http_code}\n" https://YOUR-DOMAIN/health

Then, run the full test and check the result:

Bash
./curl_timing.shls data/head data/curl_*.csv

The script saves one CSV file per run. The file name includes the machine name and the UTC time.

Note: The analysis script reads the machine name from the file name. Make sure each test machine has a different hostname. Then, copy all the CSV files into the data/ folder on the machine where you run the analysis.

If a request fails, count it as lost. Keep it in the file. The script marks it as FAIL, so you can include it when you calculate packet loss.

Step 8: Make a Chart of Your HTTPS Timing

Your curl files have the raw timing for each request. In this step, you can use a short Python script to split the time into DNS, TCP, TLS, and TTFB. The script also finds the median, p95, and loss for each test location. Then, it draws a chart so you can see which step takes the most time.

  • 1) Go to your test folder and turn on Python:
Bash
cd ~/latency-testsource venv/bin/activatepip install pandas matplotlib

If you did not create the venv earlier, run this first:

Bash
python3 -m venv venv
  • 2) Check that all curl files are in the data folder:
Bash
ls data/curl_*.csv
  • 3) Then, create the script with the command below:
Bash
cat > analyze_curl.py <<'EOF'import globimport pandas as pdimport matplotlib.pyplot as plt frames = []for f in glob.glob("data/curl_*.csv"):    d = pd.read_csv(f)    d["source"] = f.split("curl_")[1].split("_")[0]    frames.append(d)df = pd.concat(frames)df["fail"] = df["code"].astype(str).eq("FAIL") | df["total"].isna()ok = df[~df["fail"]].copy() ok["dns_ms"] = ok["dns"] * 1000ok["tcp_ms"] = (ok["connect"] - ok["dns"]) * 1000ok["tls_ms"] = (ok["tls"] - ok["connect"]) * 1000ok["app_ms"] = (ok["ttfb"] - ok["tls"]) * 1000ok["total_ms"] = ok["total"] * 1000 summary = ok.groupby("source").agg(    n=("total_ms", "size"),    median_total=("total_ms", "median"),    p95_total=("total_ms", lambda s: s.quantile(0.95)),    median_dns=("dns_ms", "median"),    median_tcp=("tcp_ms", "median"),    median_tls=("tls_ms", "median"),    median_app=("app_ms", "median"),)summary["loss_pct"] = df.groupby("source")["fail"].mean() * 100summary = summary.round(1)summary.to_csv("data/summary.csv")print(summary) parts = summary[["median_dns", "median_tcp", "median_tls", "median_app"]]ax = parts.plot(kind="bar", stacked=True, figsize=(9, 5))ax.set_ylabel("Median time (ms)")ax.set_title("HTTPS time by phase, per test location")plt.xticks(rotation=30, ha="right")plt.tight_layout()plt.savefig("data/https_phases.png", dpi=150)EOF
  • 4) Run the script and check the output files:
Bash
python3 analyze_curl.pyls -lh data/summary.csv data/https_phases.pngcat data/summary.csv

You now have two files:

  • data/summary.csv has the median, p95, and loss for each location.
  • data/https_phases.png is the chart. Each bar shows the time split into DNS, TCP, TLS, and app wait.

Tip: The script takes the location name from the file name. Give each test machine a different hostname, so each one shows as its own bar.

Step 9: Read the Results

At this point, you have the numbers and the chart. This step shows you how to read them. You must look at the median, the p95, and the loss.

  • Median is the middle result. Half of the requests were faster. It shows the normal case.
  • p95 means 95 of 100 requests were faster than this. It shows slow moments. Users feel p95 more than the median.
  • Packet loss is the percentage of packets lost or requests failed. Even a small loss can slow an API because lost packets must be retransmitted.

Then, you must look at each phase, such as DNS, TCP, TLS, and app wait, to see where the time goes.

Big phase What it often means
DNS Slow DNS provider or no caching
TCP Long distance or a poor network path
TLS Distance, since the handshake needs extra round trips
App TTFB Slow code, database, or an overloaded server

If TCP time is low but TTFB is high, the location is fine, and your app is slow. A bigger server won't fix a distance problem. A new location won't fix slow code.

Also check the traceroute. Look for sudden jumps in time, or a path that leaves the region. A longer route can explain why a probe is slow.

Step 10: Decide If Frankfurt Fits Your API

Now you have real numbers from your tests. First, you can compare them with your own target. 

Check Your target Result Pass?
Germany median total set by you from your data yes/no
Germany p95 total set by you from your data yes/no
DACH p95 total set by you from your data yes/no
Loss set by you from your data yes/no
App TTFB set by you from your data yes/no

Then, you can decide if Frankfurt is a good place for your API, if you need more tests, or if you should look at another location.

  • Most users in Germany, Austria, or Switzerland, and the checks pass: Frankfurt looks like a good fit. Start planning your deployment.
  • Network time is good, TTFB is high: Fix the app first.
  • Your users are far away (for example, outside Europe): Compare other locations, or use more than one region.
  • Results change a lot by time of day: Repeat the test for a few days before you buy.

If you need help choosing a region, you can check the Germany dedicated server for DACH traffic guide. It covers the audience, the laws, and the use case.

Also, if you want to know more about the Frankfurt location and its facilities, check the Infrastructure Location in Germany.

Step 11: Choose Your Server

Once Frankfurt passes your tests, the next question is size, including CPU, RAM, storage, and port speed. Match them to your API load, not to the latency test. Latency tells you about location. It does not tell you about capacity.

When you reach that point, you can explore PerLod dedicated servers in Germany. Check current stock and delivery time on the plan page.

After you deploy, run the same tests again on the real server. Compare them with your trial results, and keep both datasets.

Latency Test Report Checklist

A good report lets anyone repeat your test and check your results. Before you finish, make sure you saved all the data below. Keep the raw files, the dates, and the probe details. This also helps when you run the same test again after you deploy.

  • Test date and time in UTC.
  • Endpoint name and the server used.
  • Probe IDs, countries, and networks.
  • Measurement IDs and raw JSON files.
  • curl CSV files per location.
  • The summary CSV and the chart.
  • Median, p95, and loss for each location.
  • Any failed or odd results.

Conclusion

A server latency test from Germany is easy when you do it in steps. RIPE Atlas shows network speed from real German and nearby networks. curl shows DNS, TCP, TLS, and TTFB for your API. Together they give you real data for a Frankfurt server latency test, so you can choose a location with facts.

Run the test more than once and keep the raw files. Trust p95 more than the average. One test is not a promise of future speed.

No. HTTP tests only work with RIPE Atlas anchors. Use ping, traceroute, and TLS tests from Atlas, and use curl for HTTPS timing.

Run the curl loop from a few machines in Germany and nearby countries. Then, split the time into DNS, TCP, TLS, and TTFB. This is the simplest way to measure API response time from Germany.

Look at both. The median shows normal speed. The p95 shows how slow the bad moments are.