Skip to content

Performance ​

Updated: 2026-11-16
ActualLab.Fusion Version: 15.1.38

This page summarizes results of Fusion performance benchmarks.

Test Environment ​

ComponentSpecification
CPUAMD Ryzen 9 9950X3D 16-Core Processor
RAM96 GB DDR5
OSWindows 11
DockerDocker Desktop, WSL2 backend (32 CPUs, 25 GB). The server container runs with --cpus 4 --memory 8g
.NET11.0.0

Note that Ryzen 9 9950X3D has 32 logical cores due to SMT.

Fusion Micro-Benchmarks ​

BenchmarkDotNet measurements of the single-threaded, per-operation cost of Fusion's core compute-method primitives, with an otherwise empty method body (so the numbers reflect Fusion's own overhead). Calls/s per core = 1 / Mean.

OperationCalls/s per coreMeanAllocated
Cached hit, long key
Service.Get(0L, default)
47.08M21.24 ns32 B
Cached hit, string key
Service.Get("key", default)
34.35M29.11 ns32 B
Invalidation (activate + 1 call)
using (Invalidation.Begin())
Service.Get(key, default)
19.74M50.65 ns112 B
Recompute + cache (fresh key each call)
Service.Get(i++, default)
2.02M495.3 ns1021 B

A cache hit costs ~21 ns and a single ArgumentList allocation — this is the ~47M calls/s per core that Fusion sustains for cached compute-method calls.

Interception & Proxy Overhead ​

Fusion builds compute methods and RPC clients on generated proxies. Per-call cost of ActualLab's proxies vs Castle DynamicProxy for a simple interceptor (returns the method's default result), single-threaded:

Proxy variantCalls/s per coreMeanAllocated
No proxy (direct virtual call)869.1M1.15 ns–
ActualLab, simple interceptor404.0M2.48 ns24 B
Castle DynamicProxy, simple63.30M15.80 ns128 B

ActualLab's interception is ~4-6x faster than Castle DynamicProxy — and only ~2-4x slower than a plain virtual call — while allocating far less. That's why Fusion can afford to wrap every compute method and RPC call in a proxy. See the full breakdown (sync/async, pass-through, no-handler variants) in the source report linked at the bottom of this page.

Run-PerformanceTest.cmd from Fusion Test suite ​

The benchmark measures throughput of a simple repository-style user lookup service (UserService.Get(userId)) that retrieves user records from a database. The test compares two scenarios:

  1. With Fusion: UserService.Get is a [ComputeMethod], so its results are cached, and thus a majority of database calls are avoided (unless they happen right after a mutation).

  2. Without Fusion: UserService.Get is a regular method, so every call to it executes a simple SQL query.

Test Scenarios ​

  • Multiple readers, 1 mutator: Simulates a realistic high-intensity workload with ~640 concurrent reader tasks (20 per CPU core) performing lookups, while a single mutator task periodically updates random user records. This tests how well Fusion handles cache invalidation under concurrent load.

  • Single reader, no mutators: A single task performs sequential lookups with no concurrent mutations. This measures the peak lookup throughput per CPU core.

The test uses a pool of 1,000 pre-populated user records. Each run performs multiple iterations, and the best result from 3 runs is reported.

Multiple Readers + 1 Mutator (all cores) ​

TestSQLitePostgreSQL
Without Fusion155.68K calls/s38.61K calls/s
With Fusion487.46M calls/s535.40M calls/s
Speedup↑3,131×↑13,867×

Single Reader, No Mutators ​

TestSQLitePostgreSQL
Without Fusion55.70K calls/s1.78K calls/s
With Fusion23.74M calls/s26.97M calls/s
Speedup↑426×↑15,152×

Key Observations ​

  • With Fusion + concurrent readers: ~500M calls/s regardless of the database, because most calls are served from Fusion's in-memory cache. That's roughly 13,900x faster than direct PostgreSQL access and 3,100x faster than direct SQLite access under the same concurrent load.

  • Without Fusion: Performance is entirely database-bound. SQLite (in-process) outperforms PostgreSQL (network round-trip) significantly, especially for single-threaded access.

  • Concurrent access amplifies the difference: With many readers, Fusion's lock-free cache scales linearly with CPU cores, while database access becomes the bottleneck.

Benchmark.cmd from ActualLab.Fusion.Samples ​

The benchmark measures throughput of a simple repository-style user lookup service that retrieves and updates user records from a database: UserService.Get(userId) and Update(userId, ...).

Local Services ​

TestResult
Regular Service161.23K calls/s
Fusion Service330.53M calls/s

Remote Services ​

TestResult
HTTP Client → Regular Service103.88K calls/s
HTTP Client → Fusion Service365.18K calls/s
ActualLab.Rpc Client → Fusion Service7.81M calls/s
Fusion Client → Fusion Service226.05M calls/s

Wondering what each of these scenarios means (HTTP vs ActualLab.Rpc vs Fusion client)? See What each scenario means in the source report.

RpcBenchmark.cmd from ActualLab.Fusion.Samples ​

This benchmark compares ActualLab.Rpc with gRPC, SignalR, and other RPC frameworks. The tables below include only ActualLab.Rpc, gRPC, and SignalR. Other options, such as StreamJsonRpc and RESTful API, are way slower, so we omit them.

A colored number after a result shows how many times slower it is than the fastest result in the same test: =1.0 is the fastest, ↓2.0× is half as fast, ↓10× is ten times slower. The color goes from green (1x) through red (3x) to black (50x or more) on a log scale.

Calls ​

TestActualLab.RpcgRPCSignalR
Sum9.97M calls/s =1.0842.95K calls/s ↓12×4.84M calls/s ↓2.1×
GetUser8.91M calls/s =1.0848.30K calls/s ↓11×4.28M calls/s ↓2.1×
SayHello5.95M calls/s =1.0808.67K calls/s ↓7.4×2.23M calls/s ↓2.7×

gRPC call throughput is lower on .NET 11.0.0 than it was on .NET 10.0.8 (1.28M / 1.24M / 1.16M calls/s with the same benchmark), even with the pipe scheduler fix this benchmark applies on .NET 11.

Streams ​

TestActualLab.RpcgRPCSignalR
Stream1104.98M items/s =1.039.51M items/s ↓2.7×22.36M items/s ↓4.7×
Stream10045.89M items/s =1.019.94M items/s ↓2.3×14.78M items/s ↓3.1×
Stream10K808.92K items/s =1.0648.00K items/s ↓1.2×402.48K items/s ↓2.0×

Test names indicate item size: Stream1 = 1-byte items, Stream100 = 100-byte items, Stream10K = 10KB items.

Throughput (items/s × item size) ​

TestActualLab.RpcgRPCSignalR
Stream1104.98 MB/s39.51 MB/s22.36 MB/s
Stream1004.59 GB/s1.99 GB/s1.48 GB/s
Stream10K8.28 GB/s6.64 GB/s4.12 GB/s

Docker-Based RPC Benchmarks ​

These benchmarks run in Docker containers with CPU limits to measure 4-core server performance. The server container is limited to 4 CPUs while the client container has 24 CPUs available, ensuring the server is the bottleneck. This setup matches grpc_bench, SayHello w/ gRPC is identical to what grpc_bench measures.

These figures were measured on 2026-11-16 without TLS, as grpc_bench does (RpcBenchmark runs without TLS by default now, -tls turns it on), and with fixed worker and concurrency parameters instead of the parameter search. With TLS, calls are 3-10% slower for ActualLab.Rpc and SignalR and 17-20% slower for gRPC and MagicOnion.

Comparison with other gRPC servers. We ran 26 servers from grpc_bench on the same machine in the same 4-CPU setup, on current versions of their libraries and with the load generator tuned until each server is saturated. The fastest of them, rust_ntex, reaches 1.06M SayHello calls/s, and grpc_bench's own grpc-dotnet server reaches 670K, which agrees with the 567K our gRPC test measures below with a less favorable client. ActualLab.Rpc's SayHello (2.54M) is 2.4x the fastest of these gRPC servers. See The Fastest .NET RPC Libraries vs the Fastest gRPC Libraries

Docker Calls ​

FrameworkSumGetUserSayHello
ActualLab.Rpc5.62M calls/s =1.04.36M calls/s =1.02.54M calls/s =1.0
SignalR2.71M calls/s ↓2.1×2.24M calls/s ↓1.9×999.19K calls/s ↓2.5×
gRPC625.64K calls/s ↓9.0×602.70K calls/s ↓7.2×567.12K calls/s ↓4.5×
MagicOnion582.60K calls/s ↓9.6×563.39K calls/s ↓7.7×518.14K calls/s ↓4.9×
StreamJsonRpc396.57K calls/s ↓14×306.24K calls/s ↓14×134.15K calls/s ↓19×
HTTP146.06K calls/s ↓38×147.05K calls/s ↓30×130.46K calls/s ↓19×

Docker Streams ​

Test names indicate item size: Stream1 = 1-byte items, Stream100 = 100-byte items, Stream10K = 10KB items. Stream tests count the items received inside the measurement window.

FrameworkStream1Stream100Stream10K
ActualLab.Rpc40.19M items/s =1.018.64M items/s =1.0492.15K items/s =1.0
gRPC15.40M items/s ↓2.6×9.42M items/s ↓2.0×328.92K items/s ↓1.5×
SignalR12.01M items/s ↓3.3×6.97M items/s ↓2.7×239.28K items/s ↓2.1×
StreamJsonRpc162.62K items/s ↓247×163.20K items/s ↓114×94.63K items/s ↓5.2×

Real-Network RPC Benchmarks ​

The Docker benchmarks above run the client and the server on one machine. These run over a real 5 Gbit/s LAN between two machines, without TLS, and were measured on 2026-11-17. The server is limited to 2 CPUs, and the client is a separate PC with 32 logical CPUs, so the server is the bottleneck.

ClientServer
MachineAMD Ryzen AI MAX+ PRO 395 (16 cores / 32 logical CPUs), 96 GB RAMVM (16 vCPUs, 26 GB RAM) on Proxmox VE 9.0.3, on an AMD Ryzen 7 8745HS host (8 cores / 16 logical CPUs), 30 GB RAM
OSWindows 11 ProUbuntu 24.04.5 (kernel 6.8.0-149) in the VM, kernel 6.14.8-2-pve on the host
NetworkRealtek USB 5GbE adapterRealtek RTL8157 USB 5GbE adapter, Linux bridge, virtio NIC with 8 queues
Runtime.NET 11.0.0, native process.NET 11.0.0, Docker 29.10.0, container with --cpus 2 --memory 8g

iperf3 measures 4.74 Gbit/s of TCP throughput on this link. The server runs in a container, inside a VM, on a Proxmox host, so the network path is longer than in the Docker tests. These figures are not comparable with the Docker ones: the server has 2 CPUs instead of 4, its CPU is slower, and the client is a different machine. The full setup, the commands, and the traffic and CPU measurements are in Real Network RPC Benchmarks.

Network Calls ​

FrameworkSumGetUserSayHello
ActualLab.Rpc2.22M calls/s =1.01.71M calls/s =1.01.07M calls/s =1.0
SignalR1.06M calls/s ↓2.1×764.92K calls/s ↓2.2×416.16K calls/s ↓2.6×
gRPC364.40K calls/s ↓6.1×355.75K calls/s ↓4.8×313.92K calls/s ↓3.4×
HTTP98.42K calls/s ↓23×103.78K calls/s ↓16×81.52K calls/s ↓13×

Every call test is limited by the server's 2 CPUs (187-196% usage), and none of them uses more than a quarter of the link. ActualLab.Rpc is 2.1-2.6x faster than SignalR, 3.4-6.1x faster than gRPC and 12-23x faster than HTTP.

SayHello latency (p50 / p95 / p99) at these loads: ActualLab.Rpc 14.3 / 25.4 / 45.3 ms, SignalR 32.6 / 250.5 / 260.1 ms, gRPC 3.6 / 5.1 / 23.6 ms, HTTP 15.1 / 244.6 / 246.9 ms. Latency grows with the number of calls in flight, so compare it together with the worker count: ActualLab.Rpc runs with about 15x more concurrent calls than gRPC here.

Network Streams ​

Stream10K wasn't run, because it saturates the 5 Gbit/s NICs at any server speed.

FrameworkStream1Stream100Stream100 traffic (client rx)
ActualLab.Rpc18.51M items/s =1.05.45M items/s =1.04.91 Gbit/s
gRPC7.79M items/s ↓2.4×4.54M items/s ↓1.2×4.37 Gbit/s
SignalR4.98M items/s ↓3.7×2.63M items/s ↓2.1×4.53 Gbit/s
  • Stream1 is limited by the server's CPU for all three frameworks.
  • Stream100: ActualLab.Rpc reaches 92% of the link's 5.93M items/s ceiling (4.74 Gbit/s with no framing at all) and has CPU to spare. gRPC runs out of CPU at 4.54M items/s. SignalR's default JSON protocol encodes the 100 bytes as base64, so it needs about twice as many bytes per item.

Compared with gRPC Servers in Other Languages ​

The 7 servers from grpc_bench that are the fastest in their languages in the 4-CPU tests ran in the same LAN setup with the same 2-CPU limit. A Rust client (tonic_client) on the client PC loaded them. SayHello:

ServerClientCalls/s
ActualLab.RpcRpcBenchmark1.07M =1.0
SignalRRpcBenchmark416.2K ↓2.6×
rust_ntex (Rust)tonic_client400.7K ↓2.7×
java_vertx_grpc (Java)tonic_client318.9K ↓3.4×
gRPC (grpc-dotnet)RpcBenchmark313.9K ↓3.4×
dotnet_grpc (grpc-dotnet)tonic_client284.8K ↓3.8×
go_vtgrpc (Go)tonic_client179.3K ↓6.0×
scala_akka (Scala)tonic_client153.9K ↓7.0×
cpp_grpc_mt (C++)tonic_client150.9K ↓7.1×
swift_grpc (Swift)tonic_client92.3K ↓12×
HTTPRpcBenchmark89.3K ↓12×

Each RpcBenchmark row is the better of its two parameter sets for SayHello. The two groups are not measured identically: RpcBenchmark figures are the best of six 5-second tries, and grpc_bench figures are single 15-second runs, which favors the RpcBenchmark rows. The details are in Benchmarks-gRPC.md.

Reference: Redis Benchmark ​

Redis is one of the fastest network servers you can put next to ActualLab.Rpc, so we use it as a reference point. We ran redis-benchmark (Redis 8.10.3, GET only) on the same machine and in the same setup as the Docker RPC benchmarks above: the server container is limited to 4 CPUs, and the clients run in separate containers with their own cores.

The numbers below are the peak throughput we could get from Redis under that limit, with the server's CPU saturated.

Redis configurationPipeliningGET throughputPer coreServer CPU
Single thread (default)none77.33K req/s77K100% (1 core)
Single thread (default)16 commands1.30M req/s1.30M98% (1 core)
6 I/O threadsnone212.91K req/s53K405% (4 cores)
6 I/O threads16 commands2.48M req/s621K416% (4 cores)

For comparison, ActualLab.Rpc under the same 4-core limit (see Docker Calls above):

TestThroughputPer core
GetUser4.13M calls/s1.03M
Sum5.25M calls/s1.31M

This is not an apples-to-apples comparison, and it favors Redis. With pipelining, redis-benchmark builds batches of 16 commands by hand and sends them back-to-back on every connection, so the server reads 16 commands and writes 16 replies per network operation. In our RPC benchmarks every caller makes a single call and awaits its result; batching happens automatically in the transport, and only when calls happen to queue up. The fair counterpart of our numbers is the "none" rows; the pipelined rows are a best case that a real application rarely reaches.

Redis also scales less than linearly here: one core handles 1.30M pipelined requests per second, but four saturated cores handle 2.48M, or 621K per core. Its I/O threads take over reading, parsing and writing, while command execution stays on a single thread.

Each figure is the best of two 10-second runs. Totals for multi-client runs are the sum of per-client rates, so they are accurate to within a few percent.


More details: these numbers come from the benchmark report in ActualLab.Fusion.Samples, which also lists the exact commands, additional frameworks, and the full interception/microbenchmark breakdown: Benchmarks.md.