LocalCloud Performance & Benchmarks
Get started
local.cloud / agents
Read this page as Markdown ↗
local.cloud — Performance & Benchmarks .md Open tab
Browse documentation Performance & benchmarks
Concepts Performance & benchmarks

Performance and benchmarks

This report records the empirical performance characteristics, throughput limits, and operational latencies of LocalCloud measured using native CLI (localcloud 0.1.14) and container image agentcloud/localcloud:lite.

Executive summary and readiness matrix

LocalCloud is engineered for high-frequency test suites and autonomous AI coding agents where low overhead directly translates to faster iteration:

  • Rapid AI tool calling: The MCP stdio bridge executes tool calls (localcloud_runtime_status) in 1 ms (< 1 ms, 1,531 calls/sec), eliminating tool overhead for coding agents.
  • Fast in-memory store: Memorystore (Redis) delivers 1 ms (< 1 ms) GET and SET operations at ~1,950 ops/sec.
  • Low-latency database operations: Cloud SQL (PostgreSQL) processes point INSERTs in 2 ms (656 inserts/sec) and point SELECTs in 2 ms (416 queries/sec). Batch inserts achieve >39,000 rows/sec.
  • High-speed object storage: Cloud Storage retrieval completes in 2 ms (527 reads/sec), and writes in 5 ms (209 writes/sec).
  • High-throughput messaging: Cloud Pub/Sub processes single messages in 3 ms and delivers batch ingestion at >10,000 messages/sec.
  • Zero-to-ready in 5 seconds: Cold start provisions PostgreSQL migrations and 22 active local Google Cloud emulators in ~5 s; warm start reconciles in ~333 ms.
Capability TierKey OperationTypical Latency (p50)p95 LatencyThroughputReadiness Verdict
MCP Bridgetool/call (localcloud_runtime_status)1 ms1 ms1,531 ops/sFast (< 1 ms)
Memorystore (Redis)GET key1 ms1 ms1,952 ops/sFast (< 1 ms)
Cloud SQL (PostgreSQL)Point INSERT2 ms2 ms656 ops/sProduction Grade
Cloud StorageGET Object (1 KB)2 ms3 ms527 ops/sProduction Grade
Cloud LoggingWrite Single Entry2 ms2 ms620 ops/sProduction Grade
Secret ManagerAccess Secret (Read)2 ms3 ms554 ops/sProduction Grade
Cloud TasksEnqueue Task3 ms5 ms354 ops/sProduction Grade
Cloud Pub/SubPublish (Single Message)3 ms7 ms319 ops/sProduction Grade
BigQueryTable Create51 ms51 ms20 ops/sLocal Interactive
BigQueryStreaming insertAll (10 rows)68 ms78 ms15 batches/sLocal Interactive
Container LifecycleCold Boot (22 Services + DB)~5 s~5 s—Fast Cold Start

Test environment and methodology

  • CLI executable: Native PyInstaller one-folder bundle dist/localcloud (localcloud 0.1.14).
  • Container engine: Docker 29.8.1 on Colima 0.10.3 (VZ backend, Rosetta translation enabled).
  • Runtime image: agentcloud/localcloud:lite (Go Engine 0.1.11).
  • Data volume: Dedicated Docker volume localcloud-perf mounted at /var/lib/localcloud.
  • Project scope: local-gcp-project with caller local-developer.
  • Active services (22 enabled): gcs, pubsub, bigquery, cloudsql, spanner, bigtable, memorystore, secretmanager, cloudtasks, cloudscheduler, cloudfunctions, alloydb, dataproc, cloudiam, cloudresourcemanager, serviceusage, cloudbilling, logging, monitoring, sheets, workflows, and kms.

Benchmark results by tier

Tier 1: CLI lifecycle commands

CommandTypical DurationPurpose & Description
localcloud doctor~300 msInspects Docker host daemon, socket, and port availability (5380–5406).
localcloud status~292 msQueries Docker API to inspect container state and evaluates health of all 22 services.
localcloud env~301 msResolves active endpoints and outputs shell exports (eval $(localcloud env)).
localcloud reset~380 msClears project-scoped data inside running container while preserving the volume.
localcloud start (warm)~333 msFast reconciliation when the container is already running.
localcloud stop~4 sGracefully stops child processes, emulators, and the Docker container.
localcloud start (cold)~5 sCreates container, initializes volume, applies PostgreSQL migrations, and starts 22 emulators.
localcloud restart~9 sPerforms a full container stop, recreate, cold boot, and readiness verification cycle.

Tier 2: Gateway front door and MCP bridge

Benchmark TargetOperationsTypical p50p95 LatencyThroughputOperational Notes
Gateway /healthz (sequential)1003 ms6 ms280 req/sHTTP/1.1 keep-alive front-door ping
Gateway /healthz (concurrent c=10)20019 ms49 ms424 req/s10 concurrent async workers (0 errors)
Gateway /query SQL Engine502 ms7 ms428 req/sDirect SQL execution through gateway facade
MCP Handshake (initialize)1688 ms688 ms—MCP stdio protocol validation and handshake
MCP tools/list (25 tools)104 ms5 ms243 lists/sReturns schemas for all 25 LocalCloud tools
MCP tool/call (status)201 ms1 ms1,531 calls/sFast agent tool execution (< 1 ms)

Tier 3: Core emulated services

Cloud Storage (Port 5382)

OperationOperationsTypical p50p95 LatencyThroughputNotes
Create Bucket17 ms7 ms157 ops/sBucket metadata persistence
PUT Object (1 KB)505 ms6 ms209 ops/sSmall application object upload
GET Object (1 KB)502 ms3 ms527 ops/sObject payload download
PUT Object (64 KB)307 ms15 ms127 ops/sMedium document write
GET Object (64 KB)303 ms4 ms325 ops/sMedium document read
List Objects307 ms14 ms132 ops/sDirectory listing & pagination
Concurrent PUT+GET (c=10)5031 ms35 ms301 ops/sParallel test suite workload
Delete Bucket14 ms4 ms276 ops/sMetadata deletion & cleanup

Cloud Pub/Sub (Port 5383)

OperationOperationsTypical p50p95 LatencyThroughputNotes
Create Topic14 ms4 ms256 ops/sTopic creation
Create Subscription13 ms3 ms416 ops/sSubscription binding
Publish (Single Message)503 ms7 ms319 msgs/sPoint-to-point event publication
Publish (Batch 100 msgs)59 ms13 ms100 batches/s> 10,000 msgs/sec
Pull & Acknowledge507 ms11 ms144 cycles/sComplete consumer delivery cycle

BigQuery (Port 5388)

OperationOperationsTypical p50p95 LatencyThroughputNotes
Create Dataset1166 ms166 ms6 ops/sDataset catalog creation
Create Table151 ms51 ms20 ops/sSchema validation and table creation
Scalar Query (SELECT 1)50135 ms149 ms7 queries/sSQL parsing, AST, and evaluation
Analytical Query (UNNEST)30150 ms175 ms7 queries/sArray unnests, math & ordering
Streaming insertAll (10 rows)2068 ms78 ms15 batches/s~146 rows/sec ingest rate
Table Aggregate Query30294 ms316 ms3 queries/sGROUP BY, COUNT, SUM over data

Cloud SQL (PostgreSQL via Gateway · Port 5380)

OperationOperationsTypical p50p95 LatencyThroughputNotes
CREATE TABLE13 ms3 ms332 ops/sSchema DDL execution
Point INSERT502 ms2 ms656 inserts/sSingle-row OLTP insert
Point SELECT by PK502 ms6 ms416 queries/sPrimary key row lookup
Batch INSERT (100 rows)13 ms3 ms391 batches/s> 39,000 rows/sec single query
Aggregate Query303 ms3 ms446 queries/sCOUNT(*), AVG(score)

Security, messaging, and in-memory services

ServiceOperationOpsTypical p50p95 LatencyThroughputNotes
Secret ManagerCreate Secret16 ms6 ms188 ops/sMetadata registration
Secret ManagerAdd Secret Version14 ms4 ms273 ops/sEncrypted payload storage
Secret ManagerAccess Secret Version502 ms3 ms554 reads/sDecryption and payload retrieval
Cloud TasksCreate Queue15 ms5 ms216 ops/sRate-limited queue declaration
Cloud TasksList Queues102 ms3 ms557 ops/sQueue discovery
Cloud TasksEnqueue Task503 ms5 ms354 tasks/sHTTP target task scheduling
Cloud LoggingWrite Single Log Entry502 ms2 ms620 logs/sStructured application log write
Cloud LoggingBatch Write (50 logs)519 ms22 ms51 batches/s~2,545 logs/sec
Cloud LoggingQuery Log Entries203 ms3 ms458 queries/sLog stream query
MemorystorePING1001 ms1 ms1,665 ops/sLoopback round-trip (< 1 ms)
MemorystoreSET Key1001 ms1 ms1,625 ops/sIn-memory key storage (< 1 ms)
MemorystoreGET Key1001 ms1 ms1,952 ops/sIn-memory key retrieval (< 1 ms)
Cloud SpannerList Instances302 ms2 ms633 req/sAdministrative catalog

Architectural implications

High-frequency AI coding agent loops

Cloud sandboxes and remote emulation environments introduce 100–500 ms of latency per tool call. LocalCloud’s native stdio MCP bridge executes tool calls in 1 ms (< 1 ms). An agent executing 50 intermediate inspection steps spends only ~33 ms in tool overhead, avoiding timeouts and context pauses.

Fast local test suites

Integration test suites (pytest, go test, vitest) create, inspect, and tear down cloud resources rapidly:

  • Creating a Cloud Storage bucket, uploading a fixture, reading it, and deleting the bucket completes in ~16 ms total.
  • Creating a Cloud SQL table, inserting 100 rows, running an aggregate query, and dropping the table completes in ~11 ms total.
  • Publishing and consuming 100 Pub/Sub messages completes in ~16 ms total.

A suite of 100 end-to-end integration tests can finish in under 2 to 3 seconds.

Resource efficiency of the Lite image

The LocalCloud Lite runtime packages 22 emulators, the reverse proxy gateway, and PostgreSQL into one lightweight container image with approximately 35 MB of runtime memory overhead at startup.

How to reproduce

Execute the test suite with uv from the localcloud-cli repository:

# 1. Run complete benchmark suite:
uv run python scripts/perf_benchmark.py \
  --cli-path dist/localcloud \
  --data-volume localcloud-perf \
  --image agentcloud/localcloud:lite \
  --output-json perf_results.json \
  --output-markdown docs/performance-benchmarks.md

# 2. Run fast sanity verification:
uv run python scripts/perf_benchmark.py --quick

Maintained by LocalCloud

Last materially updated: 2026-11-03

Evidence reviewed: 2026-11-03

Desktop view