Appearance
Server-Side Performance
Even without using Fusion's RPC capabilities, you can benefit from Fusion on the server side to cache recurring computations.
Benchmark Results
Below are results from Run-Benchmark.cmd from Fusion Samples:
Local Services:
| Test | Result | Speedup |
|---|---|---|
| Regular Service | 171.05K calls/s | |
| Fusion Service | 344.98M calls/s | ~2,017x |
Remote Services:
| Test | Result | Speedup |
|---|---|---|
| HTTP Client → Regular Service | 102.82K calls/s | |
| HTTP Client → Fusion Service | 304.87K calls/s | ~3.0x |
| ActualLab.Rpc Client → Fusion Service | 7.82M calls/s | ~76x |
| Fusion Client → Fusion Service | 230.16M calls/s | ~2,239x |
Key Takeaways
- A tiny EF Core-based service exposed via ASP.NET Core serves about 100K requests per second — mostly because its data set fully fits in RAM.
- The same service with Fusion (
[ComputeMethod]andInvalidation.Begincalls) boosts this to ~305K requests per second when accessed via HTTP — a ~3x performance boost with minimal code changes. - Similarly to incremental builds, the more complex your logic is, the more you are expected to gain.
Learn More
- Memory Management — How Fusion manages computed value lifetimes and memory
- ComputedOptions — Configure caching behavior with
MinCacheDurationand other options
