# Performance and Methodology

"Sub-10ms" is the processing time our redirect service spends on a request for a link that is already in the edge cache. This page states what we measure, shows the latest test with its sample size and date, and gives the commands so you can repeat every measurement.

## What "sub-10ms" measures

- CPU time the redirect service spends on the request: reading the link from the edge cache, screening the user agent, choosing the destination, building the 302.
- A link that is already in the edge cache, which is every link after its first save.
- The request path only.

We report two server-side numbers. **CPU time** is the processor time the request used. **Wall time** is the elapsed time of the whole invocation, including the work done after the response was sent.

## Server-side result

Measured on 2026-10-10, 05:50 to 06:05 UTC, from the invocation logs of the production redirect service. Sample: 76 requests to a cached production link. Each request was a redirect to a desktop browser user agent.

| Metric | p50 | p95 | p99 |
|--------|-----|-----|-----|
| CPU time | 3 ms | 10 ms | 13 ms |

For a cached link, the median redirect uses 3 ms of CPU, and 95 percent use 10 ms or less.

## Client-observed latency

Measured on 2026-10-10 against a production link with a desktop browser user agent, without following the redirect.

| Connection | Measure | n | p50 | p95 |
|------------|---------|---|-----|-----|
| Reused connection | Time to first byte | 49 | 37 ms | 131 ms |
| Fresh connection per request | Total time, including DNS, TCP, and TLS | 50 | 169 ms | 208 ms |

On a reused connection the time to first byte is dominated by one network round trip, about 25 ms. On a fresh connection most of the time is the DNS lookup and the TCP and TLS handshakes, which every HTTPS request pays before any service answers. The redirect itself adds the few milliseconds of processing shown above.

## Edge network

"300+ edge nodes" is the size of the global edge network our redirect service runs on, so every visitor is answered from the location nearest to them. The figure is the network provider's published count, checked October 2026.

## SDK size

Measured on 2026-10-10. "Under 200KB" is gzipped size. KB here means 1,000 bytes.

| SDK | What we measured | Raw size | Gzipped |
|-----|------------------|----------|---------|
| iOS | Release build for arm64, debug info stripped | 453,840 B | 158,621 B |
| iOS | Size added to a linked test app, dead code removed and stripped | 262,088 B | 111,807 B |
| Android | Published 1.1.0 AAR from Maven Central | 123,801 B | already compressed |
| React Native | JavaScript in the published 1.1.0 package (`lib/module`) | 54,716 B | 17,645 B |
| React Native | Entire published 1.1.0 tarball, including native sources and type definitions | - | 83,546 B |
| Flutter | Dart code in the published 1.1.0 package (`lib`) | - | 28,697 B |
| Flutter | Dart, Android, and iOS runtime sources in the published 1.1.0 package | - | 74,318 B |
| Flutter | Entire published 1.1.0 archive, including tests, example app, and docs | - | 185,192 B |

React Native and Flutter wrap the native iOS and Android SDKs, so the native SDK is added on top of their own package. The totals below add the gzipped package code to the gzipped native SDK.

| App | Calculation | Total |
|-----|-------------|-------|
| React Native on Android | 17,645 B JavaScript + 123,801 B Android SDK | 141,446 B |
| React Native on iOS | 17,645 B JavaScript + 111,807 B iOS SDK | 129,452 B |
| Flutter on Android | 28,697 B Dart + 123,801 B Android SDK | 152,498 B |
| Flutter on iOS | 28,697 B Dart + 111,807 B iOS SDK | 140,504 B |

Every total above is under 200,000 bytes. The full published React Native tarball (83,546 B) and Flutter archive (185,192 B) are larger because they include source files, tests, an example app, and docs that do not ship inside an app. The iOS figures come from building the 1.1.0 source with the Swift 6.3 toolchain for iOS 15 and later. The other figures are the published packages.

## Repeat it

Client latency, fresh connection per request:

```bash
curl -s -o /dev/null -A "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) Chrome/130.0.0.0 Safari/537.36" \
  -w "%{http_code} %{time_connect} %{time_appconnect} %{time_starttransfer} %{time_total}\n" \
  https://YOUR-DOMAIN/YOUR-SLUG
```

Run it 50 times, 0.3 seconds apart, and take the 50th and 95th percentiles. Pass several URLs to one `curl` command to reuse the connection and read the time to first byte.

SDK sizes:

```bash
# Android
curl -sL -o sdk.aar https://repo1.maven.org/maven2/app/warplink/sdk/1.1.0/sdk-1.1.0.aar && wc -c sdk.aar

# React Native
curl -sL -O https://registry.npmjs.org/@warplink/react-native/-/react-native-1.1.0.tgz && wc -c react-native-1.1.0.tgz

# Flutter
curl -sL -o flutter.tar.gz https://pub.dev/api/archives/warplink_flutter-1.1.0.tar.gz && wc -c flutter.tar.gz

# iOS (from the SDK source)
xcodebuild -scheme warplink-ios-sdk -configuration Release -destination 'generic/platform=iOS' build
strip -S -x WarpLink.o && gzip -9 -c WarpLink.o | wc -c
```

We republish these measurements here with their dates. For how the service is built, see [Architecture](https://warplink.app/docs/trust/architecture).
