Skip to content

Feature flag latency: local vs remote evaluation, measured

We measured how long a feature flag check takes with local and remote evaluation in flagd, GO Feature Flag and Unleash, how long SDKs take to start, and what happens when the flag server hangs. Script and raw results included.

9 min read

Short answer: In our test on 15 November 2026, a flag check evaluated locally took about 0.6 to 30 microseconds (median), and a remote check through an SDK took 0.3 to 0.5 milliseconds, with the server on the same machine. The bigger difference came when the server hung: local SDKs kept answering from memory, also 130 seconds in, while remote checks stalled for 10 seconds or longer.

Remote evaluation sends each flag check to a server; local evaluation downloads the rules once and evaluates them inside your process. The script and raw results are published so you can run it yourself.

How long does a flag check take?

Median of 3 repeats of 20,000 sequential checks each, after 1,000 warm-up checks, each with a different user, against a flag that serves true to 50% of users. Node.js 26.13.1 on an Apple M1 Max, with the servers in Docker Desktop on the same laptop.

Tool and mode Client p50 p95 p99 Startup
Unleash, local unleash-client 6.12.2, called directly 0.6 µs 0.8 µs 1.1 µs 72 ms from the server; about 1 ms from its backup file
flagd, in-process OpenFeature + @openfeature/flagd-provider 0.18.0 5.9 µs 9.3 µs 17 µs 7 ms
GO Feature Flag, in-process OpenFeature + @openfeature/go-feature-flag-provider 2.2.0 30 µs 38 µs 73 µs 6 ms
GO Feature Flag, remote (HTTP) OpenFeature + @openfeature/go-feature-flag-provider 2.2.0 0.30 ms 0.40 ms 0.68 ms under 1 ms
flagd, remote (gRPC), cache on OpenFeature + @openfeature/flagd-provider 0.18.0 0.49 ms 0.73 ms 1.08 ms 7 ms
flagd, remote (gRPC), cache off OpenFeature + @openfeature/flagd-provider 0.18.0 0.48 ms 0.75 ms 1.09 ms 8 ms
Unleash frontend API (HTTP) Node.js fetch, no SDK 0.82 ms 1.18 ms 2.87 ms none

1 ms = 1,000 µs. In every mode, 49.7% to 50.2% of users got true, so all applied the same rule.

How to read it:

  • Remote numbers are a floor. The request never left the laptop. Over a real network, each remote check also pays the round trip to the flag server; local checks don't change.
  • Unleash's local number skips OpenFeature. flagd and GO Feature Flag were called through the OpenFeature client, which adds hooks, context merging and an async call, so the gap between Unleash and the others is partly OpenFeature's overhead, not only the engines.
  • The Unleash frontend API is meant for browsers and mobile apps. It returns all enabled flags for a user; we called it with plain fetch to show the cost of one HTTP round trip to Unleash, not a server SDK.
  • Startup is time to the SDK's ready signal in an already-running Node process, not a process cold start, and it measures different work in each SDK: a gRPC stream (flagd in-process), a WASM engine plus an HTTP fetch (GO Feature Flag in-process), or only a connection (flagd remote).

Why didn't flagd's cache help?

The flagd provider's cache only stores results whose reason is STATIC, meaning flags with no targeting (provider source, 0.18.0). Our flag splits users 50/50, so every result depended on the user and nothing was cached. For flags without targeting, the cache turns most remote checks into local lookups.

What happens when the flag server hangs?

We paused each server's container. Through Docker Desktop's port forwarding, connections were still accepted but never answered, the way a stuck server behaves. We then checked flags with the client that was already running (1 second and 130 seconds after the pause), and started a new client, as a fresh deployment or autoscaled instance would.

Tool and mode Running client New client started during the outage
Unleash, local Kept answering from memory, at 1 s and 130 s Ready in 3 ms from the backup file written earlier in the run; 7 of 20 users got true, so it applied the rules (the default would be false for all)
flagd, in-process Kept answering from memory, at 1 s and 130 s Not ready after 15 s; checks returned the code default immediately
GO Feature Flag, in-process Kept answering from memory, at 1 s and 130 s Failed to start after 10 s; checks returned the code default immediately
GO Feature Flag, remote Each check waited 10 s, then returned the default with an error Same: each check waited 10 s
flagd, remote (gRPC) Each check had no answer after 15 s, when we stopped waiting Not ready after 15 s; checks returned the default immediately
Unleash frontend API Each request ran until the 10-second timeout we set on fetch Same

By the 130-second check, the Unleash SDK, which refreshes every 15 seconds by default, had failed to refresh several times and kept serving its last rules. GO Feature Flag's in-process provider polls every 120 seconds by default, jittered by 10%, so its first refresh may or may not have run by then; flagd's in-process provider keeps a stream open rather than polling.

What explains the rest:

  • GO Feature Flag's provider has a 10-second HTTP timeout by default (timeout: 10000 in its README).
  • The flagd provider's deadlineMs (500 ms) only bounds the connection attempt in version 0.18.0 (source). After it fails, the provider keeps retrying without reporting an error, and individual remote evaluations have no deadline at all.
  • The Unleash Node SDK supports a file-based local backup (Unleash SDK overview) and loads it at startup alongside the first fetch (SDK source). A new process on the same machine starts with the last rules it saw; a new container with an empty disk wouldn't have the file.

What should I take from this?

  • Speed rarely decides it. Even the slowest local mode adds tens of microseconds per check. A remote check adds a network round trip, which matters on hot paths or with many flags per request.
  • Outage behavior matters more. With remote evaluation, a hung flag server can add seconds to every request that checks a flag. Set a short timeout on remote calls and a safe default for every flag.
  • Cold starts are the weak spot of local evaluation. A new instance with no copy of the rules serves defaults until the server is back, unless you give it a bootstrap or backup file, or a relay or proxy nearby.

For evaluating flags inside edge functions, see edge feature flags; for Node.js SDKs and setup, see feature flags in Node.js. For more on designing for this, see kill switches and self-hosted vs SaaS feature flags. Each tool profile has a "How flags are evaluated" row.

What are the limits of this test?

  • One machine, no network. Client and servers ran on one laptop, and Docker Desktop's port forwarding adds a little to the remote numbers.
  • One client, one flag, sequential checks. We didn't test concurrency, many flags per request or large rule sets.
  • Node.js only. SDKs in other languages behave differently; flagd's in-process mode, for example, also exists for Go, Java, .NET, Python and Rust.
  • A hang, not a refusal. We didn't test a server that refuses connections, or a network path that drops packets, where connection timeouts apply.
  • Two settings changed for the test. We disabled GO Feature Flag's data collection, which sends evaluation events in the background. We also raised Unleash's API rate limits: by default its SDK API allows 20,000 requests a minute, and our remote test got "Too many requests".

How we ran it

The servers are flagd 0.18.2 (flags), GO Feature Flag relay proxy 1.58.1 (config, flags) and Unleash 8.3.1 with PostgreSQL 15, in one compose file. The script creates the Unleash flag through its admin API, measures each mode, then pauses the server to test the outage.

The checks use each SDK's normal API. For flagd and GO Feature Flag, through OpenFeature:

import { OpenFeature } from '@openfeature/server-sdk'
import { FlagdProvider } from '@openfeature/flagd-provider'

await OpenFeature.setProviderAndWait('flagd', new FlagdProvider({ resolverType: 'in-process', port: 8015 }))
const client = OpenFeature.getClient('flagd')
const enabled = await client.getBooleanValue('new-checkout', false, { targetingKey: 'user-42' })

To repeat it, install Docker and Node.js 22 or later, and make sure ports 1031, 4242, 8013, 8014 and 8015 are free. Download run.mjs, package.json and package-lock.json into one folder, and the servers/ files above into a servers subfolder, then run:

npm ci
node run.mjs
# a quick try, or a subset of modes:
EVALS=2000 REPEATS=1 LONG_OUTAGE_SECONDS=5 node run.mjs
ONLY=flagd-in-process,unleash-local node run.mjs

Raw results

Per repeat: startup in milliseconds, check times in milliseconds, and the share of users who got true.

Mode Repeat Startup (ms) p50 (ms) p95 (ms) p99 (ms) Max (ms) Share true
flagd remote, cache off 1 12.2 0.4792 0.7292 1.0453 8.9177 0.498
flagd remote, cache off 2 8.3 0.4829 0.7511 1.0851 8.8874 0.498
flagd remote, cache off 3 6.6 0.4838 0.7583 1.1160 10.9595 0.500
flagd remote, cache on 1 5.8 0.4793 0.6933 1.0161 10.5987 0.498
flagd remote, cache on 2 10.1 0.4874 0.7343 1.0847 8.9501 0.498
flagd remote, cache on 3 7.0 0.4871 0.8014 1.1351 15.9508 0.500
flagd in-process 1 12.1 0.0067 0.0135 0.0249 4.3486 0.498
flagd in-process 2 7.1 0.0059 0.0093 0.0166 2.0127 0.498
flagd in-process 3 3.5 0.0054 0.0085 0.0135 9.1494 0.500
GO Feature Flag remote 1 0.2 0.3306 0.4682 0.7579 2.6673 0.502
GO Feature Flag remote 2 0.3 0.2963 0.4030 0.6760 2.8380 0.499
GO Feature Flag remote 3 0.3 0.2980 0.4015 0.6635 3.1603 0.501
GO Feature Flag in-process 1 9.1 0.0310 0.0437 0.1080 3.4960 0.502
GO Feature Flag in-process 2 6.4 0.0296 0.0376 0.0722 3.0622 0.499
GO Feature Flag in-process 3 5.7 0.0289 0.0370 0.0726 3.1111 0.501
Unleash local 1 72.2 0.0007 0.0008 0.0011 1.0177 0.498
Unleash local 2 1.1 0.0005 0.0007 0.0008 0.2695 0.498
Unleash local 3 1.3 0.0006 0.0008 0.0043 0.0708 0.497
Unleash frontend API 1 0 0.8460 1.2840 2.7524 15.2025 0.498
Unleash frontend API 2 0 0.8201 1.1834 2.8815 21.4057 0.498
Unleash frontend API 3 0 0.8103 1.1644 2.8687 13.9047 0.497

Unleash's first repeat started from the server; the later ones, and the new client during the outage, found the backup file the first one wrote. At four decimal places, Unleash's sub-microsecond times are rounded to the nearest 0.1 µs.