Skip to content

Commit 13cec6b

Browse files
committed
Update performance doc with raw mode benchmark result
1 parent b1e05eb commit 13cec6b

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

docs/performance.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,26 @@ new Storage('events', {
105105

106106
!!! note
107107
At 10 000 partitions with the default cap of 1 024, every write touches a different partition in the sample, so every write triggers a close+reopen. Setting `maxOpenPartitions` to `0` (or ≥ 10 000) reduces write latency at that scale from ~0.40 ms back to ~0.09 ms.
108+
109+
110+
### Raw mode benchmarks
111+
112+
These benchmarks measure pure **read operations** (no writes). The range scan reads the middle third of the log.
113+
114+
| Scenario | Variant | Events/sec | Deviation | Runs |
115+
|----------|---------|-----------:|----------:|-----:|
116+
| forward full scan | stable | 452,500 | ±0.83% | 60 |
117+
| forward full scan | latest | 411,800 | ±1.25% | 55 |
118+
| forward full scan | latest(raw) | 877,300 | ±0.83% | 75 |
119+
| --- | --- | ---: | ---: | ---: |
120+
| backwards full scan | stable | 421,000 | ±0.56% | 56 |
121+
| backwards full scan | latest | 421,400 | ±0.32% | 56 |
122+
| backwards full scan | latest(raw) | 871,600 | ±0.66% | 75 |
123+
| --- | --- | ---: | ---: | ---: |
124+
| join stream | stable | 424,500 | ±0.35% | 56 |
125+
| join stream | latest | 396,500 | ±0.43% | 53 |
126+
| join stream | latest(raw) | 798,000 | ±0.77% | 69 |
127+
| --- | --- | ---: | ---: | ---: |
128+
| range scan | stable | 453,288 | ±0.28% | 86 |
129+
| range scan | latest | 423,291 | ±0.45% | 81 |
130+
| range scan | latest(raw) | 886,578 | ±0.59% | 90 |

0 commit comments

Comments
 (0)