Benchmarks
Generated 2026-11-29 11:50 UTC from commit 27cbb1332073. These results are refreshed weekly.
StackExchange.Redis is the baseline. A ratio below 1.00 means Respire completed the operation faster.
Every benchmark ran 3 times, each time on a separate machine. Both clients in a run share that machine, so each run gives its own ratio. Read the median ratio: a single run on a shared machine can move by several percent.
Visual comparison
Each pair of bars comes from the run whose Respire / StackExchange.Redis ratio is the median of all runs.
StackExchange.Redis has no built-in server-assisted client cache, so its values are ordinary server reads. Respire server reads are included for a like-for-like uncached comparison.
Ratio across runs
- Run 1: AMD EPYC 7763 3.23GHz
- Run 2: AMD EPYC 9V74 3.69GHz
- Run 3: AMD EPYC 7763 2.61GHz
ClientSideCachingBenchmarks
| Method | Categories | Run 1 | Run 2 | Run 3 | Median |
|---|---|---|---|---|---|
| Respire_Exists_ServerRead | EXISTS hot | 0.98 | 0.93 | 0.97 | 0.97 |
| Respire_Exists_ClientCacheHit | EXISTS hot | 0.00 | 0.00 | 0.00 | 0.00 |
| Respire_Get_ServerRead | GET hot | 0.94 | 0.90 | 0.94 | 0.94 |
| Respire_Get_ClientCacheHit | GET hot | 0.00 | 0.00 | 0.00 | 0.00 |
| Respire_GetMissing_ServerRead | GET missing hot | 0.96 | 0.92 | 0.95 | 0.95 |
| Respire_GetMissing_ClientCacheHit | GET missing hot | 0.00 | 0.00 | 0.00 | 0.00 |
| Respire_HGet_ServerRead | HGET hot | 0.93 | 0.88 | 0.93 | 0.93 |
| Respire_HGet_ClientCacheHit | HGET hot | 0.00 | 0.00 | 0.00 | 0.00 |
CommonOperationsBenchmarks
| Method | Categories | Run 1 | Run 2 | Run 3 | Median |
|---|---|---|---|---|---|
| Respire_Exists | EXISTS | 0.96 | 0.93 | 0.97 | 0.96 |
| Respire_Get | GET | 0.94 | 0.90 | 0.94 | 0.94 |
| Respire_GetLong | GET long | 0.95 | 0.90 | 0.95 | 0.95 |
| Respire_Get_SteadyState | GET x100 sequential | 0.95 | 0.92 | 0.94 | 0.94 |
| Respire_Get_Pipelined | GET x200 pipelined | 0.91 | 0.85 | 0.92 | 0.91 |
| Respire_Get_Concurrent | GET x50 concurrent | 1.02 | 0.96 | 1.02 | 1.02 |
| Respire_HGet | HGET | 0.93 | 0.88 | 0.94 | 0.93 |
| Respire_HSet | HSET | 0.95 | 0.90 | 0.93 | 0.93 |
| Respire_Incr | INCR | 0.96 | 0.92 | 0.96 | 0.96 |
| Respire_LPushLPop | LPUSH+LPOP | 0.95 | 0.88 | 0.95 | 0.95 |
| Respire_Ping | PING | 0.98 | 0.93 | 0.95 | 0.95 |
| Respire_Ping_SteadyState | PING x100 sequential | 0.99 | 0.94 | 0.96 | 0.96 |
| Respire_SAdd | SADD | 0.96 | 0.92 | 0.96 | 0.96 |
| Respire_Set_10KB | SET 10KB | 0.93 | 0.86 | 0.95 | 0.93 |
| Respire_Set_Small | SET 13B | 0.96 | 0.90 | 0.96 | 0.96 |
| Respire_Set_1KB | SET 1KB | 0.96 | 0.89 | 0.96 | 0.96 |
| Respire_Set_SteadyState | SET x100 sequential | 0.98 | 0.91 | 0.96 | 0.96 |
| Respire_SetDel | SET+DEL | 0.95 | 0.90 | 0.95 | 0.95 |
| Respire_SIsMember | SISMEMBER | 0.95 | 0.92 | 0.95 | 0.95 |
PubSubComparisonBenchmarks
| Method | Run 1 | Run 2 | Run 3 | Median |
|---|---|---|---|---|
| Respire_PublishAndConsume | 1.01 | 0.99 | 1.01 | 1.01 |
net11.0
ClientSideCachingBenchmarks
Run 1
BenchmarkDotNet v0.16.0-preview.2, Linux Ubuntu 26.04.1 LTS (Resolute Raccoon)
AMD EPYC 7763 3.23GHz, 1 CPU, 4 logical and 2 physical cores
Memory: 15.61 GB Total, 11.84 GB Available
.NET SDK 11.0.100
[Host] : .NET 11.0.0 (11.0.0, 11.0.26.53018), X64 RyuJIT x86-64-v3
Job-IDGKZI : .NET 11.0.0 (11.0.0, 11.0.26.53018), X64 RyuJIT x86-64-v3
IterationCount=15 LaunchCount=2 WarmupCount=10
| Method | Categories | Mean | Error | StdDev | Op/s | Ratio | MannWhitney(5%) | RatioSD | Allocated | Alloc Ratio |
|---|---|---|---|---|---|---|---|---|---|---|
| StackExchange_Exists_ServerRead | EXISTS hot | 140,237.3 ns | 1,091.77 ns | 1,600.31 ns | 7,130.8 | 1.000 | Baseline | 0.00 | 232 B | 1.00 |
| Respire_Exists_ServerRead | EXISTS hot | 138,062.8 ns | 1,590.40 ns | 2,380.43 ns | 7,243.1 | 0.985 | Same | 0.02 | - | 0.00 |
| Respire_Exists_ClientCacheHit | EXISTS hot | 356.7 ns | 3.84 ns | 5.25 ns | 2,803,585.5 | 0.003 | Faster | 0.00 | - | 0.00 |
| StackExchange_Get_ServerRead | GET hot | 144,716.6 ns | 930.84 ns | 1,334.98 ns | 6,910.1 | 1.000 | Baseline | 0.00 | 464 B | 1.00 |
| Respire_Get_ServerRead | GET hot | 136,657.7 ns | 1,276.63 ns | 1,789.65 ns | 7,317.6 | 0.944 | Same | 0.01 | 64 B | 0.14 |
| Respire_Get_ClientCacheHit | GET hot | 154.0 ns | 0.48 ns | 0.72 ns | 6,493,508.8 | 0.001 | Faster | 0.00 | - | 0.00 |
| StackExchange_GetMissing_ServerRead | GET missing hot | 140,166.6 ns | 975.79 ns | 1,335.67 ns | 7,134.4 | 1.000 | Baseline | 0.00 | 352 B | 1.00 |
| Respire_GetMissing_ServerRead | GET missing hot | 135,180.4 ns | 957.74 ns | 1,403.85 ns | 7,397.5 | 0.965 | Same | 0.01 | - | 0.00 |
| Respire_GetMissing_ClientCacheHit | GET missing hot | 157.1 ns | 1.62 ns | 2.42 ns | 6,367,135.6 | 0.001 | Faster | 0.00 | - | 0.00 |
| StackExchange_HGet_ServerRead | HGET hot | 144,669.0 ns | 1,084.47 ns | 1,520.27 ns | 6,912.3 | 1.000 | Baseline | 0.00 | 480 B | 1.00 |
| Respire_HGet_ServerRead | HGET hot | 134,966.0 ns | 970.76 ns | 1,360.87 ns | 7,409.3 | 0.933 | Faster | 0.01 | 64 B | 0.13 |
| Respire_HGet_ClientCacheHit | HGET hot | 411.8 ns | 1.34 ns | 1.92 ns | 2,428,637.1 | 0.003 | Faster | 0.00 | - | 0.00 |
Run 2
BenchmarkDotNet v0.16.0-preview.2, Linux Ubuntu 26.04.1 LTS (Resolute Raccoon)
AMD EPYC 9V74 3.69GHz, 1 CPU, 4 logical and 2 physical cores
Memory: 15.61 GB Total, 11.84 GB Available
.NET SDK 11.0.100
[Host] : .NET 11.0.0 (11.0.0, 11.0.26.53018), X64 RyuJIT x86-64-v4
Job-IDGKZI : .NET 11.0.0 (11.0.0, 11.0.26.53018), X64 RyuJIT x86-64-v4
IterationCount=15 LaunchCount=2 WarmupCount=10
| Method | Categories | Mean | Error | StdDev | Median | Op/s | Ratio | MannWhitney(5%) | RatioSD | Allocated | Alloc Ratio |
|---|---|---|---|---|---|---|---|---|---|---|---|
| StackExchange_Exists_ServerRead | EXISTS hot | 90,475.4 ns | 923.76 ns | 1,382.65 ns | 90,309.2 ns | 11,052.7 | 1.000 | Baseline | 0.00 | 232 B | 1.00 |
| Respire_Exists_ServerRead | EXISTS hot | 83,723.4 ns | 454.04 ns | 636.50 ns | 83,681.6 ns | 11,944.1 | 0.926 | Faster | 0.02 | - | 0.00 |
| Respire_Exists_ClientCacheHit | EXISTS hot | 294.1 ns | 4.90 ns | 7.03 ns | 289.9 ns | 3,400,191.7 | 0.003 | Faster | 0.00 | - | 0.00 |
| StackExchange_Get_ServerRead | GET hot | 93,228.1 ns | 824.16 ns | 1,181.99 ns | 93,027.6 ns | 10,726.4 | 1.000 | Baseline | 0.00 | 464 B | 1.00 |
| Respire_Get_ServerRead | GET hot | 83,452.9 ns | 294.59 ns | 412.97 ns | 83,397.5 ns | 11,982.8 | 0.895 | Faster | 0.01 | 64 B | 0.14 |
| Respire_Get_ClientCacheHit | GET hot | 132.7 ns | 6.41 ns | 8.77 ns | 125.3 ns | 7,534,671.6 | 0.001 | Faster | 0.00 | - | 0.00 |
| StackExchange_GetMissing_ServerRead | GET missing hot | 90,780.1 ns | 1,175.07 ns | 1,722.41 ns | 91,129.2 ns | 11,015.6 | 1.000 | Baseline | 0.00 | 352 B | 1.00 |
| Respire_GetMissing_ServerRead | GET missing hot | 83,504.0 ns | 468.72 ns | 657.09 ns | 83,458.3 ns | 11,975.5 | 0.920 | Faster | 0.02 | - | 0.00 |
| Respire_GetMissing_ClientCacheHit | GET missing hot | 127.4 ns | 1.70 ns | 2.55 ns | 126.7 ns | 7,849,557.1 | 0.001 | Faster | 0.00 | - | 0.00 |
| StackExchange_HGet_ServerRead | HGET hot | 95,468.4 ns | 614.15 ns | 900.22 ns | 95,253.3 ns | 10,474.7 | 1.000 | Baseline | 0.00 | 480 B | 1.00 |
| Respire_HGet_ServerRead | HGET hot | 84,130.5 ns | 743.46 ns | 1,066.25 ns | 83,824.7 ns | 11,886.3 | 0.881 | Faster | 0.01 | 64 B | 0.13 |
| Respire_HGet_ClientCacheHit | HGET hot | 329.5 ns | 2.46 ns | 3.53 ns | 329.4 ns | 3,034,977.7 | 0.003 | Faster | 0.00 | - | 0.00 |
Run 3
BenchmarkDotNet v0.16.0-preview.2, Linux Ubuntu 26.04.1 LTS (Resolute Raccoon)
AMD EPYC 7763 2.61GHz, 1 CPU, 4 logical and 2 physical cores
Memory: 15.61 GB Total, 11.82 GB Available
.NET SDK 11.0.100
[Host] : .NET 11.0.0 (11.0.0, 11.0.26.53018), X64 RyuJIT x86-64-v3
Job-IDGKZI : .NET 11.0.0 (11.0.0, 11.0.26.53018), X64 RyuJIT x86-64-v3
IterationCount=15 LaunchCount=2 WarmupCount=10
| Method | Categories | Mean | Error | StdDev | Median | Op/s | Ratio | MannWhitney(5%) | RatioSD | Allocated | Alloc Ratio |
|---|---|---|---|---|---|---|---|---|---|---|---|
| StackExchange_Exists_ServerRead | EXISTS hot | 138,977.6 ns | 1,892.55 ns | 2,714.24 ns | 138,213.4 ns | 7,195.4 | 1.000 | Baseline | 0.00 | 232 B | 1.00 |
| Respire_Exists_ServerRead | EXISTS hot | 134,344.6 ns | 896.97 ns | 1,257.43 ns | 134,417.0 ns | 7,443.5 | 0.967 | Same | 0.02 | - | 0.00 |
| Respire_Exists_ClientCacheHit | EXISTS hot | 349.2 ns | 1.75 ns | 2.52 ns | 349.5 ns | 2,863,312.7 | 0.003 | Faster | 0.00 | - | 0.00 |
| StackExchange_Get_ServerRead | GET hot | 141,795.3 ns | 1,213.47 ns | 1,740.32 ns | 141,923.1 ns | 7,052.4 | 1.000 | Baseline | 0.00 | 464 B | 1.00 |
| Respire_Get_ServerRead | GET hot | 133,808.2 ns | 856.34 ns | 1,281.73 ns | 133,630.4 ns | 7,473.4 | 0.944 | Same | 0.01 | 64 B | 0.14 |
| Respire_Get_ClientCacheHit | GET hot | 151.4 ns | 0.48 ns | 0.67 ns | 151.4 ns | 6,606,081.8 | 0.001 | Faster | 0.00 | - | 0.00 |
| StackExchange_GetMissing_ServerRead | GET missing hot | 140,614.3 ns | 1,183.51 ns | 1,659.11 ns | 140,466.8 ns | 7,111.7 | 1.000 | Baseline | 0.00 | 352 B | 1.00 |
| Respire_GetMissing_ServerRead | GET missing hot | 133,796.8 ns | 756.51 ns | 1,084.97 ns | 133,824.5 ns | 7,474.0 | 0.952 | Same | 0.01 | - | 0.00 |
| Respire_GetMissing_ClientCacheHit | GET missing hot | 158.0 ns | 0.70 ns | 1.05 ns | 157.7 ns | 6,330,848.3 | 0.001 | Faster | 0.00 | - | 0.00 |
| StackExchange_HGet_ServerRead | HGET hot | 144,313.1 ns | 722.01 ns | 1,012.15 ns | 144,313.4 ns | 6,929.4 | 1.000 | Baseline | 0.00 | 480 B | 1.00 |
| Respire_HGet_ServerRead | HGET hot | 134,760.7 ns | 1,032.57 ns | 1,480.88 ns | 134,587.6 ns | 7,420.6 | 0.934 | Faster | 0.01 | 64 B | 0.13 |
| Respire_HGet_ClientCacheHit | HGET hot | 410.2 ns | 8.02 ns | 11.76 ns | 419.3 ns | 2,437,983.9 | 0.003 | Faster | 0.00 | - | 0.00 |
CommonOperationsBenchmarks
Run 1
BenchmarkDotNet v0.16.0-preview.2, Linux Ubuntu 26.04.1 LTS (Resolute Raccoon)
AMD EPYC 7763 3.23GHz, 1 CPU, 4 logical and 2 physical cores
Memory: 15.61 GB Total, 11.84 GB Available
.NET SDK 11.0.100
[Host] : .NET 11.0.0 (11.0.0, 11.0.26.53018), X64 RyuJIT x86-64-v3
Job-IDGKZI : .NET 11.0.0 (11.0.0, 11.0.26.53018), X64 RyuJIT x86-64-v3
IterationCount=15 LaunchCount=2 WarmupCount=10
| Method | Categories | Mean | Error | StdDev | Ratio | MannWhitney(5%) | RatioSD | Gen0 | Allocated | Alloc Ratio |
|---|---|---|---|---|---|---|---|---|---|---|
| StackExchange_Exists | EXISTS | 138.211 μs | 1.1704 μs | 1.7518 μs | 1.00 | Baseline | 0.00 | - | 232 B | 1.00 |
| Respire_Exists | EXISTS | 133.226 μs | 0.6897 μs | 1.0110 μs | 0.96 | Same | 0.01 | - | - | 0.00 |
| StackExchange_Get | GET | 142.487 μs | 0.8505 μs | 1.1922 μs | 1.00 | Baseline | 0.00 | - | 440 B | 1.00 |
| Respire_Get | GET | 133.843 μs | 0.8146 μs | 1.1941 μs | 0.94 | Faster | 0.01 | - | 48 B | 0.11 |
| StackExchange_GetLong | GET long | 141.793 μs | 0.8795 μs | 1.2891 μs | 1.00 | Baseline | 0.00 | - | 352 B | 1.00 |
| Respire_GetLong | GET long | 134.152 μs | 1.1136 μs | 1.5611 μs | 0.95 | Same | 0.01 | - | - | 0.00 |
| StackExchange_Get_SteadyState | GET x100 sequential | 141.755 μs | 2.0400 μs | 2.9257 μs | 1.00 | Baseline | 0.00 | - | 337 B | 1.00 |
| Respire_Get_SteadyState | GET x100 sequential | 134.250 μs | 0.7358 μs | 1.0786 μs | 0.95 | Same | 0.02 | - | 49 B | 0.15 |
| StackExchange_Get_Pipelined | GET x200 pipelined | 2.299 μs | 0.0108 μs | 0.0154 μs | 1.00 | Baseline | 0.00 | 0.0171 | 289 B | 1.00 |
| Respire_Get_Pipelined | GET x200 pipelined | 2.088 μs | 0.0104 μs | 0.0145 μs | 0.91 | Faster | 0.01 | 0.0024 | 49 B | 0.17 |
| StackExchange_Get_Concurrent | GET x50 concurrent | 4.910 μs | 0.0446 μs | 0.0653 μs | 1.00 | Baseline | 0.00 | 0.0098 | 290 B | 1.00 |
| Respire_Get_Concurrent | GET x50 concurrent | 5.030 μs | 0.0340 μs | 0.0499 μs | 1.02 | Same | 0.02 | - | 51 B | 0.18 |
| StackExchange_HGet | HGET | 143.251 μs | 0.8554 μs | 1.2269 μs | 1.00 | Baseline | 0.00 | - | 456 B | 1.00 |
| Respire_HGet | HGET | 133.883 μs | 0.5803 μs | 0.8134 μs | 0.93 | Faster | 0.01 | - | 48 B | 0.11 |
| StackExchange_HSet | HSET | 141.997 μs | 1.4182 μs | 2.1228 μs | 1.00 | Baseline | 0.00 | - | 264 B | 1.00 |
| Respire_HSet | HSET | 135.403 μs | 0.7235 μs | 0.9904 μs | 0.95 | Same | 0.02 | - | - | 0.00 |
| StackExchange_Incr | INCR | 139.956 μs | 1.1391 μs | 1.7049 μs | 1.00 | Baseline | 0.00 | - | 232 B | 1.00 |
| Respire_Incr | INCR | 134.563 μs | 0.8823 μs | 1.2933 μs | 0.96 | Same | 0.01 | - | - | 0.00 |
| StackExchange_LPushLPop | LPUSH+LPOP | 292.826 μs | 1.7337 μs | 2.5412 μs | 1.00 | Baseline | 0.00 | - | 696 B | 1.00 |
| Respire_LPushLPop | LPUSH+LPOP | 279.434 μs | 2.4031 μs | 3.3689 μs | 0.95 | Same | 0.01 | - | 192 B | 0.28 |
| StackExchange_Ping | PING | 135.309 μs | 0.8124 μs | 1.1908 μs | 1.00 | Baseline | 0.00 | - | 240 B | 1.00 |
| Respire_Ping | PING | 132.804 μs | 0.7932 μs | 1.1627 μs | 0.98 | Same | 0.01 | - | - | 0.00 |
| StackExchange_Ping_SteadyState | PING x100 sequential | 134.641 μs | 0.8035 μs | 1.2027 μs | 1.00 | Baseline | 0.00 | - | 241 B | 1.000 |
| Respire_Ping_SteadyState | PING x100 sequential | 132.989 μs | 0.6188 μs | 0.9262 μs | 0.99 | Same | 0.01 | - | 1 B | 0.004 |
| StackExchange_SAdd | SADD | 139.767 μs | 0.7483 μs | 1.0969 μs | 1.00 | Baseline | 0.00 | - | 248 B | 1.00 |
| Respire_SAdd | SADD | 134.319 μs | 0.9607 μs | 1.3778 μs | 0.96 | Same | 0.01 | - | - | 0.00 |
| StackExchange_Set_10KB | SET 10KB | 156.215 μs | 2.3127 μs | 3.3168 μs | 1.00 | Baseline | 0.00 | - | 248 B | 1.00 |
| Respire_Set_10KB | SET 10KB | 145.301 μs | 2.0949 μs | 3.0045 μs | 0.93 | Same | 0.03 | - | - | 0.00 |
| StackExchange_Set_Small | SET 13B | 141.478 μs | 0.7745 μs | 1.1107 μs | 1.00 | Baseline | 0.00 | - | 248 B | 1.00 |
| Respire_Set_Small | SET 13B | 135.228 μs | 0.7316 μs | 1.0493 μs | 0.96 | Same | 0.01 | - | - | 0.00 |
| StackExchange_Set_1KB | SET 1KB | 142.964 μs | 1.0713 μs | 1.5703 μs | 1.00 | Baseline | 0.00 | - | 248 B | 1.00 |
| Respire_Set_1KB | SET 1KB | 136.941 μs | 1.1799 μs | 1.6921 μs | 0.96 | Same | 0.02 | - | - | 0.00 |
| StackExchange_Set_SteadyState | SET x100 sequential | 140.937 μs | 0.7582 μs | 1.1349 μs | 1.00 | Baseline | 0.00 | - | 249 B | 1.000 |
| Respire_Set_SteadyState | SET x100 sequential | 137.692 μs | 1.3049 μs | 1.9126 μs | 0.98 | Same | 0.02 | - | 1 B | 0.004 |
| StackExchange_SetDel | SET+DEL | 288.656 μs | 1.7781 μs | 2.6063 μs | 1.00 | Baseline | 0.00 | - | 584 B | 1.00 |
| Respire_SetDel | SET+DEL | 274.276 μs | 1.5850 μs | 2.3232 μs | 0.95 | Same | 0.01 | - | 136 B | 0.23 |
| StackExchange_SIsMember | SISMEMBER | 141.074 μs | 1.1851 μs | 1.6997 μs | 1.00 | Baseline | 0.00 | - | 248 B | 1.00 |
| Respire_SIsMember | SISMEMBER | 133.953 μs | 0.4921 μs | 0.6736 μs | 0.95 | Same | 0.01 | - | - | 0.00 |
Run 2
BenchmarkDotNet v0.16.0-preview.2, Linux Ubuntu 26.04.1 LTS (Resolute Raccoon)
AMD EPYC 9V74 3.69GHz, 1 CPU, 4 logical and 2 physical cores
Memory: 15.61 GB Total, 11.84 GB Available
.NET SDK 11.0.100
[Host] : .NET 11.0.0 (11.0.0, 11.0.26.53018), X64 RyuJIT x86-64-v4
Job-IDGKZI : .NET 11.0.0 (11.0.0, 11.0.26.53018), X64 RyuJIT x86-64-v4
IterationCount=15 LaunchCount=2 WarmupCount=10
| Method | Categories | Mean | Error | StdDev | Ratio | MannWhitney(5%) | RatioSD | Gen0 | Allocated | Alloc Ratio |
|---|---|---|---|---|---|---|---|---|---|---|
| StackExchange_Exists | EXISTS | 89.018 μs | 0.4579 μs | 0.6711 μs | 1.00 | Baseline | 0.00 | - | 232 B | 1.00 |
| Respire_Exists | EXISTS | 82.914 μs | 0.8996 μs | 1.2901 μs | 0.93 | Faster | 0.02 | - | - | 0.00 |
| StackExchange_Get | GET | 92.595 μs | 0.7719 μs | 1.0820 μs | 1.00 | Baseline | 0.00 | - | 440 B | 1.00 |
| Respire_Get | GET | 83.219 μs | 0.4010 μs | 0.5354 μs | 0.90 | Faster | 0.01 | - | 48 B | 0.11 |
| StackExchange_GetLong | GET long | 92.207 μs | 0.8929 μs | 1.2806 μs | 1.00 | Baseline | 0.00 | - | 352 B | 1.00 |
| Respire_GetLong | GET long | 83.175 μs | 0.5593 μs | 0.8199 μs | 0.90 | Faster | 0.02 | - | - | 0.00 |
| StackExchange_Get_SteadyState | GET x100 sequential | 90.514 μs | 0.6408 μs | 0.9190 μs | 1.00 | Baseline | 0.00 | - | 337 B | 1.00 |
| Respire_Get_SteadyState | GET x100 sequential | 83.295 μs | 0.3957 μs | 0.5675 μs | 0.92 | Faster | 0.01 | - | 49 B | 0.15 |
| StackExchange_Get_Pipelined | GET x200 pipelined | 1.624 μs | 0.0094 μs | 0.0131 μs | 1.00 | Baseline | 0.00 | 0.0171 | 289 B | 1.00 |
| Respire_Get_Pipelined | GET x200 pipelined | 1.382 μs | 0.0050 μs | 0.0069 μs | 0.85 | Faster | 0.01 | 0.0024 | 49 B | 0.17 |
| StackExchange_Get_Concurrent | GET x50 concurrent | 3.293 μs | 0.0198 μs | 0.0291 μs | 1.00 | Baseline | 0.00 | 0.0146 | 290 B | 1.00 |
| Respire_Get_Concurrent | GET x50 concurrent | 3.149 μs | 0.0192 μs | 0.0276 μs | 0.96 | Same | 0.01 | - | 51 B | 0.18 |
| StackExchange_HGet | HGET | 94.164 μs | 0.7735 μs | 1.1337 μs | 1.00 | Baseline | 0.00 | - | 456 B | 1.00 |
| Respire_HGet | HGET | 82.564 μs | 0.8363 μs | 1.2259 μs | 0.88 | Faster | 0.02 | - | 48 B | 0.11 |
| StackExchange_HSet | HSET | 92.616 μs | 0.5761 μs | 0.8262 μs | 1.00 | Baseline | 0.00 | - | 264 B | 1.00 |
| Respire_HSet | HSET | 83.773 μs | 0.2226 μs | 0.2972 μs | 0.90 | Faster | 0.01 | - | - | 0.00 |
| StackExchange_Incr | INCR | 90.900 μs | 0.8572 μs | 1.2016 μs | 1.00 | Baseline | 0.00 | - | 232 B | 1.00 |
| Respire_Incr | INCR | 83.406 μs | 0.4027 μs | 0.5646 μs | 0.92 | Faster | 0.01 | - | - | 0.00 |
| StackExchange_LPushLPop | LPUSH+LPOP | 194.178 μs | 1.6201 μs | 2.4249 μs | 1.00 | Baseline | 0.00 | - | 696 B | 1.00 |
| Respire_LPushLPop | LPUSH+LPOP | 171.082 μs | 0.8819 μs | 1.2648 μs | 0.88 | Faster | 0.01 | - | 192 B | 0.28 |
| StackExchange_Ping | PING | 88.016 μs | 0.5184 μs | 0.7096 μs | 1.00 | Baseline | 0.00 | - | 240 B | 1.00 |
| Respire_Ping | PING | 81.826 μs | 0.4676 μs | 0.6556 μs | 0.93 | Faster | 0.01 | - | - | 0.00 |
| StackExchange_Ping_SteadyState | PING x100 sequential | 87.499 μs | 0.4923 μs | 0.6901 μs | 1.00 | Baseline | 0.00 | - | 241 B | 1.000 |
| Respire_Ping_SteadyState | PING x100 sequential | 82.229 μs | 0.4397 μs | 0.6163 μs | 0.94 | Faster | 0.01 | - | 1 B | 0.004 |
| StackExchange_SAdd | SADD | 90.482 μs | 0.5817 μs | 0.8526 μs | 1.00 | Baseline | 0.00 | - | 248 B | 1.00 |
| Respire_SAdd | SADD | 82.912 μs | 0.5180 μs | 0.7262 μs | 0.92 | Faster | 0.01 | - | - | 0.00 |
| StackExchange_Set_10KB | SET 10KB | 106.155 μs | 0.7350 μs | 1.0774 μs | 1.00 | Baseline | 0.00 | - | 248 B | 1.00 |
| Respire_Set_10KB | SET 10KB | 91.597 μs | 0.4177 μs | 0.5855 μs | 0.86 | Faster | 0.01 | - | - | 0.00 |
| StackExchange_Set_Small | SET 13B | 92.914 μs | 0.8769 μs | 1.3124 μs | 1.00 | Baseline | 0.00 | - | 248 B | 1.00 |
| Respire_Set_Small | SET 13B | 84.023 μs | 0.4515 μs | 0.6329 μs | 0.90 | Faster | 0.01 | - | - | 0.00 |
| StackExchange_Set_1KB | SET 1KB | 94.198 μs | 0.6172 μs | 0.9047 μs | 1.00 | Baseline | 0.00 | - | 248 B | 1.00 |
| Respire_Set_1KB | SET 1KB | 84.142 μs | 0.4908 μs | 0.6717 μs | 0.89 | Faster | 0.01 | - | - | 0.00 |
| StackExchange_Set_SteadyState | SET x100 sequential | 91.635 μs | 0.9326 μs | 1.3375 μs | 1.00 | Baseline | 0.00 | - | 249 B | 1.000 |
| Respire_Set_SteadyState | SET x100 sequential | 83.564 μs | 0.3427 μs | 0.4804 μs | 0.91 | Faster | 0.01 | - | 1 B | 0.004 |
| StackExchange_SetDel | SET+DEL | 187.366 μs | 1.4253 μs | 1.9981 μs | 1.00 | Baseline | 0.00 | - | 584 B | 1.00 |
| Respire_SetDel | SET+DEL | 168.287 μs | 0.8911 μs | 1.2492 μs | 0.90 | Faster | 0.01 | - | 136 B | 0.23 |
| StackExchange_SIsMember | SISMEMBER | 90.498 μs | 0.7500 μs | 1.1226 μs | 1.00 | Baseline | 0.00 | - | 248 B | 1.00 |
| Respire_SIsMember | SISMEMBER | 82.835 μs | 0.5742 μs | 0.7859 μs | 0.92 | Faster | 0.01 | - | - | 0.00 |
Run 3
BenchmarkDotNet v0.16.0-preview.2, Linux Ubuntu 26.04.1 LTS (Resolute Raccoon)
AMD EPYC 7763 2.61GHz, 1 CPU, 4 logical and 2 physical cores
Memory: 15.61 GB Total, 11.82 GB Available
.NET SDK 11.0.100
[Host] : .NET 11.0.0 (11.0.0, 11.0.26.53018), X64 RyuJIT x86-64-v3
Job-IDGKZI : .NET 11.0.0 (11.0.0, 11.0.26.53018), X64 RyuJIT x86-64-v3
IterationCount=15 LaunchCount=2 WarmupCount=10
| Method | Categories | Mean | Error | StdDev | Ratio | MannWhitney(5%) | RatioSD | Gen0 | Allocated | Alloc Ratio |
|---|---|---|---|---|---|---|---|---|---|---|
| StackExchange_Exists | EXISTS | 137.676 μs | 1.5768 μs | 2.3600 μs | 1.00 | Baseline | 0.00 | - | 232 B | 1.00 |
| Respire_Exists | EXISTS | 132.942 μs | 1.1648 μs | 1.7074 μs | 0.97 | Same | 0.02 | - | - | 0.00 |
| StackExchange_Get | GET | 141.553 μs | 1.0058 μs | 1.4099 μs | 1.00 | Baseline | 0.00 | - | 440 B | 1.00 |
| Respire_Get | GET | 132.689 μs | 0.9119 μs | 1.2784 μs | 0.94 | Faster | 0.01 | - | 48 B | 0.11 |
| StackExchange_GetLong | GET long | 140.915 μs | 1.1981 μs | 1.7562 μs | 1.00 | Baseline | 0.00 | - | 364 B | 1.00 |
| Respire_GetLong | GET long | 133.398 μs | 0.8919 μs | 1.2791 μs | 0.95 | Same | 0.01 | - | - | 0.00 |
| StackExchange_Get_SteadyState | GET x100 sequential | 142.014 μs | 2.7121 μs | 3.8019 μs | 1.00 | Baseline | 0.00 | - | 337 B | 1.00 |
| Respire_Get_SteadyState | GET x100 sequential | 134.083 μs | 0.9915 μs | 1.4220 μs | 0.94 | Same | 0.03 | - | 49 B | 0.15 |
| StackExchange_Get_Pipelined | GET x200 pipelined | 2.219 μs | 0.0117 μs | 0.0171 μs | 1.00 | Baseline | 0.00 | 0.0171 | 289 B | 1.00 |
| Respire_Get_Pipelined | GET x200 pipelined | 2.032 μs | 0.0108 μs | 0.0162 μs | 0.92 | Faster | 0.01 | 0.0024 | 49 B | 0.17 |
| StackExchange_Get_Concurrent | GET x50 concurrent | 4.851 μs | 0.0403 μs | 0.0603 μs | 1.00 | Baseline | 0.00 | 0.0098 | 290 B | 1.00 |
| Respire_Get_Concurrent | GET x50 concurrent | 4.938 μs | 0.0307 μs | 0.0431 μs | 1.02 | Same | 0.02 | - | 51 B | 0.18 |
| StackExchange_HGet | HGET | 142.764 μs | 0.8944 μs | 1.3109 μs | 1.00 | Baseline | 0.00 | - | 456 B | 1.00 |
| Respire_HGet | HGET | 134.365 μs | 1.0835 μs | 1.5881 μs | 0.94 | Same | 0.01 | - | 48 B | 0.11 |
| StackExchange_HSet | HSET | 144.854 μs | 2.3217 μs | 3.3297 μs | 1.00 | Baseline | 0.00 | - | 264 B | 1.00 |
| Respire_HSet | HSET | 134.999 μs | 1.0724 μs | 1.5380 μs | 0.93 | Same | 0.02 | - | - | 0.00 |
| StackExchange_Incr | INCR | 139.898 μs | 1.2904 μs | 1.8915 μs | 1.00 | Baseline | 0.00 | - | 232 B | 1.00 |
| Respire_Incr | INCR | 134.115 μs | 0.9196 μs | 1.3480 μs | 0.96 | Same | 0.02 | - | - | 0.00 |
| StackExchange_LPushLPop | LPUSH+LPOP | 292.942 μs | 1.9697 μs | 2.7612 μs | 1.00 | Baseline | 0.00 | - | 696 B | 1.00 |
| Respire_LPushLPop | LPUSH+LPOP | 279.373 μs | 3.4357 μs | 4.9274 μs | 0.95 | Same | 0.02 | - | 192 B | 0.28 |
| StackExchange_Ping | PING | 138.112 μs | 2.0203 μs | 2.8974 μs | 1.00 | Baseline | 0.00 | - | 240 B | 1.00 |
| Respire_Ping | PING | 131.782 μs | 0.7553 μs | 1.0589 μs | 0.95 | Same | 0.02 | - | - | 0.00 |
| StackExchange_Ping_SteadyState | PING x100 sequential | 137.333 μs | 2.6170 μs | 3.7532 μs | 1.00 | Baseline | 0.00 | - | 241 B | 1.000 |
| Respire_Ping_SteadyState | PING x100 sequential | 131.868 μs | 0.6178 μs | 0.8860 μs | 0.96 | Same | 0.03 | - | 1 B | 0.004 |
| StackExchange_SAdd | SADD | 139.861 μs | 1.3160 μs | 1.9289 μs | 1.00 | Baseline | 0.00 | - | 248 B | 1.00 |
| Respire_SAdd | SADD | 133.915 μs | 0.8256 μs | 1.1301 μs | 0.96 | Same | 0.02 | - | - | 0.00 |
| StackExchange_Set_10KB | SET 10KB | 153.350 μs | 2.0919 μs | 3.0663 μs | 1.00 | Baseline | 0.00 | - | 248 B | 1.00 |
| Respire_Set_10KB | SET 10KB | 146.376 μs | 2.1678 μs | 3.1775 μs | 0.95 | Same | 0.03 | - | - | 0.00 |
| StackExchange_Set_Small | SET 13B | 140.551 μs | 0.8165 μs | 1.1446 μs | 1.00 | Baseline | 0.00 | - | 248 B | 1.00 |
| Respire_Set_Small | SET 13B | 135.533 μs | 0.7602 μs | 1.1143 μs | 0.96 | Same | 0.01 | - | - | 0.00 |
| StackExchange_Set_1KB | SET 1KB | 143.552 μs | 1.6930 μs | 2.3734 μs | 1.00 | Baseline | 0.00 | - | 248 B | 1.00 |
| Respire_Set_1KB | SET 1KB | 137.182 μs | 1.4351 μs | 2.0118 μs | 0.96 | Same | 0.02 | - | - | 0.00 |
| StackExchange_Set_SteadyState | SET x100 sequential | 140.728 μs | 0.9596 μs | 1.4066 μs | 1.00 | Baseline | 0.00 | - | 249 B | 1.000 |
| Respire_Set_SteadyState | SET x100 sequential | 135.044 μs | 0.7843 μs | 1.1496 μs | 0.96 | Same | 0.01 | - | 1 B | 0.004 |
| StackExchange_SetDel | SET+DEL | 286.499 μs | 2.8177 μs | 3.9501 μs | 1.00 | Baseline | 0.00 | - | 584 B | 1.00 |
| Respire_SetDel | SET+DEL | 271.070 μs | 1.8386 μs | 2.7519 μs | 0.95 | Same | 0.02 | - | 136 B | 0.23 |
| StackExchange_SIsMember | SISMEMBER | 140.401 μs | 1.0343 μs | 1.5160 μs | 1.00 | Baseline | 0.00 | - | 248 B | 1.00 |
| Respire_SIsMember | SISMEMBER | 133.494 μs | 0.7502 μs | 1.0517 μs | 0.95 | Same | 0.01 | - | - | 0.00 |
PubSubComparisonBenchmarks
Run 1
BenchmarkDotNet v0.16.0-preview.2, Linux Ubuntu 26.04.1 LTS (Resolute Raccoon)
AMD EPYC 7763 3.23GHz, 1 CPU, 4 logical and 2 physical cores
Memory: 15.61 GB Total, 11.84 GB Available
.NET SDK 11.0.100
[Host] : .NET 11.0.0 (11.0.0, 11.0.26.53018), X64 RyuJIT x86-64-v3
Job-IDGKZI : .NET 11.0.0 (11.0.0, 11.0.26.53018), X64 RyuJIT x86-64-v3
IterationCount=15 LaunchCount=2 WarmupCount=10
| Method | Mean | Error | StdDev | Ratio | MannWhitney(5%) | Allocated | Alloc Ratio |
|---|---|---|---|---|---|---|---|
| StackExchange_PublishAndConsume | 173.3 μs | 0.80 μs | 1.12 μs | 1.00 | Baseline | 608 B | 1.00 |
| Respire_PublishAndConsume | 174.6 μs | 1.16 μs | 1.66 μs | 1.01 | Same | 336 B | 0.55 |
Run 2
BenchmarkDotNet v0.16.0-preview.2, Linux Ubuntu 26.04.1 LTS (Resolute Raccoon)
AMD EPYC 9V74 3.69GHz, 1 CPU, 4 logical and 2 physical cores
Memory: 15.61 GB Total, 11.84 GB Available
.NET SDK 11.0.100
[Host] : .NET 11.0.0 (11.0.0, 11.0.26.53018), X64 RyuJIT x86-64-v4
Job-IDGKZI : .NET 11.0.0 (11.0.0, 11.0.26.53018), X64 RyuJIT x86-64-v4
IterationCount=15 LaunchCount=2 WarmupCount=10
| Method | Mean | Error | StdDev | Ratio | MannWhitney(5%) | Allocated | Alloc Ratio |
|---|---|---|---|---|---|---|---|
| StackExchange_PublishAndConsume | 115.2 μs | 0.48 μs | 0.68 μs | 1.00 | Baseline | 608 B | 1.00 |
| Respire_PublishAndConsume | 114.2 μs | 0.58 μs | 0.83 μs | 0.99 | Same | 336 B | 0.55 |
Run 3
BenchmarkDotNet v0.16.0-preview.2, Linux Ubuntu 26.04.1 LTS (Resolute Raccoon)
AMD EPYC 7763 2.61GHz, 1 CPU, 4 logical and 2 physical cores
Memory: 15.61 GB Total, 11.82 GB Available
.NET SDK 11.0.100
[Host] : .NET 11.0.0 (11.0.0, 11.0.26.53018), X64 RyuJIT x86-64-v3
Job-IDGKZI : .NET 11.0.0 (11.0.0, 11.0.26.53018), X64 RyuJIT x86-64-v3
IterationCount=15 LaunchCount=2 WarmupCount=10
| Method | Mean | Error | StdDev | Ratio | MannWhitney(5%) | Allocated | Alloc Ratio |
|---|---|---|---|---|---|---|---|
| StackExchange_PublishAndConsume | 173.0 μs | 1.24 μs | 1.70 μs | 1.00 | Baseline | 608 B | 1.00 |
| Respire_PublishAndConsume | 175.0 μs | 0.77 μs | 1.10 μs | 1.01 | Same | 336 B | 0.55 |
Reading the results
These runs use shared Linux machines and a local Redis container, so expect some variation between runs. Before making an important decision, measure with your own payload sizes, concurrency, Redis deployment, and network.