Spaces:
Running
Running
Release Pulsefold 0.1.0: source, interactive replay and benchmark corpus
Browse files- .github/workflows/check.yml +13 -0
- .gitignore +2 -0
- CITATION.cff +10 -0
- LICENSE +21 -0
- Makefile +49 -0
- README.md +97 -5
- bench/baselines.hpp +369 -0
- bench/benchmark.cpp +191 -0
- bench/data/README.md +11 -0
- bench/data/extract_intel.py +55 -0
- bench/data/intel-lab-4h.tsv +0 -0
- bench/grouped.cpp +307 -0
- bench/scale.cpp +186 -0
- bench/wide_radix.hpp +184 -0
- bench/workloads.hpp +119 -0
- demo/index.html +182 -0
- examples/expected.txt +4 -0
- examples/heartbeat.txt +5 -0
- include/pulsefold.hpp +290 -0
- index.html +180 -17
- llms.txt +15 -0
- releases/pulsefold-0.1.0.zip +3 -0
- results/REPORT.md +79 -0
- results/grouped.csv +161 -0
- results/scale.jsonl +5 -0
- results/sensor.csv +51 -0
- results/synthetic.csv +801 -0
- results/unique.jsonl +5 -0
- src/arguments.hpp +41 -0
- src/live.cpp +122 -0
- src/replay.cpp +74 -0
- tests/live_smoke.py +63 -0
- tests/test_baselines.cpp +71 -0
- tests/test_monitor.cpp +288 -0
.github/workflows/check.yml
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: Test release
|
| 2 |
+
on: [push, pull_request]
|
| 3 |
+
permissions:
|
| 4 |
+
contents: read
|
| 5 |
+
jobs:
|
| 6 |
+
verify:
|
| 7 |
+
runs-on: ubuntu-latest
|
| 8 |
+
steps:
|
| 9 |
+
- uses: actions/checkout@v4
|
| 10 |
+
- run: make -j2 check live-check build/scale build/benchmark build/grouped
|
| 11 |
+
- run: build/scale 4096 128 8
|
| 12 |
+
- run: build/benchmark --trace bench/data/intel-lab-4h.tsv --repeats 1
|
| 13 |
+
- run: build/grouped --repeats 1
|
.gitignore
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/build/
|
| 2 |
+
__pycache__/
|
CITATION.cff
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
cff-version: 1.2.0
|
| 2 |
+
message: "Please cite the exact version when publishing benchmark results."
|
| 3 |
+
title: Pulsefold
|
| 4 |
+
version: 0.1.0
|
| 5 |
+
date-released: 2026-11-22
|
| 6 |
+
type: software
|
| 7 |
+
authors:
|
| 8 |
+
- name: Pulsefold contributors
|
| 9 |
+
license: MIT
|
| 10 |
+
url: "https://huggingface.co/spaces/pgg-engineering/pulsefold"
|
LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2026 Pulsefold contributors
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in all
|
| 13 |
+
copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 21 |
+
SOFTWARE.
|
Makefile
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
CXX ?= c++
|
| 2 |
+
CXXFLAGS ?= -O3 -std=c++17 -DNDEBUG -Wall -Wextra -Wpedantic
|
| 3 |
+
OUT ?= build
|
| 4 |
+
HEADER = include/pulsefold.hpp
|
| 5 |
+
|
| 6 |
+
.PHONY: all check live-check benchmark scale clean
|
| 7 |
+
all: $(OUT)/pulsefold
|
| 8 |
+
|
| 9 |
+
$(OUT):
|
| 10 |
+
mkdir -p $(OUT)
|
| 11 |
+
|
| 12 |
+
$(OUT)/pulsefold: src/replay.cpp src/arguments.hpp $(HEADER) | $(OUT)
|
| 13 |
+
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -Iinclude $< -o $@
|
| 14 |
+
|
| 15 |
+
$(OUT)/pulsefold-live: src/live.cpp src/arguments.hpp $(HEADER) | $(OUT)
|
| 16 |
+
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -Iinclude $< -o $@
|
| 17 |
+
|
| 18 |
+
live-check: $(OUT)/pulsefold-live
|
| 19 |
+
python3 tests/live_smoke.py $(OUT)/pulsefold-live
|
| 20 |
+
|
| 21 |
+
$(OUT)/tests: tests/test_monitor.cpp $(HEADER) | $(OUT)
|
| 22 |
+
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -UNDEBUG -Iinclude $< -o $@
|
| 23 |
+
|
| 24 |
+
$(OUT)/benchmark: bench/benchmark.cpp bench/workloads.hpp bench/baselines.hpp bench/wide_radix.hpp $(HEADER) | $(OUT)
|
| 25 |
+
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -Iinclude $< -o $@
|
| 26 |
+
|
| 27 |
+
$(OUT)/scale: bench/scale.cpp $(HEADER) | $(OUT)
|
| 28 |
+
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -Iinclude $< -o $@
|
| 29 |
+
|
| 30 |
+
$(OUT)/baseline-tests: tests/test_baselines.cpp bench/baselines.hpp bench/wide_radix.hpp | $(OUT)
|
| 31 |
+
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -UNDEBUG $< -o $@
|
| 32 |
+
|
| 33 |
+
check: $(OUT)/pulsefold $(OUT)/tests $(OUT)/baseline-tests
|
| 34 |
+
$(OUT)/tests
|
| 35 |
+
$(OUT)/baseline-tests
|
| 36 |
+
$(OUT)/pulsefold 1 5,12 < examples/heartbeat.txt > $(OUT)/example.txt
|
| 37 |
+
diff -u examples/expected.txt $(OUT)/example.txt
|
| 38 |
+
|
| 39 |
+
benchmark: $(OUT)/benchmark
|
| 40 |
+
$(OUT)/benchmark
|
| 41 |
+
|
| 42 |
+
scale: $(OUT)/scale
|
| 43 |
+
$(OUT)/scale
|
| 44 |
+
|
| 45 |
+
clean:
|
| 46 |
+
rm -rf $(OUT)
|
| 47 |
+
|
| 48 |
+
$(OUT)/grouped: bench/grouped.cpp bench/workloads.hpp bench/baselines.hpp bench/wide_radix.hpp $(HEADER) | $(OUT)
|
| 49 |
+
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -Iinclude $< -o $@
|
README.md
CHANGED
|
@@ -1,10 +1,102 @@
|
|
| 1 |
---
|
| 2 |
title: Pulsefold
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: static
|
| 7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
title: Pulsefold
|
| 3 |
+
emoji: ⏱️
|
| 4 |
+
colorFrom: green
|
| 5 |
+
colorTo: blue
|
| 6 |
sdk: static
|
| 7 |
+
app_file: demo/index.html
|
| 8 |
+
license: mit
|
| 9 |
+
short_description: Exact heartbeat deadlines for large agent fleets
|
| 10 |
+
tags:
|
| 11 |
+
- cpp
|
| 12 |
+
- event-time
|
| 13 |
+
- multi-agent
|
| 14 |
+
- benchmarking
|
| 15 |
---
|
| 16 |
|
| 17 |
+
# Pulsefold
|
| 18 |
+
|
| 19 |
+
Track when a heartbeat becomes too old for each of its readers. One reader can stop routing work after 50 ms of silence, another can wait 500 ms before failing a task, and an operator dashboard can wait five seconds. Every reader shares the same last-seen timestamp.
|
| 20 |
+
|
| 21 |
+
Pulsefold is a dependency-free C++17 header with a replay CLI and a POSIX live adapter. Configure a deadline policy once and assign it to a million feeds. Each feed stores one deadline. A 16-way tree of lower bounds skips feeds whose deadline is still in the future. When many readers share a deadline, one callback can hand the consumer a read-only list of everyone affected.
|
| 22 |
+
|
| 23 |
+
[Interactive heartbeat replay](https://pulsefold.tancurl3.chatgpt.site/) · [Measured results](results/REPORT.md) · [Source header](include/pulsefold.hpp)
|
| 24 |
+
|
| 25 |
+
On one AMD EPYC CPU, a 1,048,576-feed test represented **1,073,741,824 logical watches in 34.27 MiB** of peak process memory. The grouped rotating-outage benchmark took **12.39 ns per input operation**, against **26.31 ns** for the fastest competing implementation in the release. On a 54-sensor recorded trace, Pulsefold and a cached scan were within 1.3%. Read the full results before choosing an engine.
|
| 26 |
+
|
| 27 |
+
## Run the example
|
| 28 |
+
|
| 29 |
+
curl -fsSLO https://pulsefold.tancurl3.chatgpt.site/releases/pulsefold-0.1.0.zip
|
| 30 |
+
unzip -q pulsefold-0.1.0.zip
|
| 31 |
+
cd pulsefold-0.1.0
|
| 32 |
+
make check
|
| 33 |
+
build/pulsefold 1 5,12 < examples/heartbeat.txt
|
| 34 |
+
|
| 35 |
+
The last heartbeat at time 4 sets deadlines at 9 and 16. The heartbeat at 10 recovers reader 0 and sets new deadlines for both readers. Output:
|
| 36 |
+
|
| 37 |
+
9 0 0 stale
|
| 38 |
+
10 0 0 fresh
|
| 39 |
+
15 0 0 stale
|
| 40 |
+
22 0 1 stale
|
| 41 |
+
|
| 42 |
+
The columns are event time, feed ID, subscriber ID, and new state. The input accepts `TIME FEED` and `TIME tick`, in nondecreasing time order. Ticks let a replay report silence even when every sender has stopped. The `--summary` switch counts transitions. Integer times and positive deadlines must use the same unit.
|
| 43 |
+
|
| 44 |
+
## Connect live agents
|
| 45 |
+
|
| 46 |
+
On a POSIX host, feed numeric sender IDs to a long-lived process, one per line.
|
| 47 |
+
|
| 48 |
+
make live-check
|
| 49 |
+
{ printf '0\n'; sleep 1; printf '0\n'; sleep 1; } | build/pulsefold-live 1 250,750
|
| 50 |
+
|
| 51 |
+
The adapter uses a monotonic clock and one poll timeout for the whole fleet. Deadlines continue to fire during silence while the input remains open. Output reports the logical expiry time in milliseconds since startup. OS scheduling, backpressure and consumer work affect wall-clock arrival.
|
| 52 |
+
|
| 53 |
+
## Embed in an event loop
|
| 54 |
+
|
| 55 |
+
```cpp
|
| 56 |
+
#include "pulsefold.hpp"
|
| 57 |
+
#include <cstdint>
|
| 58 |
+
#include <vector>
|
| 59 |
+
|
| 60 |
+
void example() {
|
| 61 |
+
using Id = std::uint32_t;
|
| 62 |
+
using Time = std::uint64_t;
|
| 63 |
+
pulsefold::Monitor::Config policies{{50, 50, 500}};
|
| 64 |
+
std::vector<Id> feed_policy_ids(10000, 0);
|
| 65 |
+
pulsefold::Monitor monitor(policies, feed_policy_ids);
|
| 66 |
+
|
| 67 |
+
auto on_group = [](Time time, Id feed, pulsefold::SubscriberView readers, bool fresh) {
|
| 68 |
+
// Enqueue the read-only slice for this feed, or iterate its IDs here.
|
| 69 |
+
(void)time; (void)feed; (void)readers; (void)fresh;
|
| 70 |
+
};
|
| 71 |
+
monitor.observe_groups(7, 100, on_group);
|
| 72 |
+
monitor.advance_groups(150, on_group); // Feed 7, stale readers {0, 1}.
|
| 73 |
+
monitor.observe_groups(7, 200, on_group); // One recovery for those readers.
|
| 74 |
+
}
|
| 75 |
+
```
|
| 76 |
+
|
| 77 |
+
`observe` and `advance` expand the same transitions into scalar callbacks `(time, feed, subscriber, fresh)`. A one-argument constructor accepts different TTL lists for individual feeds. The shared-policy constructor accepts any mixture of feed-to-policy assignments.
|
| 78 |
+
|
| 79 |
+
### Event contract
|
| 80 |
+
|
| 81 |
+
- A feed starts unknown. The first observation arms its readers silently. A feed that has never reported cannot produce an expiry.
|
| 82 |
+
- Each reader expires exactly once per gap. All expiries due at an observation time occur before that observation recovers readers. Equal-time expiries appear in ascending feed and subscriber ID order.
|
| 83 |
+
- An expiry group contains all readers sharing that TTL for the feed. A recovery view contains exactly the stale readers, ordered by TTL then subscriber ID. Views refer to immutable policy storage. Keep the owning monitor alive when handing off a view.
|
| 84 |
+
- Call `advance` on an event-loop wake or new watermark. `next_wake()` is a conservative hint that can be early after a healthy renewal. Ask for it again after advancing. Recheck after input to catch an earlier deadline.
|
| 85 |
+
- Inputs use nondecreasing unsigned 64-bit event time. A deadline equal to UINT64_MAX can fire. A mathematical deadline beyond UINT64_MAX cannot fire. Invalid IDs and backward clocks are rejected before processing the operation.
|
| 86 |
+
- Drive a monitor from one thread, with nonthrowing callbacks that do not reenter it. Shard by feed if independent event-time order is sufficient. Subscribe/unsubscribe requires building a new configuration. Consumers own late-data handling, transport, backpressure and cross-shard ordering.
|
| 87 |
+
|
| 88 |
+
### Cost and fit
|
| 89 |
+
|
| 90 |
+
With shared policies, stored state scales with the feed count plus the size of the policy definitions. A healthy refresh before the pending wake has constant scheduling cost. A consumer can act on a whole stale group in constant time or enumerate its members. Delivering a separate message to every reader still takes work proportional to the number of deliveries.
|
| 91 |
+
|
| 92 |
+
Choose the grouped path when reader deadlines repeat and the next stage can handle a group. Distinct TTLs produce distinct expiry groups. The scalar comparison includes a cached scan, an indexed per-feed heap and two deferred radix queues, with the same output contract and per-operation digest. The benchmark report gives crossovers.
|
| 93 |
+
|
| 94 |
+
## Reproduce or challenge a result
|
| 95 |
+
|
| 96 |
+
Run `make build/benchmark build/scale`. Run `build/scale` for the billion-watch challenge, or `build/scale 16384 256 256` for the all-unique control. Run `build/benchmark --trace bench/data/intel-lab-4h.tsv --repeats 8` for sensor replay. The trace contains observed device timestamps. The monitor applies four experimental TTLs to those timestamps.
|
| 97 |
+
|
| 98 |
+
For an independent reproduction, include the CPU, compiler and flags, source revision, raw benchmark output and input provenance. The companion benchmark and trace files can also be used to test a challenger that emits equivalent transitions. [Results and commands](results/REPORT.md) · [Public discussion](https://huggingface.co/spaces/pgg-engineering/pulsefold/discussions)
|
| 99 |
+
|
| 100 |
+
The release was measured on one machine. Independent reproductions and production integrations are welcome.
|
| 101 |
+
|
| 102 |
+
Code is MIT licensed. The sensor data has its own attribution and permission statement in the data directory.
|
bench/baselines.hpp
ADDED
|
@@ -0,0 +1,369 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#pragma once
|
| 2 |
+
|
| 3 |
+
#include <algorithm>
|
| 4 |
+
#include <array>
|
| 5 |
+
#include <cstddef>
|
| 6 |
+
#include <cstdint>
|
| 7 |
+
#include <limits>
|
| 8 |
+
#include <stdexcept>
|
| 9 |
+
#include <tuple>
|
| 10 |
+
#include <utility>
|
| 11 |
+
#include <vector>
|
| 12 |
+
|
| 13 |
+
namespace pulsefold::bench {
|
| 14 |
+
|
| 15 |
+
namespace detail {
|
| 16 |
+
|
| 17 |
+
using Time = std::uint64_t;
|
| 18 |
+
using Id = std::uint32_t;
|
| 19 |
+
constexpr Time max_time = std::numeric_limits<Time>::max();
|
| 20 |
+
|
| 21 |
+
struct Subscriber {
|
| 22 |
+
Time ttl;
|
| 23 |
+
Id id;
|
| 24 |
+
};
|
| 25 |
+
|
| 26 |
+
// All subscribers at a feed share its last observation. The stale subscribers
|
| 27 |
+
// form a prefix ordered by (TTL, subscriber id).
|
| 28 |
+
struct Feed {
|
| 29 |
+
std::vector<Subscriber> levels;
|
| 30 |
+
std::size_t stale = 0;
|
| 31 |
+
Time last = 0;
|
| 32 |
+
bool armed = false;
|
| 33 |
+
|
| 34 |
+
bool next(Time& deadline) const {
|
| 35 |
+
if (!armed || stale == levels.size() || levels[stale].ttl > max_time - last) {
|
| 36 |
+
return false;
|
| 37 |
+
}
|
| 38 |
+
deadline = last + levels[stale].ttl;
|
| 39 |
+
return true;
|
| 40 |
+
}
|
| 41 |
+
|
| 42 |
+
template<class Emit>
|
| 43 |
+
void refresh(Id feed, Time now, Emit& emit) {
|
| 44 |
+
for (std::size_t i = 0; i < stale; ++i) {
|
| 45 |
+
emit(now, feed, levels[i].id, true);
|
| 46 |
+
}
|
| 47 |
+
last = now;
|
| 48 |
+
stale = 0;
|
| 49 |
+
armed = true;
|
| 50 |
+
}
|
| 51 |
+
};
|
| 52 |
+
|
| 53 |
+
inline std::vector<Feed> make_feeds(const std::vector<std::vector<Time>>& schema) {
|
| 54 |
+
if (schema.size() > std::numeric_limits<Id>::max()) {
|
| 55 |
+
throw std::length_error("too many feeds");
|
| 56 |
+
}
|
| 57 |
+
std::vector<Feed> feeds(schema.size());
|
| 58 |
+
for (std::size_t f = 0; f < schema.size(); ++f) {
|
| 59 |
+
const auto& ttls = schema[f];
|
| 60 |
+
auto& levels = feeds[f].levels;
|
| 61 |
+
if (ttls.size() > std::numeric_limits<Id>::max()) {
|
| 62 |
+
throw std::length_error("too many subscribers");
|
| 63 |
+
}
|
| 64 |
+
levels.reserve(ttls.size());
|
| 65 |
+
for (std::size_t i = 0; i < ttls.size(); ++i) {
|
| 66 |
+
if (ttls[i] == 0) throw std::invalid_argument("TTL must be positive");
|
| 67 |
+
levels.push_back({ttls[i], static_cast<Id>(i)});
|
| 68 |
+
}
|
| 69 |
+
std::sort(levels.begin(), levels.end(), [](Subscriber a, Subscriber b) {
|
| 70 |
+
return std::tie(a.ttl, a.id) < std::tie(b.ttl, b.id);
|
| 71 |
+
});
|
| 72 |
+
}
|
| 73 |
+
return feeds;
|
| 74 |
+
}
|
| 75 |
+
|
| 76 |
+
} // namespace detail
|
| 77 |
+
|
| 78 |
+
// One addressable timer per feed. The heap is preallocated; renewals overwrite
|
| 79 |
+
// a deadline in place and sift only in the affected direction.
|
| 80 |
+
class EagerFeedHeap {
|
| 81 |
+
using Id = detail::Id;
|
| 82 |
+
using Time = detail::Time;
|
| 83 |
+
using Slot = std::size_t;
|
| 84 |
+
static constexpr Slot absent = std::numeric_limits<Slot>::max();
|
| 85 |
+
|
| 86 |
+
struct Timer {
|
| 87 |
+
Time due;
|
| 88 |
+
Id feed;
|
| 89 |
+
};
|
| 90 |
+
std::vector<detail::Feed> feeds_;
|
| 91 |
+
std::vector<Timer> heap_;
|
| 92 |
+
std::vector<Slot> positions_;
|
| 93 |
+
Time now_ = 0;
|
| 94 |
+
|
| 95 |
+
static bool before(Timer a, Timer b) {
|
| 96 |
+
return std::tie(a.due, a.feed) < std::tie(b.due, b.feed);
|
| 97 |
+
}
|
| 98 |
+
void place(Slot slot, Timer timer) {
|
| 99 |
+
heap_[slot] = timer;
|
| 100 |
+
positions_[timer.feed] = slot;
|
| 101 |
+
}
|
| 102 |
+
void sift_up(Slot slot, Timer timer) {
|
| 103 |
+
while (slot != 0) {
|
| 104 |
+
const Slot parent = (slot - 1) / 2;
|
| 105 |
+
if (!before(timer, heap_[parent])) break;
|
| 106 |
+
place(slot, heap_[parent]);
|
| 107 |
+
slot = parent;
|
| 108 |
+
}
|
| 109 |
+
place(slot, timer);
|
| 110 |
+
}
|
| 111 |
+
void sift_down(Slot slot, Timer timer) {
|
| 112 |
+
while (slot < heap_.size() / 2) {
|
| 113 |
+
Slot child = 2 * slot + 1;
|
| 114 |
+
if (child + 1 < heap_.size() && before(heap_[child + 1], heap_[child])) ++child;
|
| 115 |
+
if (!before(heap_[child], timer)) break;
|
| 116 |
+
place(slot, heap_[child]);
|
| 117 |
+
slot = child;
|
| 118 |
+
}
|
| 119 |
+
place(slot, timer);
|
| 120 |
+
}
|
| 121 |
+
void replace(Slot slot, Timer old, Timer timer) {
|
| 122 |
+
if (before(timer, old)) sift_up(slot, timer);
|
| 123 |
+
else if (before(old, timer)) sift_down(slot, timer);
|
| 124 |
+
else place(slot, timer);
|
| 125 |
+
}
|
| 126 |
+
void schedule(Id feed) {
|
| 127 |
+
Time due;
|
| 128 |
+
const Slot slot = positions_[feed];
|
| 129 |
+
if (feeds_[feed].next(due)) {
|
| 130 |
+
const Timer timer{due, feed};
|
| 131 |
+
if (slot == absent) {
|
| 132 |
+
heap_.push_back(timer);
|
| 133 |
+
sift_up(heap_.size() - 1, timer);
|
| 134 |
+
} else if (heap_[slot].due != due) {
|
| 135 |
+
replace(slot, heap_[slot], timer);
|
| 136 |
+
}
|
| 137 |
+
} else if (slot != absent) {
|
| 138 |
+
const Timer old = heap_[slot];
|
| 139 |
+
const Timer last = heap_.back();
|
| 140 |
+
heap_.pop_back();
|
| 141 |
+
positions_[feed] = absent;
|
| 142 |
+
if (slot < heap_.size()) replace(slot, old, last);
|
| 143 |
+
}
|
| 144 |
+
}
|
| 145 |
+
|
| 146 |
+
public:
|
| 147 |
+
explicit EagerFeedHeap(const std::vector<std::vector<Time>>& schema)
|
| 148 |
+
: feeds_(detail::make_feeds(schema)), positions_(schema.size(), absent) {
|
| 149 |
+
heap_.reserve(schema.size());
|
| 150 |
+
}
|
| 151 |
+
|
| 152 |
+
template<class Emit>
|
| 153 |
+
void advance(Time now, Emit&& emit) {
|
| 154 |
+
if (now < now_) throw std::invalid_argument("time must be nondecreasing");
|
| 155 |
+
now_ = now;
|
| 156 |
+
while (!heap_.empty() && heap_.front().due <= now) {
|
| 157 |
+
const Timer head = heap_.front();
|
| 158 |
+
auto& feed = feeds_[head.feed];
|
| 159 |
+
const Time ttl = head.due - feed.last;
|
| 160 |
+
do {
|
| 161 |
+
emit(head.due, head.feed, feed.levels[feed.stale].id, false);
|
| 162 |
+
++feed.stale;
|
| 163 |
+
} while (feed.stale < feed.levels.size() && feed.levels[feed.stale].ttl == ttl);
|
| 164 |
+
schedule(head.feed);
|
| 165 |
+
}
|
| 166 |
+
}
|
| 167 |
+
|
| 168 |
+
template<class Emit>
|
| 169 |
+
void observe(Id feed, Time now, Emit&& emit) {
|
| 170 |
+
if (feed >= feeds_.size()) throw std::out_of_range("unknown feed");
|
| 171 |
+
advance(now, emit);
|
| 172 |
+
feeds_[feed].refresh(feed, now, emit);
|
| 173 |
+
schedule(feed);
|
| 174 |
+
}
|
| 175 |
+
};
|
| 176 |
+
|
| 177 |
+
// Polling baseline with a cached conservative minimum. Polls are O(1) before
|
| 178 |
+
// that time; when it arrives, one sequential scan computes the new minimum.
|
| 179 |
+
class FeedScan {
|
| 180 |
+
using Id = detail::Id;
|
| 181 |
+
using Time = detail::Time;
|
| 182 |
+
using Event = std::tuple<Time, Id, Id>;
|
| 183 |
+
std::vector<detail::Feed> feeds_;
|
| 184 |
+
std::vector<Event> expired_;
|
| 185 |
+
Time earliest_ = detail::max_time;
|
| 186 |
+
Time now_ = 0;
|
| 187 |
+
|
| 188 |
+
public:
|
| 189 |
+
explicit FeedScan(const std::vector<std::vector<Time>>& schema)
|
| 190 |
+
: feeds_(detail::make_feeds(schema)) {}
|
| 191 |
+
|
| 192 |
+
template<class Emit>
|
| 193 |
+
void advance(Time now, Emit&& emit) {
|
| 194 |
+
if (now < now_) throw std::invalid_argument("time must be nondecreasing");
|
| 195 |
+
now_ = now;
|
| 196 |
+
if (now < earliest_) return;
|
| 197 |
+
earliest_ = detail::max_time;
|
| 198 |
+
expired_.clear();
|
| 199 |
+
for (std::size_t i = 0; i < feeds_.size(); ++i) {
|
| 200 |
+
auto& feed = feeds_[i];
|
| 201 |
+
const Id id = static_cast<Id>(i);
|
| 202 |
+
Time due;
|
| 203 |
+
while (feed.next(due)) {
|
| 204 |
+
if (due > now) {
|
| 205 |
+
earliest_ = std::min(earliest_, due);
|
| 206 |
+
break;
|
| 207 |
+
}
|
| 208 |
+
expired_.emplace_back(due, id, feed.levels[feed.stale++].id);
|
| 209 |
+
}
|
| 210 |
+
}
|
| 211 |
+
std::sort(expired_.begin(), expired_.end());
|
| 212 |
+
for (const auto& [time, feed, sub] : expired_) emit(time, feed, sub, false);
|
| 213 |
+
}
|
| 214 |
+
|
| 215 |
+
template<class Emit>
|
| 216 |
+
void observe(Id feed, Time now, Emit&& emit) {
|
| 217 |
+
if (feed >= feeds_.size()) throw std::out_of_range("unknown feed");
|
| 218 |
+
advance(now, emit);
|
| 219 |
+
feeds_[feed].refresh(feed, now, emit);
|
| 220 |
+
Time due;
|
| 221 |
+
if (feeds_[feed].next(due)) earliest_ = std::min(earliest_, due);
|
| 222 |
+
}
|
| 223 |
+
};
|
| 224 |
+
|
| 225 |
+
// Exact 64-bit monotone radix queue. Refreshes leave a later effective expiry
|
| 226 |
+
// behind its existing early check. After a recovery, a shorter TTL can move
|
| 227 |
+
// that check earlier; a per-feed vector slot makes removal constant time.
|
| 228 |
+
class LazyRadix {
|
| 229 |
+
using Id = detail::Id;
|
| 230 |
+
using Time = detail::Time;
|
| 231 |
+
using Slot = std::size_t;
|
| 232 |
+
static constexpr Slot absent = std::numeric_limits<Slot>::max();
|
| 233 |
+
struct Timer {
|
| 234 |
+
Time check = 0;
|
| 235 |
+
Slot slot = absent;
|
| 236 |
+
};
|
| 237 |
+
struct Bucket {
|
| 238 |
+
std::vector<Id> ids;
|
| 239 |
+
Time earliest = detail::max_time;
|
| 240 |
+
};
|
| 241 |
+
|
| 242 |
+
std::vector<detail::Feed> feeds_;
|
| 243 |
+
std::vector<Timer> timers_;
|
| 244 |
+
std::array<Bucket, 65> buckets_;
|
| 245 |
+
std::vector<Id> fired_;
|
| 246 |
+
std::uint64_t nonzero_ = 0; // bit n means bucket n + 1 has entries
|
| 247 |
+
Time base_ = 0;
|
| 248 |
+
Time now_ = 0;
|
| 249 |
+
|
| 250 |
+
static unsigned width(std::uint64_t value) {
|
| 251 |
+
#if defined(__GNUC__) || defined(__clang__)
|
| 252 |
+
return value ? 64u - static_cast<unsigned>(__builtin_clzll(value)) : 0u;
|
| 253 |
+
#else
|
| 254 |
+
unsigned bits = 0;
|
| 255 |
+
while (value) { ++bits; value >>= 1; }
|
| 256 |
+
return bits;
|
| 257 |
+
#endif
|
| 258 |
+
}
|
| 259 |
+
|
| 260 |
+
static unsigned first_set(std::uint64_t mask) {
|
| 261 |
+
#if defined(__GNUC__) || defined(__clang__)
|
| 262 |
+
return static_cast<unsigned>(__builtin_ctzll(mask));
|
| 263 |
+
#else
|
| 264 |
+
unsigned bit = 0;
|
| 265 |
+
while (!(mask & 1)) { ++bit; mask >>= 1; }
|
| 266 |
+
return bit;
|
| 267 |
+
#endif
|
| 268 |
+
}
|
| 269 |
+
|
| 270 |
+
void insert(Id id, Time check) {
|
| 271 |
+
const unsigned index = width(check ^ base_);
|
| 272 |
+
auto& bucket = buckets_[index];
|
| 273 |
+
if (bucket.ids.empty()) {
|
| 274 |
+
bucket.earliest = check;
|
| 275 |
+
if (index) nonzero_ |= std::uint64_t{1} << (index - 1);
|
| 276 |
+
} else {
|
| 277 |
+
bucket.earliest = std::min(bucket.earliest, check);
|
| 278 |
+
}
|
| 279 |
+
timers_[id] = {check, bucket.ids.size()};
|
| 280 |
+
bucket.ids.push_back(id);
|
| 281 |
+
}
|
| 282 |
+
|
| 283 |
+
void remove(Id id) {
|
| 284 |
+
const auto timer = timers_[id];
|
| 285 |
+
const unsigned index = width(timer.check ^ base_);
|
| 286 |
+
auto& bucket = buckets_[index];
|
| 287 |
+
const Id last = bucket.ids.back();
|
| 288 |
+
bucket.ids[timer.slot] = last;
|
| 289 |
+
timers_[last].slot = timer.slot;
|
| 290 |
+
bucket.ids.pop_back();
|
| 291 |
+
timers_[id].slot = absent;
|
| 292 |
+
if (index && bucket.ids.empty()) nonzero_ &= ~(std::uint64_t{1} << (index - 1));
|
| 293 |
+
// The cached minimum may now be early. A due check verifies it.
|
| 294 |
+
}
|
| 295 |
+
|
| 296 |
+
// All keys in the first occupied nonzero bucket precede all keys in higher
|
| 297 |
+
// buckets. Redistributing about its minimum strictly reduces bucket index.
|
| 298 |
+
bool prepare(Time now) {
|
| 299 |
+
if (!buckets_[0].ids.empty()) return true;
|
| 300 |
+
if (!nonzero_) return false;
|
| 301 |
+
const unsigned index = 1 + first_set(nonzero_);
|
| 302 |
+
auto& bucket = buckets_[index];
|
| 303 |
+
if (bucket.earliest > now) return false;
|
| 304 |
+
Time minimum = detail::max_time;
|
| 305 |
+
for (Id id : bucket.ids) minimum = std::min(minimum, timers_[id].check);
|
| 306 |
+
bucket.earliest = minimum;
|
| 307 |
+
if (minimum > now) return false;
|
| 308 |
+
base_ = minimum;
|
| 309 |
+
nonzero_ &= ~(std::uint64_t{1} << (index - 1));
|
| 310 |
+
for (Id id : bucket.ids) insert(id, timers_[id].check);
|
| 311 |
+
bucket.ids.clear();
|
| 312 |
+
return true;
|
| 313 |
+
}
|
| 314 |
+
|
| 315 |
+
public:
|
| 316 |
+
explicit LazyRadix(const std::vector<std::vector<Time>>& schema)
|
| 317 |
+
: feeds_(detail::make_feeds(schema)), timers_(schema.size()) {}
|
| 318 |
+
|
| 319 |
+
template<class Emit>
|
| 320 |
+
void advance(Time now, Emit&& emit) {
|
| 321 |
+
if (now < now_) throw std::invalid_argument("time must be nondecreasing");
|
| 322 |
+
now_ = now;
|
| 323 |
+
while (prepare(now)) {
|
| 324 |
+
const Time check = base_;
|
| 325 |
+
fired_.clear();
|
| 326 |
+
for (Id id : buckets_[0].ids) {
|
| 327 |
+
timers_[id].slot = absent;
|
| 328 |
+
Time due;
|
| 329 |
+
if (!feeds_[id].next(due)) continue;
|
| 330 |
+
if (due == check) fired_.push_back(id);
|
| 331 |
+
else insert(id, due);
|
| 332 |
+
}
|
| 333 |
+
buckets_[0].ids.clear();
|
| 334 |
+
// Deferred checks have no observable order. Only simultaneous real
|
| 335 |
+
// expiries need sorting to preserve (timestamp, feed, subscriber).
|
| 336 |
+
std::sort(fired_.begin(), fired_.end());
|
| 337 |
+
for (Id id : fired_) {
|
| 338 |
+
auto& feed = feeds_[id];
|
| 339 |
+
const Time ttl = check - feed.last;
|
| 340 |
+
do {
|
| 341 |
+
emit(check, id, feed.levels[feed.stale].id, false);
|
| 342 |
+
++feed.stale;
|
| 343 |
+
} while (feed.stale < feed.levels.size() && feed.levels[feed.stale].ttl == ttl);
|
| 344 |
+
Time due;
|
| 345 |
+
if (feed.next(due)) insert(id, due);
|
| 346 |
+
}
|
| 347 |
+
}
|
| 348 |
+
}
|
| 349 |
+
|
| 350 |
+
template<class Emit>
|
| 351 |
+
void observe(Id feed, Time now, Emit&& emit) {
|
| 352 |
+
if (feed >= feeds_.size()) throw std::out_of_range("unknown feed");
|
| 353 |
+
advance(now, emit);
|
| 354 |
+
auto& state = feeds_[feed];
|
| 355 |
+
// In the healthy armed state the next deadline can only move later.
|
| 356 |
+
const bool healthy = state.armed && state.stale == 0;
|
| 357 |
+
state.refresh(feed, now, emit);
|
| 358 |
+
if (healthy) return;
|
| 359 |
+
Time due;
|
| 360 |
+
const bool schedulable = state.next(due);
|
| 361 |
+
if (timers_[feed].slot != absent) {
|
| 362 |
+
if (schedulable && timers_[feed].check <= due) return;
|
| 363 |
+
remove(feed);
|
| 364 |
+
}
|
| 365 |
+
if (schedulable) insert(feed, due);
|
| 366 |
+
}
|
| 367 |
+
};
|
| 368 |
+
|
| 369 |
+
} // namespace pulsefold::bench
|
bench/benchmark.cpp
ADDED
|
@@ -0,0 +1,191 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#include "../include/pulsefold.hpp"
|
| 2 |
+
#include "baselines.hpp"
|
| 3 |
+
#include "workloads.hpp"
|
| 4 |
+
#include "wide_radix.hpp"
|
| 5 |
+
|
| 6 |
+
#include <algorithm>
|
| 7 |
+
#include <array>
|
| 8 |
+
#include <chrono>
|
| 9 |
+
#include <cstdint>
|
| 10 |
+
#include <cstdlib>
|
| 11 |
+
#include <fstream>
|
| 12 |
+
#include <iomanip>
|
| 13 |
+
#include <iostream>
|
| 14 |
+
#include <limits>
|
| 15 |
+
#include <numeric>
|
| 16 |
+
#include <random>
|
| 17 |
+
#include <sstream>
|
| 18 |
+
#include <stdexcept>
|
| 19 |
+
#include <string>
|
| 20 |
+
#include <vector>
|
| 21 |
+
|
| 22 |
+
namespace {
|
| 23 |
+
|
| 24 |
+
using namespace pulsefold::benchmarks;
|
| 25 |
+
|
| 26 |
+
template<class Engine>
|
| 27 |
+
void apply(Engine& engine, const Operation& op, Digest& digest) {
|
| 28 |
+
if (op.feed == poll) engine.advance(op.time, digest);
|
| 29 |
+
else engine.observe(op.feed, op.time, digest);
|
| 30 |
+
}
|
| 31 |
+
|
| 32 |
+
struct Result {
|
| 33 |
+
Digest digest;
|
| 34 |
+
double average, p99, worst;
|
| 35 |
+
};
|
| 36 |
+
template<class Engine>
|
| 37 |
+
Result run(const Trace& trace) {
|
| 38 |
+
Engine engine(trace.config);
|
| 39 |
+
Digest warm;
|
| 40 |
+
for (std::size_t i = 0; i < trace.warmup; ++i) {
|
| 41 |
+
warm.operation = i;
|
| 42 |
+
apply(engine, trace.operations[i], warm);
|
| 43 |
+
}
|
| 44 |
+
Digest digest;
|
| 45 |
+
const std::size_t count = trace.operations.size() - trace.warmup;
|
| 46 |
+
std::vector<double> batches;
|
| 47 |
+
batches.reserve((count + batch_size - 1) / batch_size);
|
| 48 |
+
double elapsed = 0;
|
| 49 |
+
for (std::size_t begin = trace.warmup; begin < trace.operations.size(); begin += batch_size) {
|
| 50 |
+
const auto end = std::min(begin + batch_size, trace.operations.size());
|
| 51 |
+
const auto before = Clock::now();
|
| 52 |
+
for (std::size_t i = begin; i < end; ++i) {
|
| 53 |
+
digest.operation = i;
|
| 54 |
+
apply(engine, trace.operations[i], digest);
|
| 55 |
+
}
|
| 56 |
+
const double ns = std::chrono::duration<double, std::nano>(Clock::now() - before).count();
|
| 57 |
+
elapsed += ns;
|
| 58 |
+
// Tail measurements use complete equal-width batches only.
|
| 59 |
+
if (end - begin == batch_size) batches.push_back(ns / batch_size);
|
| 60 |
+
}
|
| 61 |
+
std::sort(batches.begin(), batches.end());
|
| 62 |
+
const auto rank99 = (99 * batches.size() - 1) / 100;
|
| 63 |
+
return {digest, elapsed / count, batches[rank99], batches.back()};
|
| 64 |
+
}
|
| 65 |
+
|
| 66 |
+
Time parse_unsigned(const std::string& value) {
|
| 67 |
+
if (value.empty() || value.find_first_not_of("0123456789") != std::string::npos)
|
| 68 |
+
throw std::invalid_argument("expected an unsigned decimal integer: " + value);
|
| 69 |
+
return std::stoull(value);
|
| 70 |
+
}
|
| 71 |
+
|
| 72 |
+
// Input is a logical event-time replay. The four freshness contracts are
|
| 73 |
+
// explicit experimental overlays and are independent of the sensor firmware.
|
| 74 |
+
Trace read_trace(const std::string& path) {
|
| 75 |
+
Trace trace;
|
| 76 |
+
trace.config.assign(54, {45'000'000, 90'000'000, 180'000'000, 600'000'000});
|
| 77 |
+
std::ifstream input(path);
|
| 78 |
+
if (!input) throw std::invalid_argument("could not open " + path);
|
| 79 |
+
std::size_t line_no = 0;
|
| 80 |
+
for (std::string line; std::getline(input, line); ) {
|
| 81 |
+
++line_no;
|
| 82 |
+
const auto comment = line.find('#');
|
| 83 |
+
if (comment != std::string::npos) line.resize(comment);
|
| 84 |
+
std::istringstream fields(line);
|
| 85 |
+
std::string stamp, feed, extra;
|
| 86 |
+
if (!(fields >> stamp)) continue;
|
| 87 |
+
try {
|
| 88 |
+
if (!(fields >> feed) || fields >> extra)
|
| 89 |
+
throw std::invalid_argument("expected timestamp_us and feed_id");
|
| 90 |
+
const Time t = parse_unsigned(stamp);
|
| 91 |
+
const auto f = parse_unsigned(feed);
|
| 92 |
+
if (f >= trace.config.size()) throw std::invalid_argument("feed ID must be in [0,53]");
|
| 93 |
+
if (!trace.operations.empty() && t < trace.operations.back().time)
|
| 94 |
+
throw std::invalid_argument("timestamps must be nondecreasing");
|
| 95 |
+
trace.operations.push_back({t, static_cast<Id>(f)});
|
| 96 |
+
} catch (const std::exception& error) {
|
| 97 |
+
throw std::runtime_error(path + ":" + std::to_string(line_no) + ": " + error.what());
|
| 98 |
+
}
|
| 99 |
+
}
|
| 100 |
+
if (input.bad()) throw std::runtime_error("error while reading " + path);
|
| 101 |
+
trace.warmup = trace.operations.size() / 10;
|
| 102 |
+
if (trace.operations.size() - trace.warmup < batch_size)
|
| 103 |
+
throw std::invalid_argument("trace needs at least 128 measured operations after 10% warmup");
|
| 104 |
+
return trace;
|
| 105 |
+
}
|
| 106 |
+
|
| 107 |
+
int benchmark(int argc, char** argv) {
|
| 108 |
+
Time seed = 20261122;
|
| 109 |
+
unsigned repeats = 5;
|
| 110 |
+
std::string selected, trace_path;
|
| 111 |
+
for (int i = 1; i < argc; ++i) {
|
| 112 |
+
const std::string flag(argv[i]);
|
| 113 |
+
if (flag == "--list") {
|
| 114 |
+
for (const auto& sc : scenarios) std::cout << sc.name << '\n';
|
| 115 |
+
return 0;
|
| 116 |
+
}
|
| 117 |
+
if (flag == "--help") {
|
| 118 |
+
std::cout << "pulsefold-bench [--seed N] [--repeats N] [--scenario NAME | --trace FILE] [--list]\n";
|
| 119 |
+
return 0;
|
| 120 |
+
}
|
| 121 |
+
if (i + 1 == argc) throw std::invalid_argument("missing value for " + flag);
|
| 122 |
+
std::string value(argv[++i]);
|
| 123 |
+
if (flag == "--scenario") selected = value;
|
| 124 |
+
else if (flag == "--trace") trace_path = value;
|
| 125 |
+
else if (flag == "--seed") seed = parse_unsigned(value);
|
| 126 |
+
else if (flag == "--repeats") {
|
| 127 |
+
const auto n = parse_unsigned(value);
|
| 128 |
+
if (!n || n > 1000) throw std::invalid_argument("repeats must be in [1,1000]");
|
| 129 |
+
repeats = static_cast<unsigned>(n);
|
| 130 |
+
} else throw std::invalid_argument("unknown option " + flag);
|
| 131 |
+
}
|
| 132 |
+
if (!selected.empty() && !trace_path.empty())
|
| 133 |
+
throw std::invalid_argument("choose either --scenario or --trace");
|
| 134 |
+
constexpr std::array<const char*, 5> names = {
|
| 135 |
+
"pulsefold", "eager-feed-heap", "feed-scan", "lazy-radix", "wide-radix"
|
| 136 |
+
};
|
| 137 |
+
using Run = Result(*)(const Trace&);
|
| 138 |
+
const std::array<Run, names.size()> runs = {
|
| 139 |
+
run<pulsefold::Monitor>, run<pulsefold::bench::EagerFeedHeap>, run<pulsefold::bench::FeedScan>,
|
| 140 |
+
run<pulsefold::bench::LazyRadix>, run<pulsefold::bench::WideRadix>
|
| 141 |
+
};
|
| 142 |
+
std::cout << "scenario,seed,repeat,run_order,engine,feeds,subscribers_per_feed,warmup_ops,"
|
| 143 |
+
"observes,advances,fresh,stale,digest_sum,digest_xor,batch_size,mean_ns_per_op,"
|
| 144 |
+
"p99_batch_mean_ns_per_op,max_batch_mean_ns_per_op\n";
|
| 145 |
+
auto measure = [&](const char* label, const Trace& trace, const std::string& seed_label) {
|
| 146 |
+
const auto first = trace.operations.begin() + trace.warmup;
|
| 147 |
+
const auto observes = std::count_if(first, trace.operations.end(),
|
| 148 |
+
[](Operation op) { return op.feed != poll; });
|
| 149 |
+
const auto advances = std::distance(first, trace.operations.end()) - observes;
|
| 150 |
+
for (unsigned rep = 0; rep < repeats; ++rep) {
|
| 151 |
+
std::array<Result, names.size()> results;
|
| 152 |
+
for (unsigned order = 0; order < runs.size(); ++order) {
|
| 153 |
+
const auto index = (order + rep) % runs.size();
|
| 154 |
+
results[index] = runs[index](trace);
|
| 155 |
+
}
|
| 156 |
+
for (unsigned index = 0; index < results.size(); ++index) {
|
| 157 |
+
const auto& r = results[index];
|
| 158 |
+
if (!r.digest.matches(results.front().digest))
|
| 159 |
+
throw std::logic_error(std::string("callback mismatch in ") + label + "/" + names[index]);
|
| 160 |
+
const auto order = (index + runs.size() - rep % runs.size()) % runs.size();
|
| 161 |
+
std::cout << label << ',' << seed_label << ',' << rep + 1 << ',' << order + 1 << ','
|
| 162 |
+
<< names[index] << ',' << trace.config.size() << ',' << trace.config.front().size() << ','
|
| 163 |
+
<< trace.warmup << ',' << observes << ',' << advances << ','
|
| 164 |
+
<< r.digest.fresh << ',' << r.digest.stale << ',' << r.digest.sum << ','
|
| 165 |
+
<< r.digest.parity << ',' << batch_size << ',' << std::fixed << std::setprecision(3)
|
| 166 |
+
<< r.average << ',' << r.p99 << ',' << r.worst << '\n';
|
| 167 |
+
}
|
| 168 |
+
}
|
| 169 |
+
};
|
| 170 |
+
if (!trace_path.empty()) {
|
| 171 |
+
measure("external-trace", read_trace(trace_path), "");
|
| 172 |
+
return 0;
|
| 173 |
+
}
|
| 174 |
+
bool found = false;
|
| 175 |
+
for (const auto& sc : scenarios) {
|
| 176 |
+
if (!selected.empty() && selected != sc.name) continue;
|
| 177 |
+
found = true;
|
| 178 |
+
measure(sc.name, generate(sc, seed), std::to_string(seed));
|
| 179 |
+
}
|
| 180 |
+
if (!found) throw std::invalid_argument("unknown scenario " + selected);
|
| 181 |
+
return 0;
|
| 182 |
+
}
|
| 183 |
+
} // namespace
|
| 184 |
+
|
| 185 |
+
int main(int argc, char** argv) {
|
| 186 |
+
try { return benchmark(argc, argv); }
|
| 187 |
+
catch (const std::exception& error) {
|
| 188 |
+
std::cerr << error.what() << '\n';
|
| 189 |
+
return EXIT_FAILURE;
|
| 190 |
+
}
|
| 191 |
+
}
|
bench/data/README.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Intel Berkeley environmental sensor replay
|
| 2 |
+
|
| 3 |
+
`intel-lab-4h.tsv` contains 10,535 observed event timestamps from all 54 motes in the Intel Berkeley Research Lab deployment. Each headerless row gives microseconds since midnight on February 28, 2004, then the original `moteid` minus one, separated by a tab. The interval is `[00:00, 04:00)` on the recorded clock. The source documentation does not give a time zone. The first recorded event in this interval occurs at 00:58:46.002832. Gaps and repeated observations are preserved. Rows are ordered by time, then feed ID. No measurement value, subscription, deadline, or live arrival order is supplied by this trace.
|
| 4 |
+
|
| 5 |
+
The [original dataset description and permission](https://db.csail.mit.edu/labdata/labdata.html) attribute collection to Peter Bodik, Wei Hong, Carlos Guestrin, Sam Madden, Mark Paskin and Romain Thibaux. Intel Berkeley supplied hardware. The TinyOS team, including Joe Polastre and Rob Szewczyk, supplied software infrastructure and hardware designs. The authors permit use or reproduction in any format or venue and request acknowledgment. The project’s code license applies to the replay program. The observations are redistributed under the authors’ permission.
|
| 6 |
+
|
| 7 |
+
We extracted timestamps and mote IDs from the [pinned per-mote CSV mirror](https://github.com/AhmedCh24/data_compression_bitteiler_technical_task/tree/0683fb4e9190f1b89148a3e4fa41c8145f0c4694/data/data_by_sensor_node/csv). Its [conversion script](https://github.com/AhmedCh24/data_compression_bitteiler_technical_task/blob/0683fb4e9190f1b89148a3e4fa41c8145f0c4694/scripts/data_preparation/split_data.py) groups by mote after filtering malformed rows, missing timestamps and IDs outside 1–54. Our input is the full four-hour interval present in those CSVs. It is an event-time projection of a sensor deployment. Any subscriber fan-out and freshness budgets used by a benchmark are configured by the benchmark.
|
| 8 |
+
|
| 9 |
+
To regenerate, run `python3 bench/data/extract_intel.py` from the repository root. The command downloads the 54 pinned CSVs and checks the output digest before writing. With a local copy of the mirror, pass `--csv-dir /path/to/data/data_by_sensor_node/csv`. The committed 150,029-byte fixture works offline.
|
| 10 |
+
|
| 11 |
+
SHA-256 `33c1be134f2b2f3170ae369a5e34db89ab29ef435951aad334fccc13cccb10a0`.
|
bench/data/extract_intel.py
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Reproduce the pinned four-hour Intel Lab trace with the Python standard library."""
|
| 2 |
+
|
| 3 |
+
import argparse
|
| 4 |
+
import csv
|
| 5 |
+
import hashlib
|
| 6 |
+
import io
|
| 7 |
+
import sys
|
| 8 |
+
from datetime import time
|
| 9 |
+
from pathlib import Path
|
| 10 |
+
from urllib.request import urlopen
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
BASE = (
|
| 14 |
+
"https://raw.githubusercontent.com/AhmedCh24/data_compression_bitteiler_technical_task/"
|
| 15 |
+
"0683fb4e9190f1b89148a3e4fa41c8145f0c4694/data/data_by_sensor_node/csv/"
|
| 16 |
+
)
|
| 17 |
+
EXPECTED = "33c1be134f2b2f3170ae369a5e34db89ab29ef435951aad334fccc13cccb10a0"
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
def get_rows(stream, mote):
|
| 21 |
+
for row in csv.DictReader(stream):
|
| 22 |
+
if row["date"] != "2004-02-28":
|
| 23 |
+
continue
|
| 24 |
+
clock = time.fromisoformat(row["time"])
|
| 25 |
+
if clock.hour >= 4:
|
| 26 |
+
continue
|
| 27 |
+
if int(row["moteid"]) != mote:
|
| 28 |
+
raise ValueError(f"unexpected mote ID in source file for mote {mote}")
|
| 29 |
+
seconds = (clock.hour * 60 + clock.minute) * 60 + clock.second
|
| 30 |
+
yield seconds * 1_000_000 + clock.microsecond, mote - 1
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
def main():
|
| 34 |
+
parser = argparse.ArgumentParser(description=__doc__)
|
| 35 |
+
parser.add_argument("--csv-dir", type=Path, help="local directory of pinned mote_N.csv files")
|
| 36 |
+
parser.add_argument("--output", type=Path, default=Path(__file__).with_name("intel-lab-4h.tsv"))
|
| 37 |
+
args = parser.parse_args()
|
| 38 |
+
events = []
|
| 39 |
+
for mote in range(1, 55):
|
| 40 |
+
filename = f"mote_{mote}.csv"
|
| 41 |
+
if args.csv_dir:
|
| 42 |
+
stream = (args.csv_dir / filename).open(encoding="ascii", newline="")
|
| 43 |
+
else:
|
| 44 |
+
stream = io.TextIOWrapper(urlopen(BASE + filename, timeout=60), encoding="ascii", newline="")
|
| 45 |
+
with stream:
|
| 46 |
+
events.extend(get_rows(stream, mote))
|
| 47 |
+
payload = "".join(f"{t}\t{feed}\n" for t, feed in sorted(events)).encode("ascii")
|
| 48 |
+
if hashlib.sha256(payload).hexdigest() != EXPECTED:
|
| 49 |
+
raise ValueError("trace checksum differs from the release fixture")
|
| 50 |
+
args.output.write_bytes(payload)
|
| 51 |
+
print(f"{len(events)} observations across {len({f for _, f in events})} feeds", file=sys.stderr)
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
if __name__ == "__main__":
|
| 55 |
+
main()
|
bench/data/intel-lab-4h.tsv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
bench/grouped.cpp
ADDED
|
@@ -0,0 +1,307 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#include "../include/pulsefold.hpp"
|
| 2 |
+
#include "baselines.hpp"
|
| 3 |
+
#include "workloads.hpp"
|
| 4 |
+
#include "wide_radix.hpp"
|
| 5 |
+
|
| 6 |
+
#include <array>
|
| 7 |
+
#include <cstdlib>
|
| 8 |
+
#include <iomanip>
|
| 9 |
+
#include <iostream>
|
| 10 |
+
#include <set>
|
| 11 |
+
#include <stdexcept>
|
| 12 |
+
#include <string>
|
| 13 |
+
#include <tuple>
|
| 14 |
+
|
| 15 |
+
namespace {
|
| 16 |
+
using namespace pulsefold::benchmarks;
|
| 17 |
+
using Policies = std::vector<std::vector<Time>>;
|
| 18 |
+
|
| 19 |
+
struct View {
|
| 20 |
+
const Id* members;
|
| 21 |
+
std::size_t length;
|
| 22 |
+
const Id* begin() const { return members; }
|
| 23 |
+
const Id* end() const { return members + length; }
|
| 24 |
+
std::size_t size() const { return length; }
|
| 25 |
+
};
|
| 26 |
+
|
| 27 |
+
// Independent compilation: recover a policy's stable subscriber ordering,
|
| 28 |
+
// one expiry TTL per distinct value and one shared list of member IDs.
|
| 29 |
+
struct Policy {
|
| 30 |
+
explicit Policy(const std::vector<Time>& times) : members(times.size()), rank(times.size()) {
|
| 31 |
+
std::iota(members.begin(), members.end(), Id{0});
|
| 32 |
+
std::stable_sort(members.begin(), members.end(), [&](Id a, Id b) { return times[a] < times[b]; });
|
| 33 |
+
for (std::size_t i = 0; i < members.size(); ++i) {
|
| 34 |
+
const Id id = members[i];
|
| 35 |
+
rank[id] = i;
|
| 36 |
+
if (i == 0 || times[id] != thresholds.back()) {
|
| 37 |
+
thresholds.push_back(times[id]);
|
| 38 |
+
starts.push_back(i);
|
| 39 |
+
}
|
| 40 |
+
}
|
| 41 |
+
starts.push_back(members.size());
|
| 42 |
+
}
|
| 43 |
+
View range(std::size_t first, std::size_t past) const {
|
| 44 |
+
return {members.data() + starts[first], starts[past] - starts[first]};
|
| 45 |
+
}
|
| 46 |
+
std::vector<Id> members;
|
| 47 |
+
std::vector<std::size_t> rank, starts;
|
| 48 |
+
std::vector<Time> thresholds;
|
| 49 |
+
};
|
| 50 |
+
|
| 51 |
+
struct Case {
|
| 52 |
+
Scenario schedule;
|
| 53 |
+
Id members, groups;
|
| 54 |
+
};
|
| 55 |
+
|
| 56 |
+
constexpr Case cases[] = {
|
| 57 |
+
{{"small-healthy", 64, 1, 6, false, Pattern::healthy}, 256, 4},
|
| 58 |
+
{{"large-mixed", 4096, 1, 6, false, Pattern::mixed}, 1024, 4},
|
| 59 |
+
{{"rotating-outages", 1024, 1, 3, false, Pattern::loss}, 1024, 8},
|
| 60 |
+
{{"synchronous-storm", 512, 1, 4, true, Pattern::storm}, 1024, 1},
|
| 61 |
+
{{"all-unique", 256, 1, 3, false, Pattern::loss}, 128, 128},
|
| 62 |
+
};
|
| 63 |
+
|
| 64 |
+
struct Work {
|
| 65 |
+
Trace trace;
|
| 66 |
+
Policies policies;
|
| 67 |
+
std::vector<Id> feed_policy;
|
| 68 |
+
std::vector<Policy> compiled;
|
| 69 |
+
Work(const Case& c, Time seed) : trace(generate(c.schedule, seed)),
|
| 70 |
+
feed_policy(c.schedule.feeds, 0) {
|
| 71 |
+
// Generate two explicitly shared policies only when the case has a
|
| 72 |
+
// distinct short-SLO cohort. IDs in each TTL group are interleaved.
|
| 73 |
+
const bool mixed = c.schedule.pattern == Pattern::mixed;
|
| 74 |
+
for (unsigned p = 0; p < (mixed ? 2u : 1u); ++p) {
|
| 75 |
+
std::vector<Time> times;
|
| 76 |
+
const Time period = c.schedule.feeds;
|
| 77 |
+
for (Id id = 0; id < c.members; ++id) {
|
| 78 |
+
const Time group = id % c.groups;
|
| 79 |
+
const Time ttl = p == 1
|
| 80 |
+
? period / 2 + group * period / c.groups
|
| 81 |
+
: c.schedule.min_periods * period + group * 2 * period / c.groups;
|
| 82 |
+
times.push_back(ttl);
|
| 83 |
+
}
|
| 84 |
+
policies.push_back(times);
|
| 85 |
+
compiled.emplace_back(times);
|
| 86 |
+
}
|
| 87 |
+
if (mixed) {
|
| 88 |
+
for (Id f = 0; f < c.schedule.feeds; f += 32) feed_policy[f] = 1;
|
| 89 |
+
}
|
| 90 |
+
trace.config.clear(); // The shared policies above are the measured contracts.
|
| 91 |
+
}
|
| 92 |
+
};
|
| 93 |
+
|
| 94 |
+
class GroupScan {
|
| 95 |
+
const Work& work_;
|
| 96 |
+
struct Feed { Time last = 0; std::size_t cursor = 0; bool armed = false; };
|
| 97 |
+
std::vector<Feed> feeds_;
|
| 98 |
+
using Expiry = std::tuple<Time, Id, std::size_t>;
|
| 99 |
+
std::vector<Expiry> expired_;
|
| 100 |
+
Time earliest_ = std::numeric_limits<Time>::max();
|
| 101 |
+
public:
|
| 102 |
+
explicit GroupScan(const Work& work) : work_(work), feeds_(work.feed_policy.size()) {}
|
| 103 |
+
|
| 104 |
+
template<class Emit>
|
| 105 |
+
void advance_groups(Time now, Emit&& emit) {
|
| 106 |
+
if (now < earliest_) return;
|
| 107 |
+
earliest_ = std::numeric_limits<Time>::max();
|
| 108 |
+
expired_.clear();
|
| 109 |
+
for (Id f = 0; f < feeds_.size(); ++f) {
|
| 110 |
+
auto& feed = feeds_[f];
|
| 111 |
+
if (!feed.armed) continue;
|
| 112 |
+
const auto& p = work_.compiled[work_.feed_policy[f]];
|
| 113 |
+
while (feed.cursor < p.thresholds.size()) {
|
| 114 |
+
const Time due = feed.last + p.thresholds[feed.cursor];
|
| 115 |
+
if (due > now) {
|
| 116 |
+
earliest_ = std::min(earliest_, due);
|
| 117 |
+
break;
|
| 118 |
+
}
|
| 119 |
+
expired_.emplace_back(due, f, feed.cursor++);
|
| 120 |
+
}
|
| 121 |
+
}
|
| 122 |
+
if (!std::is_sorted(expired_.begin(), expired_.end()))
|
| 123 |
+
std::sort(expired_.begin(), expired_.end());
|
| 124 |
+
for (const auto& [time, f, g] : expired_)
|
| 125 |
+
emit(time, f, work_.compiled[work_.feed_policy[f]].range(g, g + 1), false);
|
| 126 |
+
}
|
| 127 |
+
template<class Emit>
|
| 128 |
+
void observe_groups(Id f, Time now, Emit&& emit) {
|
| 129 |
+
advance_groups(now, emit);
|
| 130 |
+
auto& feed = feeds_[f];
|
| 131 |
+
const auto& p = work_.compiled[work_.feed_policy[f]];
|
| 132 |
+
if (feed.cursor) emit(now, f, p.range(0, feed.cursor), true);
|
| 133 |
+
feed = {now, 0, true};
|
| 134 |
+
earliest_ = std::min(earliest_, now + p.thresholds.front());
|
| 135 |
+
}
|
| 136 |
+
};
|
| 137 |
+
|
| 138 |
+
// One radix-queue virtual subscriber per distinct TTL. This competitor also
|
| 139 |
+
// shares its full member lists across feeds and can deliver whole views.
|
| 140 |
+
template<class Queue>
|
| 141 |
+
class GroupRadix {
|
| 142 |
+
const Work& work_;
|
| 143 |
+
Queue engine_;
|
| 144 |
+
static Policies group_ttls(const Work& work) {
|
| 145 |
+
Policies ttls;
|
| 146 |
+
ttls.reserve(work.feed_policy.size());
|
| 147 |
+
for (Id policy : work.feed_policy) ttls.push_back(work.compiled[policy].thresholds);
|
| 148 |
+
return ttls;
|
| 149 |
+
}
|
| 150 |
+
public:
|
| 151 |
+
explicit GroupRadix(const Work& work) : work_(work), engine_(group_ttls(work)) {}
|
| 152 |
+
template<class Emit>
|
| 153 |
+
void advance_groups(Time now, Emit&& emit) {
|
| 154 |
+
engine_.advance(now, [&](Time t, Id f, Id g, bool fresh) {
|
| 155 |
+
emit(t, f, work_.compiled[work_.feed_policy[f]].range(g, g + 1), fresh);
|
| 156 |
+
});
|
| 157 |
+
}
|
| 158 |
+
template<class Emit>
|
| 159 |
+
void observe_groups(Id f, Time now, Emit&& emit) {
|
| 160 |
+
std::size_t recovered = 0;
|
| 161 |
+
engine_.observe(f, now, [&](Time t, Id feed, Id g, bool fresh) {
|
| 162 |
+
if (fresh) { recovered = g + 1; return; }
|
| 163 |
+
emit(t, feed, work_.compiled[work_.feed_policy[feed]].range(g, g + 1), false);
|
| 164 |
+
});
|
| 165 |
+
if (recovered) emit(now, f, work_.compiled[work_.feed_policy[f]].range(0, recovered), true);
|
| 166 |
+
}
|
| 167 |
+
};
|
| 168 |
+
using BinaryGroupRadix = GroupRadix<pulsefold::bench::LazyRadix>;
|
| 169 |
+
using WideGroupRadix = GroupRadix<pulsefold::bench::WideRadix>;
|
| 170 |
+
struct Product : pulsefold::Monitor {
|
| 171 |
+
explicit Product(const Work& work) : Monitor(work.policies, work.feed_policy) {}
|
| 172 |
+
};
|
| 173 |
+
template<class Engine, class Emit>
|
| 174 |
+
void apply(Engine& engine, Operation op, Emit& emit) {
|
| 175 |
+
if (op.feed == poll) engine.advance_groups(op.time, emit);
|
| 176 |
+
else engine.observe_groups(op.feed, op.time, emit);
|
| 177 |
+
}
|
| 178 |
+
|
| 179 |
+
using Record = std::tuple<std::size_t, Time, Id, std::size_t, std::size_t, bool>;
|
| 180 |
+
|
| 181 |
+
// Compare the actual ordered transition streams before timing. Resolve each
|
| 182 |
+
// immutable view once by checking EVERY subscriber against the canonical
|
| 183 |
+
// policy member list. A record then names that exact interval in that policy.
|
| 184 |
+
template<class Engine>
|
| 185 |
+
void verify(const Work& work, std::vector<Record>& expected, bool capture) {
|
| 186 |
+
Engine engine(work);
|
| 187 |
+
std::set<std::tuple<Id, std::uintptr_t, std::size_t>> checked;
|
| 188 |
+
std::size_t index = 0;
|
| 189 |
+
for (std::size_t i = 0; i < work.trace.operations.size(); ++i) {
|
| 190 |
+
auto check = [&](Time t, Id feed, auto view, bool fresh) {
|
| 191 |
+
const Id policy = work.feed_policy.at(feed);
|
| 192 |
+
const auto& p = work.compiled.at(policy);
|
| 193 |
+
if (!view.size()) throw std::logic_error("empty callback");
|
| 194 |
+
const auto offset = p.rank.at(*view.begin());
|
| 195 |
+
const auto key = std::make_tuple(policy, reinterpret_cast<std::uintptr_t>(view.begin()), view.size());
|
| 196 |
+
if (checked.insert(key).second &&
|
| 197 |
+
(view.size() > p.members.size() - offset ||
|
| 198 |
+
!std::equal(view.begin(), view.end(), p.members.begin() + offset)))
|
| 199 |
+
throw std::logic_error("group membership mismatch");
|
| 200 |
+
const Record r{i, t, feed, offset, view.size(), fresh};
|
| 201 |
+
if (capture) expected.push_back(r);
|
| 202 |
+
else if (index >= expected.size() || r != expected[index])
|
| 203 |
+
throw std::logic_error("ordered group stream mismatch");
|
| 204 |
+
++index;
|
| 205 |
+
};
|
| 206 |
+
apply(engine, work.trace.operations[i], check);
|
| 207 |
+
}
|
| 208 |
+
if (index != expected.size()) throw std::logic_error("group count mismatch");
|
| 209 |
+
}
|
| 210 |
+
|
| 211 |
+
struct Totals {
|
| 212 |
+
Time groups = 0, members = 0, checksum = 0;
|
| 213 |
+
template<class V>
|
| 214 |
+
void operator()(Time t, Id f, V view, bool fresh) {
|
| 215 |
+
++groups;
|
| 216 |
+
members += view.size();
|
| 217 |
+
checksum += mix(t ^ (Time(f) << 32) ^ *view.begin() ^ mix(view.size()) ^ fresh);
|
| 218 |
+
}
|
| 219 |
+
};
|
| 220 |
+
struct Result {
|
| 221 |
+
Totals totals;
|
| 222 |
+
double mean, p99;
|
| 223 |
+
};
|
| 224 |
+
template<class Engine>
|
| 225 |
+
Result run(const Work& work) {
|
| 226 |
+
Engine engine(work);
|
| 227 |
+
const auto& trace = work.trace;
|
| 228 |
+
Totals warm, totals;
|
| 229 |
+
for (std::size_t i = 0; i < trace.warmup; ++i) apply(engine, trace.operations[i], warm);
|
| 230 |
+
const auto count = trace.operations.size() - trace.warmup;
|
| 231 |
+
std::vector<double> samples;
|
| 232 |
+
samples.reserve(count / batch_size);
|
| 233 |
+
double wall_ns = 0;
|
| 234 |
+
for (auto b = trace.warmup; b < trace.operations.size(); b += batch_size) {
|
| 235 |
+
const auto e = std::min(b + batch_size, trace.operations.size());
|
| 236 |
+
const auto start = Clock::now();
|
| 237 |
+
for (auto i = b; i < e; ++i) apply(engine, trace.operations[i], totals);
|
| 238 |
+
const double ns = std::chrono::duration<double, std::nano>(Clock::now() - start).count();
|
| 239 |
+
wall_ns += ns;
|
| 240 |
+
if (e - b == batch_size) samples.push_back(ns / batch_size);
|
| 241 |
+
}
|
| 242 |
+
std::sort(samples.begin(), samples.end());
|
| 243 |
+
return {totals, wall_ns / count, samples[(99 * samples.size() - 1) / 100]};
|
| 244 |
+
}
|
| 245 |
+
|
| 246 |
+
unsigned long long number(const std::string& s) {
|
| 247 |
+
if (s.empty() || s.find_first_not_of("0123456789") != std::string::npos)
|
| 248 |
+
throw std::invalid_argument("expected a nonnegative integer");
|
| 249 |
+
return std::stoull(s);
|
| 250 |
+
}
|
| 251 |
+
int benchmark(int argc, char** argv) {
|
| 252 |
+
unsigned reps = 5;
|
| 253 |
+
Time seed = 20261122;
|
| 254 |
+
std::string selected;
|
| 255 |
+
for (int i = 1; i < argc; ++i) {
|
| 256 |
+
const std::string flag = argv[i];
|
| 257 |
+
if (flag == "--help") {
|
| 258 |
+
std::cout << "grouped [--repeats N] [--seed N] [--scenario NAME]\n";
|
| 259 |
+
return 0;
|
| 260 |
+
}
|
| 261 |
+
if (i + 1 == argc) throw std::invalid_argument("missing value for " + flag);
|
| 262 |
+
const std::string val = argv[++i];
|
| 263 |
+
if (flag == "--repeats") {
|
| 264 |
+
auto n = number(val);
|
| 265 |
+
if (!n || n > 1000) throw std::invalid_argument("repeats must be in [1,1000]");
|
| 266 |
+
reps = static_cast<unsigned>(n);
|
| 267 |
+
} else if (flag == "--seed") seed = number(val);
|
| 268 |
+
else if (flag == "--scenario") selected = val;
|
| 269 |
+
else throw std::invalid_argument("unknown option " + flag);
|
| 270 |
+
}
|
| 271 |
+
constexpr std::array<const char*, 4> names = {"pulsefold", "group-scan", "group-radix", "group-wide-radix"};
|
| 272 |
+
using Fn = Result(*)(const Work&);
|
| 273 |
+
const std::array<Fn, names.size()> runners = {run<Product>, run<GroupScan>, run<BinaryGroupRadix>, run<WideGroupRadix>};
|
| 274 |
+
std::cout << "scenario,seed,repeat,run_order,engine,feeds,subscribers_per_feed,distinct_ttls,"
|
| 275 |
+
"warmup_ops,measured_ops,group_callbacks,represented_transitions,checksum,batch_size,"
|
| 276 |
+
"mean_ns_per_op,p99_batch_mean_ns_per_op\n";
|
| 277 |
+
bool found = false;
|
| 278 |
+
for (const auto& c : cases) {
|
| 279 |
+
if (!selected.empty() && selected != c.schedule.name) continue;
|
| 280 |
+
found = true;
|
| 281 |
+
const Work work(c, seed);
|
| 282 |
+
std::vector<Record> expected;
|
| 283 |
+
verify<Product>(work, expected, true);
|
| 284 |
+
verify<GroupScan>(work, expected, false);
|
| 285 |
+
verify<BinaryGroupRadix>(work, expected, false);
|
| 286 |
+
verify<WideGroupRadix>(work, expected, false);
|
| 287 |
+
for (unsigned rep = 0; rep < reps; ++rep) {
|
| 288 |
+
for (unsigned order = 0; order < names.size(); ++order) {
|
| 289 |
+
const auto id = (rep + order) % names.size();
|
| 290 |
+
const auto r = runners[id](work);
|
| 291 |
+
std::cout << c.schedule.name << ',' << seed << ',' << rep + 1 << ',' << order + 1 << ','
|
| 292 |
+
<< names[id] << ',' << c.schedule.feeds << ',' << c.members << ',' << c.groups
|
| 293 |
+
<< ',' << work.trace.warmup << ',' << work.trace.operations.size() - work.trace.warmup
|
| 294 |
+
<< ',' << r.totals.groups << ',' << r.totals.members << ',' << r.totals.checksum
|
| 295 |
+
<< ',' << batch_size << ',' << std::fixed << std::setprecision(3) << r.mean << ','
|
| 296 |
+
<< r.p99 << '\n';
|
| 297 |
+
}
|
| 298 |
+
}
|
| 299 |
+
}
|
| 300 |
+
if (!found) throw std::invalid_argument("unknown scenario " + selected);
|
| 301 |
+
return 0;
|
| 302 |
+
}
|
| 303 |
+
} // namespace
|
| 304 |
+
int main(int argc, char** argv) {
|
| 305 |
+
try { return benchmark(argc, argv); }
|
| 306 |
+
catch (const std::exception& e) { std::cerr << e.what() << '\n'; return EXIT_FAILURE; }
|
| 307 |
+
}
|
bench/scale.cpp
ADDED
|
@@ -0,0 +1,186 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Build with c++ -O3 -DNDEBUG -std=c++17 -Iinclude bench/scale.cpp -o scale
|
| 2 |
+
// Usage: ./scale [feeds [subscribers-per-feed [regular-ttl-groups]]]
|
| 3 |
+
#include "pulsefold.hpp"
|
| 4 |
+
#include <algorithm>
|
| 5 |
+
#include <charconv>
|
| 6 |
+
#include <chrono>
|
| 7 |
+
#include <cstdint>
|
| 8 |
+
#include <fstream>
|
| 9 |
+
#include <iostream>
|
| 10 |
+
#include <numeric>
|
| 11 |
+
#include <optional>
|
| 12 |
+
#include <random>
|
| 13 |
+
#include <stdexcept>
|
| 14 |
+
#include <string>
|
| 15 |
+
#include <tuple>
|
| 16 |
+
#include <vector>
|
| 17 |
+
|
| 18 |
+
namespace {
|
| 19 |
+
using Clock = std::chrono::steady_clock;
|
| 20 |
+
using Id = std::uint32_t;
|
| 21 |
+
using Time = std::uint64_t;
|
| 22 |
+
using Event = std::tuple<Time, Id, Id, bool>;
|
| 23 |
+
constexpr Time base_ttl = 4096;
|
| 24 |
+
|
| 25 |
+
Id positive(const char* arg) {
|
| 26 |
+
const std::string value(arg);
|
| 27 |
+
Id n = 0;
|
| 28 |
+
const auto end = value.data() + value.size();
|
| 29 |
+
const auto parsed = std::from_chars(value.data(), end, n);
|
| 30 |
+
if (parsed.ec != std::errc{} || parsed.ptr != end || n == 0)
|
| 31 |
+
throw std::invalid_argument("dimensions must be positive 32-bit integers");
|
| 32 |
+
return n;
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
Time nanoseconds(Clock::time_point a, Clock::time_point b) {
|
| 36 |
+
return std::chrono::duration_cast<std::chrono::nanoseconds>(b - a).count();
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
// Linux reports the process-wide resident high-water mark in KiB. Other
|
| 40 |
+
// platforms still run and validate the workload, with a null RSS result.
|
| 41 |
+
std::optional<Time> peak_rss_bytes() {
|
| 42 |
+
std::ifstream input("/proc/self/status");
|
| 43 |
+
std::string line;
|
| 44 |
+
while (std::getline(input, line)) {
|
| 45 |
+
if (line.compare(0, 6, "VmHWM:") == 0)
|
| 46 |
+
return std::stoull(line.substr(6)) * 1024;
|
| 47 |
+
}
|
| 48 |
+
return std::nullopt;
|
| 49 |
+
}
|
| 50 |
+
|
| 51 |
+
struct GroupCheck {
|
| 52 |
+
std::size_t count = 0;
|
| 53 |
+
const Id* validated = nullptr;
|
| 54 |
+
};
|
| 55 |
+
|
| 56 |
+
int run(int argc, char** argv) {
|
| 57 |
+
if (argc > 4) throw std::invalid_argument("usage: scale [feeds [subscribers [ttl-groups]]]");
|
| 58 |
+
const Id feed_count = argc > 1 ? positive(argv[1]) : 1048576;
|
| 59 |
+
const Id subscribers = argc > 2 ? positive(argv[2]) : 1024;
|
| 60 |
+
const Id groups = argc > 3 ? positive(argv[3]) : std::min<Id>(2, subscribers);
|
| 61 |
+
if (groups > subscribers) throw std::invalid_argument("ttl-groups exceeds subscribers");
|
| 62 |
+
const Id cohort = std::min<Id>(4, feed_count);
|
| 63 |
+
const Id first_short = feed_count - cohort;
|
| 64 |
+
constexpr Id seed = 73129;
|
| 65 |
+
|
| 66 |
+
const auto start = Clock::now();
|
| 67 |
+
pulsefold::Monitor::Config policies(2, std::vector<Time>(subscribers));
|
| 68 |
+
for (Id s = 0; s < subscribers; ++s) policies[0][s] = base_ttl + s % groups;
|
| 69 |
+
policies[1] = policies[0];
|
| 70 |
+
policies[1][0] = 3;
|
| 71 |
+
if (subscribers > 1) policies[1].back() = 5;
|
| 72 |
+
std::vector<Id> feed_policy_ids(feed_count, 0);
|
| 73 |
+
std::fill(feed_policy_ids.begin() + first_short, feed_policy_ids.end(), 1);
|
| 74 |
+
pulsefold::Monitor monitor(policies, feed_policy_ids);
|
| 75 |
+
const auto setup_done = Clock::now();
|
| 76 |
+
|
| 77 |
+
std::vector<Id> renewal_order(feed_count);
|
| 78 |
+
std::iota(renewal_order.begin(), renewal_order.end(), 0u);
|
| 79 |
+
std::mt19937 engine(seed);
|
| 80 |
+
std::shuffle(renewal_order.begin(), renewal_order.end(), engine);
|
| 81 |
+
const auto shuffle_done = Clock::now();
|
| 82 |
+
|
| 83 |
+
std::vector<Event> expected;
|
| 84 |
+
for (Id f = first_short; f < feed_count; ++f) expected.emplace_back(4, f, 0, false);
|
| 85 |
+
if (subscribers > 1)
|
| 86 |
+
for (Id f = first_short; f < feed_count; ++f)
|
| 87 |
+
expected.emplace_back(6, f, subscribers - 1, false);
|
| 88 |
+
for (Id f = first_short; f < feed_count; ++f) {
|
| 89 |
+
expected.emplace_back(6, f, 0, true);
|
| 90 |
+
if (subscribers > 1) expected.emplace_back(6, f, subscribers - 1, true);
|
| 91 |
+
}
|
| 92 |
+
std::size_t events = 0;
|
| 93 |
+
bool valid = true;
|
| 94 |
+
auto emit = [&](Time t, Id f, Id s, bool fresh) {
|
| 95 |
+
if (events >= expected.size() || expected[events] != Event(t, f, s, fresh))
|
| 96 |
+
valid = false;
|
| 97 |
+
++events;
|
| 98 |
+
};
|
| 99 |
+
const auto arm_start = Clock::now();
|
| 100 |
+
for (Id f = 0; f < feed_count; ++f) monitor.observe(f, 0, emit);
|
| 101 |
+
const auto arm_done = Clock::now();
|
| 102 |
+
for (auto f : renewal_order) monitor.observe(f, 1, emit);
|
| 103 |
+
const auto renew_done = Clock::now();
|
| 104 |
+
if (events) valid = false;
|
| 105 |
+
monitor.advance(6, emit);
|
| 106 |
+
for (Id f = first_short; f < feed_count; ++f) monitor.observe(f, 6, emit);
|
| 107 |
+
if (!valid || events != expected.size()) throw std::runtime_error("scalar transition mismatch");
|
| 108 |
+
|
| 109 |
+
// Independently derive the expected group size from the input data.
|
| 110 |
+
// Check its full ID sequence once per immutable view, then compare pointers.
|
| 111 |
+
auto group_index = [groups](Time ttl) -> std::size_t {
|
| 112 |
+
if (ttl == 3) return groups;
|
| 113 |
+
if (ttl == 5) return std::size_t(groups) + 1;
|
| 114 |
+
return static_cast<std::size_t>(ttl - base_ttl);
|
| 115 |
+
};
|
| 116 |
+
std::vector<std::vector<GroupCheck>> checks(2,
|
| 117 |
+
std::vector<GroupCheck>(std::size_t(groups) + 2));
|
| 118 |
+
Time expected_groups = 0;
|
| 119 |
+
for (Id p = 0; p < 2; ++p) {
|
| 120 |
+
for (const auto ttl : policies[p]) ++checks[p][group_index(ttl)].count;
|
| 121 |
+
const auto unique = std::count_if(checks[p].begin(), checks[p].end(),
|
| 122 |
+
[](auto& g) { return g.count != 0; });
|
| 123 |
+
expected_groups += Time(unique) * (p ? cohort : first_short);
|
| 124 |
+
}
|
| 125 |
+
const Time logical = Time(feed_count) * subscribers;
|
| 126 |
+
Time group_callbacks = 0, represented = 0, last_time = 0;
|
| 127 |
+
Id last_feed = 0;
|
| 128 |
+
const auto flush_start = Clock::now();
|
| 129 |
+
monitor.advance_groups(UINT64_MAX, [&](Time time, Id feed, pulsefold::SubscriberView view, bool fresh) {
|
| 130 |
+
if (fresh || feed >= feed_count || (group_callbacks &&
|
| 131 |
+
(time < last_time || (time == last_time && feed <= last_feed)))) {
|
| 132 |
+
valid = false;
|
| 133 |
+
return;
|
| 134 |
+
}
|
| 135 |
+
++group_callbacks;
|
| 136 |
+
represented += view.size();
|
| 137 |
+
last_time = time;
|
| 138 |
+
last_feed = feed;
|
| 139 |
+
const auto policy = feed_policy_ids[feed];
|
| 140 |
+
const auto ttl = time - (policy ? 6 : 1);
|
| 141 |
+
if (!(ttl == 3 || ttl == 5 || (ttl >= base_ttl && ttl - base_ttl < groups))) {
|
| 142 |
+
valid = false;
|
| 143 |
+
return;
|
| 144 |
+
}
|
| 145 |
+
auto& check = checks[policy][group_index(ttl)];
|
| 146 |
+
if (view.size() != check.count || view.size() == 0) valid = false;
|
| 147 |
+
if (!check.validated) {
|
| 148 |
+
if (!std::is_sorted(view.begin(), view.end()) ||
|
| 149 |
+
std::adjacent_find(view.begin(), view.end()) != view.end()) valid = false;
|
| 150 |
+
for (auto s : view)
|
| 151 |
+
if (s >= subscribers || policies[policy][s] != ttl) valid = false;
|
| 152 |
+
check.validated = view.begin();
|
| 153 |
+
} else if (check.validated != view.begin()) valid = false;
|
| 154 |
+
});
|
| 155 |
+
const auto flush_done = Clock::now();
|
| 156 |
+
if (!valid || group_callbacks != expected_groups || represented != logical || monitor.next_wake())
|
| 157 |
+
throw std::runtime_error("group transition mismatch");
|
| 158 |
+
|
| 159 |
+
const auto rss = peak_rss_bytes();
|
| 160 |
+
std::cout << "{\n"
|
| 161 |
+
<< " \"feeds\": " << feed_count << ",\n"
|
| 162 |
+
<< " \"subscribers_per_feed\": " << subscribers << ",\n"
|
| 163 |
+
<< " \"logical_relationships\": " << logical << ",\n"
|
| 164 |
+
<< " \"policy_templates\": 2,\n"
|
| 165 |
+
<< " \"regular_policy_ttl_groups\": " << groups << ",\n"
|
| 166 |
+
<< " \"short_deadline_cohort_feeds\": " << cohort << ",\n"
|
| 167 |
+
<< " \"shuffle_seed\": " << seed << ",\n"
|
| 168 |
+
<< " \"setup_ns\": " << nanoseconds(start, setup_done) << ",\n"
|
| 169 |
+
<< " \"shuffle_ns\": " << nanoseconds(setup_done, shuffle_done) << ",\n"
|
| 170 |
+
<< " \"arm_all_ns\": " << nanoseconds(arm_start, arm_done) << ",\n"
|
| 171 |
+
<< " \"renew_all_shuffled_ns\": " << nanoseconds(arm_done, renew_done) << ",\n"
|
| 172 |
+
<< " \"verified_scalar_transitions\": " << events << ",\n"
|
| 173 |
+
<< " \"full_expiry_group_callbacks\": " << group_callbacks << ",\n"
|
| 174 |
+
<< " \"full_expiry_represented_subscriber_transitions\": " << represented << ",\n"
|
| 175 |
+
<< " \"full_expiry_grouped_ns\": " << nanoseconds(flush_start, flush_done) << ",\n"
|
| 176 |
+
<< " \"peak_rss_bytes\": " << (rss ? std::to_string(*rss) : "null") << ",\n"
|
| 177 |
+
<< " \"peak_rss_source\": " << (rss ? "\"/proc/self/status VmHWM\"" : "null") << ",\n"
|
| 178 |
+
<< " \"verified\": true\n}\n";
|
| 179 |
+
return 0;
|
| 180 |
+
}
|
| 181 |
+
} // namespace
|
| 182 |
+
|
| 183 |
+
int main(int argc, char** argv) {
|
| 184 |
+
try { return run(argc, argv); }
|
| 185 |
+
catch (const std::exception& e) { std::cerr << e.what() << '\n'; return 1; }
|
| 186 |
+
}
|
bench/wide_radix.hpp
ADDED
|
@@ -0,0 +1,184 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#pragma once
|
| 2 |
+
#include "baselines.hpp"
|
| 3 |
+
|
| 4 |
+
namespace pulsefold::bench {
|
| 5 |
+
|
| 6 |
+
// A four-bit radix queue trades extra bucket storage for fewer redistributions
|
| 7 |
+
// than the one-bit LazyRadix. A two-level occupancy bitmap finds the lowest
|
| 8 |
+
// occupied bucket, and a cached lower bound serves clock polls between checks.
|
| 9 |
+
class WideRadix {
|
| 10 |
+
using Id = detail::Id;
|
| 11 |
+
using Time = detail::Time;
|
| 12 |
+
using Slot = std::size_t;
|
| 13 |
+
static constexpr Slot absent = std::numeric_limits<Slot>::max();
|
| 14 |
+
struct Timer {
|
| 15 |
+
Time check = 0;
|
| 16 |
+
Slot slot = absent;
|
| 17 |
+
};
|
| 18 |
+
struct Bucket {
|
| 19 |
+
std::vector<Id> ids;
|
| 20 |
+
Time earliest = detail::max_time;
|
| 21 |
+
};
|
| 22 |
+
|
| 23 |
+
std::vector<detail::Feed> feeds_;
|
| 24 |
+
std::vector<Timer> timers_;
|
| 25 |
+
std::array<Bucket, 256> buckets_;
|
| 26 |
+
std::vector<Id> fired_;
|
| 27 |
+
std::array<std::uint64_t, 4> occupied_{};
|
| 28 |
+
unsigned pages_ = 0;
|
| 29 |
+
Time hint_ = detail::max_time;
|
| 30 |
+
Time base_ = 0;
|
| 31 |
+
Time now_ = 0;
|
| 32 |
+
|
| 33 |
+
void mark(unsigned index) {
|
| 34 |
+
occupied_[index >> 6] |= std::uint64_t{1} << (index & 63);
|
| 35 |
+
pages_ |= 1u << (index >> 6);
|
| 36 |
+
}
|
| 37 |
+
void unmark(unsigned index) {
|
| 38 |
+
auto& word = occupied_[index >> 6];
|
| 39 |
+
word &= ~(std::uint64_t{1} << (index & 63));
|
| 40 |
+
if (!word) pages_ &= ~(1u << (index >> 6));
|
| 41 |
+
}
|
| 42 |
+
// Identify the highest differing nibble, then its value. Since check >=
|
| 43 |
+
// base_, this digit is strictly larger than the corresponding base digit.
|
| 44 |
+
unsigned slot(Time check) const {
|
| 45 |
+
const auto difference = check ^ base_;
|
| 46 |
+
if (!difference) return 0;
|
| 47 |
+
const unsigned shift = (width(difference) - 1) & ~3u;
|
| 48 |
+
return shift * 4 + (static_cast<unsigned>(check >> shift) & 15u);
|
| 49 |
+
}
|
| 50 |
+
|
| 51 |
+
static unsigned width(std::uint64_t value) {
|
| 52 |
+
#if defined(__GNUC__) || defined(__clang__)
|
| 53 |
+
return value ? 64u - static_cast<unsigned>(__builtin_clzll(value)) : 0u;
|
| 54 |
+
#else
|
| 55 |
+
unsigned bits = 0;
|
| 56 |
+
while (value) { ++bits; value >>= 1; }
|
| 57 |
+
return bits;
|
| 58 |
+
#endif
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
+
static unsigned first_set(std::uint64_t mask) {
|
| 62 |
+
#if defined(__GNUC__) || defined(__clang__)
|
| 63 |
+
return static_cast<unsigned>(__builtin_ctzll(mask));
|
| 64 |
+
#else
|
| 65 |
+
unsigned bit = 0;
|
| 66 |
+
while (!(mask & 1)) { ++bit; mask >>= 1; }
|
| 67 |
+
return bit;
|
| 68 |
+
#endif
|
| 69 |
+
}
|
| 70 |
+
|
| 71 |
+
void insert(Id id, Time check) {
|
| 72 |
+
const unsigned index = slot(check);
|
| 73 |
+
auto& bucket = buckets_[index];
|
| 74 |
+
if (bucket.ids.empty()) {
|
| 75 |
+
bucket.earliest = check;
|
| 76 |
+
if (index) mark(index);
|
| 77 |
+
} else {
|
| 78 |
+
bucket.earliest = std::min(bucket.earliest, check);
|
| 79 |
+
}
|
| 80 |
+
hint_ = std::min(hint_, check);
|
| 81 |
+
timers_[id] = {check, bucket.ids.size()};
|
| 82 |
+
bucket.ids.push_back(id);
|
| 83 |
+
}
|
| 84 |
+
|
| 85 |
+
void remove(Id id) {
|
| 86 |
+
const auto timer = timers_[id];
|
| 87 |
+
const unsigned index = slot(timer.check);
|
| 88 |
+
auto& bucket = buckets_[index];
|
| 89 |
+
const Id last = bucket.ids.back();
|
| 90 |
+
bucket.ids[timer.slot] = last;
|
| 91 |
+
timers_[last].slot = timer.slot;
|
| 92 |
+
bucket.ids.pop_back();
|
| 93 |
+
timers_[id].slot = absent;
|
| 94 |
+
if (index && bucket.ids.empty()) unmark(index);
|
| 95 |
+
// The cached minimum may now be early. A due check verifies it.
|
| 96 |
+
}
|
| 97 |
+
|
| 98 |
+
// All keys in the first occupied nonzero bucket precede all keys in higher
|
| 99 |
+
// buckets. Redistributing about its minimum strictly reduces bucket index.
|
| 100 |
+
bool prepare(Time now) {
|
| 101 |
+
if (!buckets_[0].ids.empty()) return true;
|
| 102 |
+
if (!pages_) {
|
| 103 |
+
hint_ = detail::max_time;
|
| 104 |
+
return false;
|
| 105 |
+
}
|
| 106 |
+
const unsigned page = first_set(pages_);
|
| 107 |
+
const unsigned index = page * 64 + first_set(occupied_[page]);
|
| 108 |
+
auto& bucket = buckets_[index];
|
| 109 |
+
if (bucket.earliest > now) {
|
| 110 |
+
hint_ = bucket.earliest;
|
| 111 |
+
return false;
|
| 112 |
+
}
|
| 113 |
+
Time minimum = detail::max_time;
|
| 114 |
+
for (Id id : bucket.ids) minimum = std::min(minimum, timers_[id].check);
|
| 115 |
+
bucket.earliest = minimum;
|
| 116 |
+
if (minimum > now) {
|
| 117 |
+
hint_ = minimum;
|
| 118 |
+
return false;
|
| 119 |
+
}
|
| 120 |
+
base_ = minimum;
|
| 121 |
+
unmark(index);
|
| 122 |
+
for (Id id : bucket.ids) insert(id, timers_[id].check);
|
| 123 |
+
bucket.ids.clear();
|
| 124 |
+
return true;
|
| 125 |
+
}
|
| 126 |
+
|
| 127 |
+
public:
|
| 128 |
+
explicit WideRadix(const std::vector<std::vector<Time>>& schema)
|
| 129 |
+
: feeds_(detail::make_feeds(schema)), timers_(schema.size()) {}
|
| 130 |
+
|
| 131 |
+
template<class Emit>
|
| 132 |
+
void advance(Time now, Emit&& emit) {
|
| 133 |
+
if (now < now_) throw std::invalid_argument("time must be nondecreasing");
|
| 134 |
+
now_ = now;
|
| 135 |
+
if (now < hint_) return;
|
| 136 |
+
while (prepare(now)) {
|
| 137 |
+
const Time check = base_;
|
| 138 |
+
fired_.clear();
|
| 139 |
+
for (Id id : buckets_[0].ids) {
|
| 140 |
+
timers_[id].slot = absent;
|
| 141 |
+
Time due;
|
| 142 |
+
if (!feeds_[id].next(due)) continue;
|
| 143 |
+
if (due == check) fired_.push_back(id);
|
| 144 |
+
else insert(id, due);
|
| 145 |
+
}
|
| 146 |
+
buckets_[0].ids.clear();
|
| 147 |
+
// Deferred checks have no observable order. Only simultaneous real
|
| 148 |
+
// expiries need sorting to preserve (timestamp, feed, subscriber).
|
| 149 |
+
std::sort(fired_.begin(), fired_.end());
|
| 150 |
+
for (Id id : fired_) {
|
| 151 |
+
auto& feed = feeds_[id];
|
| 152 |
+
const Time ttl = check - feed.last;
|
| 153 |
+
do {
|
| 154 |
+
emit(check, id, feed.levels[feed.stale].id, false);
|
| 155 |
+
++feed.stale;
|
| 156 |
+
} while (feed.stale < feed.levels.size() && feed.levels[feed.stale].ttl == ttl);
|
| 157 |
+
Time due;
|
| 158 |
+
if (feed.next(due)) insert(id, due);
|
| 159 |
+
}
|
| 160 |
+
}
|
| 161 |
+
}
|
| 162 |
+
|
| 163 |
+
template<class Emit>
|
| 164 |
+
void observe(Id feed, Time now, Emit&& emit) {
|
| 165 |
+
if (feed >= feeds_.size()) throw std::out_of_range("unknown feed");
|
| 166 |
+
advance(now, emit);
|
| 167 |
+
auto& state = feeds_[feed];
|
| 168 |
+
// In the healthy armed state the next deadline can only move later.
|
| 169 |
+
if (state.armed && state.stale == 0) {
|
| 170 |
+
state.last = now;
|
| 171 |
+
return;
|
| 172 |
+
}
|
| 173 |
+
state.refresh(feed, now, emit);
|
| 174 |
+
Time due;
|
| 175 |
+
const bool schedulable = state.next(due);
|
| 176 |
+
if (timers_[feed].slot != absent) {
|
| 177 |
+
if (schedulable && timers_[feed].check <= due) return;
|
| 178 |
+
remove(feed);
|
| 179 |
+
}
|
| 180 |
+
if (schedulable) insert(feed, due);
|
| 181 |
+
}
|
| 182 |
+
};
|
| 183 |
+
|
| 184 |
+
} // namespace pulsefold::bench
|
bench/workloads.hpp
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#pragma once
|
| 2 |
+
|
| 3 |
+
#include <algorithm>
|
| 4 |
+
#include <chrono>
|
| 5 |
+
#include <cstdint>
|
| 6 |
+
#include <limits>
|
| 7 |
+
#include <numeric>
|
| 8 |
+
#include <random>
|
| 9 |
+
#include <vector>
|
| 10 |
+
|
| 11 |
+
namespace pulsefold::benchmarks {
|
| 12 |
+
using Time = std::uint64_t;
|
| 13 |
+
using Id = std::uint32_t;
|
| 14 |
+
using Clock = std::chrono::steady_clock;
|
| 15 |
+
constexpr Id poll = std::numeric_limits<Id>::max();
|
| 16 |
+
constexpr std::size_t batch_size = 128;
|
| 17 |
+
|
| 18 |
+
enum class Pattern { healthy, mixed, loss, churn, storm, polling };
|
| 19 |
+
struct Scenario {
|
| 20 |
+
const char* name;
|
| 21 |
+
Id feeds;
|
| 22 |
+
Id subscribers;
|
| 23 |
+
unsigned min_periods;
|
| 24 |
+
bool uniform_ttl;
|
| 25 |
+
Pattern pattern;
|
| 26 |
+
};
|
| 27 |
+
|
| 28 |
+
inline constexpr Scenario scenarios[] = {
|
| 29 |
+
{"small", 8, 4, 4, false, Pattern::healthy},
|
| 30 |
+
{"single-subscriber", 1024, 1, 4, false, Pattern::healthy},
|
| 31 |
+
{"long-grace", 4096, 16, 32, false, Pattern::healthy},
|
| 32 |
+
{"mixed-slo", 2048, 16, 6, false, Pattern::mixed},
|
| 33 |
+
{"rotating-outages", 1024, 16, 3, false, Pattern::loss},
|
| 34 |
+
{"high-churn", 128, 16, 1, false, Pattern::churn},
|
| 35 |
+
{"synchronous-storm", 512, 32, 4, true, Pattern::storm},
|
| 36 |
+
{"poll-heavy", 256, 8, 3, false, Pattern::polling},
|
| 37 |
+
};
|
| 38 |
+
|
| 39 |
+
struct Operation { Time time; Id feed; };
|
| 40 |
+
struct Trace {
|
| 41 |
+
std::vector<std::vector<Time>> config;
|
| 42 |
+
std::vector<Operation> operations;
|
| 43 |
+
std::size_t warmup = 0;
|
| 44 |
+
};
|
| 45 |
+
|
| 46 |
+
// One round visits every feed in a seeded permutation. A unit of logical time
|
| 47 |
+
// is one visit slot. The storm case puts a whole round at the same instant.
|
| 48 |
+
inline Trace generate(const Scenario& sc, Time seed) {
|
| 49 |
+
std::mt19937_64 random(seed);
|
| 50 |
+
const Time period = sc.feeds;
|
| 51 |
+
Trace trace;
|
| 52 |
+
trace.config.resize(sc.feeds);
|
| 53 |
+
for (Id f = 0; f < sc.feeds; ++f) {
|
| 54 |
+
for (Id s = 0; s < sc.subscribers; ++s) {
|
| 55 |
+
Time ttl = sc.min_periods * period;
|
| 56 |
+
if (!sc.uniform_ttl) ttl += random() % (ttl + 1);
|
| 57 |
+
// Mixed SLOs: one in 32 feeds has tighter freshness requirements.
|
| 58 |
+
if (sc.pattern == Pattern::mixed && f % 32 == 0)
|
| 59 |
+
ttl = period / 2 + random() % period;
|
| 60 |
+
if (sc.pattern == Pattern::churn) ttl = 1 + random() % period;
|
| 61 |
+
trace.config[f].push_back(ttl);
|
| 62 |
+
}
|
| 63 |
+
}
|
| 64 |
+
std::vector<Id> permutation(sc.feeds);
|
| 65 |
+
std::iota(permutation.begin(), permutation.end(), 0U);
|
| 66 |
+
const std::size_t warm_rounds = 2 * sc.min_periods + 4;
|
| 67 |
+
const std::size_t measured_rounds = std::max<std::size_t>(64, 32768 / sc.feeds);
|
| 68 |
+
Time now = 0;
|
| 69 |
+
const bool storm = sc.pattern == Pattern::storm;
|
| 70 |
+
for (std::size_t r = 0; r < warm_rounds + measured_rounds; ++r) {
|
| 71 |
+
if (r == warm_rounds) trace.warmup = trace.operations.size();
|
| 72 |
+
for (std::size_t i = permutation.size(); i > 1; --i)
|
| 73 |
+
std::swap(permutation[i - 1], permutation[random() % i]);
|
| 74 |
+
if (storm) {
|
| 75 |
+
now += period;
|
| 76 |
+
// The whole fleet goes quiet long enough to expire every feed.
|
| 77 |
+
if (r % 8 == 7) {
|
| 78 |
+
now += 8 * period;
|
| 79 |
+
trace.operations.push_back({now, poll});
|
| 80 |
+
}
|
| 81 |
+
}
|
| 82 |
+
for (Id f : permutation) {
|
| 83 |
+
if (!storm) ++now;
|
| 84 |
+
// Each cohort vanishes for eight rounds in every sequence of 64.
|
| 85 |
+
const bool missing = sc.pattern == Pattern::loss && f % 8 == (r / 8) % 8;
|
| 86 |
+
trace.operations.push_back({now, missing ? poll : f});
|
| 87 |
+
// Reader polls interleaved with each renewal at the same logical time.
|
| 88 |
+
if (sc.pattern == Pattern::polling) {
|
| 89 |
+
for (int p = 0; p < 7; ++p) trace.operations.push_back({now, poll});
|
| 90 |
+
}
|
| 91 |
+
}
|
| 92 |
+
}
|
| 93 |
+
return trace;
|
| 94 |
+
}
|
| 95 |
+
|
| 96 |
+
inline Time mix(Time n) {
|
| 97 |
+
n = (n ^ (n >> 30)) * 0xbf58476d1ce4e5b9ULL;
|
| 98 |
+
n = (n ^ (n >> 27)) * 0x94d049bb133111ebULL;
|
| 99 |
+
return n ^ (n >> 31);
|
| 100 |
+
}
|
| 101 |
+
|
| 102 |
+
struct Digest {
|
| 103 |
+
Time fresh = 0, stale = 0, sum = 0, parity = 0, operation = 0;
|
| 104 |
+
void operator()(Time time, Id feed, Id subscriber, bool is_fresh) {
|
| 105 |
+
// Include the operation that delivered the transition. Sum and XOR
|
| 106 |
+
// allow ties to arrive in different orders without masking duplicates.
|
| 107 |
+
const Time h = mix(time ^ mix(operation) ^ mix((Time(feed) << 32) | subscriber)
|
| 108 |
+
^ (is_fresh ? 0xE9017B82CD685C5FULL : 0));
|
| 109 |
+
sum += h;
|
| 110 |
+
parity ^= h;
|
| 111 |
+
if (is_fresh) ++fresh; else ++stale;
|
| 112 |
+
}
|
| 113 |
+
bool matches(const Digest& other) const {
|
| 114 |
+
return fresh == other.fresh && stale == other.stale &&
|
| 115 |
+
sum == other.sum && parity == other.parity;
|
| 116 |
+
}
|
| 117 |
+
};
|
| 118 |
+
|
| 119 |
+
} // namespace pulsefold::benchmarks
|
demo/index.html
ADDED
|
@@ -0,0 +1,182 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!doctype html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="utf-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
| 6 |
+
<meta name="description" content="Pulsefold is a C++17 heartbeat freshness monitor for large agent fleets. Try the live timeline, download the source and reproduce its billion-watch benchmark.">
|
| 7 |
+
<meta name="theme-color" content="#f7f7f2">
|
| 8 |
+
<title>Pulsefold · Heartbeat replay</title>
|
| 9 |
+
<style>
|
| 10 |
+
:root{color-scheme:light;--paper:#f7f7f2;--ink:#152119;--muted:#556159;--line:#ced5c9;--white:#fff;--green:#236147;--green-light:#bfe2c5;--red:#993e24;--red-light:#f5b89e;--mono:"IBM Plex Mono",ui-monospace,SFMono-Regular,Consolas,monospace;--sans:"Instrument Sans",Inter,system-ui,sans-serif}
|
| 11 |
+
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);line-height:1.5}main{max-width:1040px;margin:auto;padding:26px 36px 64px}header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:18px}.brand{display:inline-flex;gap:9px;align-items:center;font-size:20px;font-weight:750;letter-spacing:-.05em}.brand svg{color:var(--green)}button,select{font:inherit;color:inherit;background:var(--white)}button,select{border:1px solid #aab5a9;border-radius:7px;min-height:40px;padding:7px 12px}button{cursor:pointer;font-weight:600}button:hover:not(:disabled),select:hover{border-color:var(--green);background:#f4faf3}button:disabled{cursor:default;opacity:.44}button:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #276cb3;outline-offset:3px}button.primary{background:var(--green);border-color:var(--green);color:white}button.primary:hover:not(:disabled){background:#184a33}h1{font-size:clamp(34px,5.6vw,62px);line-height:1.04;letter-spacing:-.065em;margin:0 0 13px}h2{font-size:21px;letter-spacing:-.045em;margin:0}.intro{padding:34px 0 26px}.intro p{font-size:17px;max-width:60ch;margin:0;color:var(--muted)}.panel{background:var(--white);border:1px solid var(--line);border-radius:14px;overflow:hidden}.toolbar,.panel-head,.panel-foot{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.toolbar{padding:16px 20px;border-bottom:1px solid var(--line);background:#f1f4ed}.scenario,.actions{display:flex;align-items:center;gap:8px}.scenario label{font-size:14px;font-weight:650}.panel-head{padding:24px 22px 8px}.clock{font-family:var(--mono);font-size:14px;color:var(--green);font-weight:650}.chart{padding:10px 22px 22px;--names:148px;--state:70px}.chart-row{display:grid;grid-template-columns:var(--names) minmax(0,1fr) var(--state);align-items:center;column-gap:12px;min-height:55px;border-top:1px solid #e6eae2}.chart-row.axis{border-top:0;min-height:32px}.name strong,.name small{display:block}.name strong{font-size:14px}.name small{font-size:12px;color:var(--muted)}.axis-track,.track{position:relative}.axis-track{height:22px}.tick{position:absolute;transform:translateX(-50%);top:0;color:var(--muted);font:11px/22px var(--mono)}.tick:first-child{transform:none}.tick:last-child{transform:translateX(-100%)}.track{height:20px;background:#f3f5f0;border-radius:3px}.track:before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(90deg,transparent 0 calc(16.6667% - 1px),#dce2d8 calc(16.6667% - 1px) 16.6667%)}.segment{position:absolute;top:2px;bottom:2px}.segment.fresh{background:var(--green-light)}.segment.stale{background:repeating-linear-gradient(135deg,var(--red-light) 0 4px,#f9c9b7 4px 6px)}.beat,.cursor,.instant{position:absolute;transform:translateX(-50%)}.beat{top:5px;width:4px;height:10px;background:#2f4535;border-radius:1px}.cursor{top:-5px;bottom:-5px;width:2px;background:#172a1e}.instant{top:6px;width:8px;height:8px;transform:translateX(-50%) rotate(45deg);background:#a14526;border:1px solid white;z-index:1}.badge{justify-self:end;font:600 10px/1.4 var(--mono);letter-spacing:.03em;text-transform:uppercase;border-radius:4px;padding:4px 7px}.badge.fresh{background:#e5f3e3;color:#245a36}.badge.stale{background:#fff0e9;color:#823c27}.feed-count{justify-self:end;color:var(--muted);font:12px var(--mono)}.panel-foot{border-top:1px solid var(--line);padding:13px 22px;color:var(--muted);font-size:12px}.legend{display:flex;gap:14px;flex-wrap:wrap}.legend span{display:inline-flex;align-items:center;gap:5px}.key{display:inline-block;width:13px;height:9px;border-radius:1px}.key.fresh{background:var(--green-light)}.key.stale{background:repeating-linear-gradient(135deg,var(--red-light) 0 3px,#f9c9b7 3px 5px)}.key.instant-key{width:7px;height:7px;transform:rotate(45deg);background:#a14526}.events{margin-top:23px}.events .panel-head{padding:16px 22px}.events .panel-head span{font:12px var(--mono);color:var(--muted)}table{width:100%;border-collapse:collapse;text-align:left;font-size:14px}th,td{padding:8px 22px;border-top:1px solid #e4e8df}th{font-size:12px;font-weight:600;color:var(--muted);background:#fafbf8}td:first-child{font-family:var(--mono);white-space:nowrap}.state-text{font-weight:650}.state-text.stale{color:var(--red)}.state-text.fresh{color:var(--green)}.empty{margin:0;padding:14px 22px 20px;color:var(--muted);font-size:14px}.note{color:var(--muted);font-size:13px;max-width:88ch;margin:14px 2px}.reader-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}[hidden]{display:none!important}
|
| 12 |
+
@media(max-width:670px){main{padding:18px 14px 40px}.intro{padding:25px 0 20px}.toolbar{padding:12px;gap:10px}.scenario,.actions{flex-wrap:wrap}.panel-head,.events .panel-head{padding:16px 12px 7px}.chart{padding:7px 12px 15px;--names:101px;--state:47px}.chart-row{column-gap:7px;min-height:50px}.name strong{font-size:12px}.name small{font-size:11px}.badge{font-size:9px;padding:3px 4px}.panel-foot{padding:12px}.events{margin-top:15px}.events .panel-head{padding-bottom:12px}th,td{padding:8px 12px}.intro p{font-size:15px}.empty{padding:12px}.scenario label{font-size:13px}}
|
| 13 |
+
|
| 14 |
+
.release-links{display:flex;gap:.45rem 1rem;flex-wrap:wrap;align-items:center;font-size:.95rem}.release-links a,.details a{color:var(--green);text-decoration:underline;text-underline-offset:.2em}.release-links a:focus-visible,.details a:focus-visible{outline:3px solid var(--green);outline-offset:3px}
|
| 15 |
+
.details{margin:2.2rem 0 0;border-top:1px solid var(--line);padding-top:1.2rem}.details p{max-width:75ch}.details code{font-family:var(--mono);overflow-wrap:anywhere}
|
| 16 |
+
@media(max-width:620px){header{flex-wrap:wrap;gap:.65rem}}
|
| 17 |
+
</style>
|
| 18 |
+
</head>
|
| 19 |
+
<body>
|
| 20 |
+
<main>
|
| 21 |
+
<header><div class="brand"><svg width="29" height="25" viewBox="0 0 29 25" fill="none" aria-hidden="true"><path d="M1 14h6l4-10 6 17 4-10 2 3h5" stroke="currentColor" stroke-width="2.8" stroke-linejoin="round"/></svg>Pulsefold</div><nav class="release-links" aria-label="Release"><a href="https://pulsefold.tancurl3.chatgpt.site/releases/pulsefold-0.1.0.zip">Download source</a><a href="https://pulsefold.tancurl3.chatgpt.site/results.html">Benchmarks</a></nav></header>
|
| 22 |
+
<section class="intro"><h1>Heartbeat replay</h1><p>Three subscribers watch one agent. Each chooses how long it can wait for the next heartbeat before the feed goes stale.</p></section>
|
| 23 |
+
<section class="panel" aria-labelledby="timeline-title">
|
| 24 |
+
<div class="toolbar">
|
| 25 |
+
<div class="scenario"><label for="scenario">Feed</label><select id="scenario"><option value="boundary">Four-second gap</option><option value="outage">Long outage</option><option value="steady">Steady heartbeat</option></select></div>
|
| 26 |
+
<div class="actions"><button type="button" id="restart">Reset</button><button type="button" id="play" class="primary">Play</button><button type="button" id="step">Step +1 s</button></div>
|
| 27 |
+
</div>
|
| 28 |
+
<div class="panel-head"><h2 id="timeline-title">Subscriber freshness</h2><output class="clock" id="clock"></output></div>
|
| 29 |
+
<div class="chart" id="chart"></div>
|
| 30 |
+
<div class="panel-foot"><div class="legend"><span><i class="key fresh"></i>Fresh</span><span><i class="key stale"></i>Stale</span><span><i class="key instant-key"></i>Expired and renewed together</span></div></div>
|
| 31 |
+
</section>
|
| 32 |
+
<section class="panel events" aria-labelledby="events-title"><div class="panel-head"><h2 id="events-title">Transition log</h2><span id="count"></span></div>
|
| 33 |
+
<table id="event-table"><thead><tr><th scope="col">Time</th><th scope="col">Subscriber</th><th scope="col">Transition</th></tr></thead><tbody id="log"></tbody></table><p class="empty" id="empty"></p>
|
| 34 |
+
</section>
|
| 35 |
+
<p class="note">The first heartbeat arms every subscriber. A deadline that coincides with a heartbeat expires first. Receiving another heartbeat emits a recovery only for subscribers that went stale.</p>
|
| 36 |
+
<section class="details"><h2>Run it on your fleet</h2><p>Pulsefold is a single C++17 header. Feeds that use the same deadlines can share one policy, and a receiver can handle a group of expired readers in one callback. The scale test armed 1,048,576 feeds with 1,024 logical watches each at 34.27 MiB peak process memory.</p><p>Unzip the <a href="https://pulsefold.tancurl3.chatgpt.site/releases/pulsefold-0.1.0.zip">release</a> and run <code>make check live-check</code>. Run <code>make scale</code> to reproduce the fleet test. The <a href="https://pulsefold.tancurl3.chatgpt.site/results.html">benchmark report</a> includes real sensor timestamps and cases where other schedulers win.</p></section>
|
| 37 |
+
<div class="reader-only" id="announcement" role="status"></div>
|
| 38 |
+
</main>
|
| 39 |
+
<script>
|
| 40 |
+
"use strict";
|
| 41 |
+
const endTime = 12;
|
| 42 |
+
const feeds = {
|
| 43 |
+
boundary: [0, 1, 2, 6, 7, 8, 9, 10, 11, 12],
|
| 44 |
+
outage: [0, 1, 2, 10, 11, 12],
|
| 45 |
+
steady: Array.from({length: endTime + 1}, (_, i) => i)
|
| 46 |
+
};
|
| 47 |
+
const readers = [
|
| 48 |
+
{name: "Live router", budget: 2},
|
| 49 |
+
{name: "Coordinator", budget: 4},
|
| 50 |
+
{name: "Dashboard", budget: 7}
|
| 51 |
+
];
|
| 52 |
+
|
| 53 |
+
function framesFor(beats) {
|
| 54 |
+
let lastBeat = null;
|
| 55 |
+
const states = readers.map(() => "pending");
|
| 56 |
+
const frames = [];
|
| 57 |
+
for (let time = 0; time <= endTime; time++) {
|
| 58 |
+
const transitions = [];
|
| 59 |
+
readers.forEach(({budget}, i) => {
|
| 60 |
+
if (states[i] === "fresh" && lastBeat + budget <= time) {
|
| 61 |
+
states[i] = "stale";
|
| 62 |
+
transitions.push({time: lastBeat + budget, reader: i, state: "stale"});
|
| 63 |
+
}
|
| 64 |
+
});
|
| 65 |
+
const beat = beats.includes(time);
|
| 66 |
+
if (beat) {
|
| 67 |
+
states.forEach((state, i) => {
|
| 68 |
+
if (state === "stale") transitions.push({time, reader: i, state: "fresh"});
|
| 69 |
+
states[i] = "fresh";
|
| 70 |
+
});
|
| 71 |
+
lastBeat = time;
|
| 72 |
+
}
|
| 73 |
+
frames.push({time, transitions, beat, states: states.slice()});
|
| 74 |
+
}
|
| 75 |
+
return frames;
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
+
const byId = id => document.getElementById(id);
|
| 79 |
+
const make = (tag, className = "", content = "") => {
|
| 80 |
+
const el = document.createElement(tag);
|
| 81 |
+
if (className) el.className = className;
|
| 82 |
+
el.textContent = content;
|
| 83 |
+
return el;
|
| 84 |
+
};
|
| 85 |
+
const pct = time => 100 * time / endTime + "%";
|
| 86 |
+
let frames = framesFor(feeds.boundary);
|
| 87 |
+
let time = 6;
|
| 88 |
+
let timer = null;
|
| 89 |
+
|
| 90 |
+
function addMarker(track, style, position, title) {
|
| 91 |
+
const mark = make("i", style);
|
| 92 |
+
mark.style.left = pct(position);
|
| 93 |
+
if (title) mark.title = title;
|
| 94 |
+
track.append(mark);
|
| 95 |
+
}
|
| 96 |
+
function makeRow(label, subtitle, track, value) {
|
| 97 |
+
const row = make("div", "chart-row"), name = make("div", "name");
|
| 98 |
+
name.append(make("strong", "", label), make("small", "", subtitle));
|
| 99 |
+
row.append(name, track, value);
|
| 100 |
+
return row;
|
| 101 |
+
}
|
| 102 |
+
function render() {
|
| 103 |
+
const now = frames.slice(0, time + 1);
|
| 104 |
+
const axis = make("div", "chart-row axis"), scale = make("div", "axis-track");
|
| 105 |
+
for (let t = 0; t <= endTime; t += 2) {
|
| 106 |
+
const tick = make("span", "tick", t + "s");
|
| 107 |
+
tick.style.left = pct(t);
|
| 108 |
+
scale.append(tick);
|
| 109 |
+
}
|
| 110 |
+
axis.append(make("span"), scale);
|
| 111 |
+
const feedTrack = make("div", "track");
|
| 112 |
+
const beats = now.filter(f => f.beat);
|
| 113 |
+
beats.forEach(f => addMarker(feedTrack, "beat", f.time, "Heartbeat at " + f.time + " s"));
|
| 114 |
+
addMarker(feedTrack, "cursor", time);
|
| 115 |
+
const rows = [axis, makeRow("Agent heartbeat", "1 Hz nominal", feedTrack, make("span", "feed-count", beats.length + " seen"))];
|
| 116 |
+
readers.forEach((reader, i) => {
|
| 117 |
+
const track = make("div", "track");
|
| 118 |
+
let start = 0;
|
| 119 |
+
for (let t = 1; t <= time; t++) {
|
| 120 |
+
if (now[t].states[i] === now[start].states[i] && t !== time) continue;
|
| 121 |
+
const part = make("div", "segment " + now[start].states[i]);
|
| 122 |
+
part.style.left = pct(start);
|
| 123 |
+
part.style.width = pct(t - start);
|
| 124 |
+
track.append(part);
|
| 125 |
+
start = t;
|
| 126 |
+
}
|
| 127 |
+
now.forEach(frame => {
|
| 128 |
+
const own = frame.transitions.filter(e => e.reader === i);
|
| 129 |
+
if (own.length === 2) addMarker(track, "instant", frame.time, "Stale, then fresh at " + frame.time + " s");
|
| 130 |
+
});
|
| 131 |
+
addMarker(track, "cursor", time);
|
| 132 |
+
const state = now[time].states[i];
|
| 133 |
+
rows.push(makeRow(reader.name, reader.budget + " s budget", track, make("span", "badge " + state, state)));
|
| 134 |
+
});
|
| 135 |
+
byId("chart").replaceChildren(...rows);
|
| 136 |
+
const events = now.flatMap(f => f.transitions);
|
| 137 |
+
const logRows = events.map(e => {
|
| 138 |
+
const row = make("tr");
|
| 139 |
+
row.append(make("td", "", e.time + " s"), make("td", "", readers[e.reader].name), make("td", "state-text " + e.state, e.state === "stale" ? "Went stale" : "Recovered"));
|
| 140 |
+
return row;
|
| 141 |
+
});
|
| 142 |
+
byId("log").replaceChildren(...logRows);
|
| 143 |
+
byId("count").textContent = events.length + (events.length === 1 ? " event" : " events");
|
| 144 |
+
byId("event-table").hidden = events.length === 0;
|
| 145 |
+
byId("empty").hidden = events.length !== 0;
|
| 146 |
+
byId("empty").textContent = "All three subscribers are armed. No deadline has expired.";
|
| 147 |
+
byId("clock").textContent = time + " s / " + endTime + " s";
|
| 148 |
+
byId("play").textContent = timer !== null ? "Pause" : time === endTime ? "Replay" : "Play";
|
| 149 |
+
byId("step").disabled = time === endTime;
|
| 150 |
+
byId("restart").disabled = time === 0 && timer === null;
|
| 151 |
+
const latest = now[time].transitions.map(e => readers[e.reader].name + " " + e.state);
|
| 152 |
+
byId("announcement").textContent = time + " seconds. " + latest.join(". ");
|
| 153 |
+
}
|
| 154 |
+
function pause() {
|
| 155 |
+
if (timer !== null) window.clearInterval(timer);
|
| 156 |
+
timer = null;
|
| 157 |
+
}
|
| 158 |
+
function advance() {
|
| 159 |
+
time = Math.min(time + 1, endTime);
|
| 160 |
+
if (time === endTime) pause();
|
| 161 |
+
render();
|
| 162 |
+
}
|
| 163 |
+
byId("play").addEventListener("click", () => {
|
| 164 |
+
if (timer !== null) pause();
|
| 165 |
+
else {
|
| 166 |
+
if (time === endTime) time = 0;
|
| 167 |
+
timer = window.setInterval(advance, 700);
|
| 168 |
+
}
|
| 169 |
+
render();
|
| 170 |
+
});
|
| 171 |
+
byId("step").addEventListener("click", () => { pause(); advance(); });
|
| 172 |
+
byId("restart").addEventListener("click", () => { pause(); time = 0; render(); });
|
| 173 |
+
byId("scenario").addEventListener("change", event => {
|
| 174 |
+
pause();
|
| 175 |
+
frames = framesFor(feeds[event.target.value]);
|
| 176 |
+
time = 0;
|
| 177 |
+
render();
|
| 178 |
+
});
|
| 179 |
+
render();
|
| 180 |
+
</script>
|
| 181 |
+
</body>
|
| 182 |
+
</html>
|
examples/expected.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
9 0 0 stale
|
| 2 |
+
10 0 0 fresh
|
| 3 |
+
15 0 0 stale
|
| 4 |
+
22 0 1 stale
|
examples/heartbeat.txt
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
0 0
|
| 2 |
+
4 0
|
| 3 |
+
9 tick
|
| 4 |
+
10 0
|
| 5 |
+
22 tick
|
include/pulsefold.hpp
ADDED
|
@@ -0,0 +1,290 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#ifndef PULSEFOLD_HPP
|
| 2 |
+
#define PULSEFOLD_HPP
|
| 3 |
+
|
| 4 |
+
#include <algorithm>
|
| 5 |
+
#include <cstddef>
|
| 6 |
+
#include <cstdint>
|
| 7 |
+
#include <limits>
|
| 8 |
+
#include <optional>
|
| 9 |
+
#include <stdexcept>
|
| 10 |
+
#include <utility>
|
| 11 |
+
#include <vector>
|
| 12 |
+
|
| 13 |
+
namespace pulsefold {
|
| 14 |
+
|
| 15 |
+
// Immutable, nonempty slice of a compiled policy. The view is valid until
|
| 16 |
+
// that policy's owning monitor is destroyed or its storage is replaced.
|
| 17 |
+
class SubscriberView {
|
| 18 |
+
public:
|
| 19 |
+
const std::uint32_t* begin() const noexcept { return first_; }
|
| 20 |
+
const std::uint32_t* end() const noexcept { return first_ + size_; }
|
| 21 |
+
std::size_t size() const noexcept { return size_; }
|
| 22 |
+
private:
|
| 23 |
+
friend class Monitor;
|
| 24 |
+
SubscriberView(const std::uint32_t* first, std::size_t size) noexcept
|
| 25 |
+
: first_(first), size_(size) {}
|
| 26 |
+
const std::uint32_t* first_;
|
| 27 |
+
std::size_t size_;
|
| 28 |
+
};
|
| 29 |
+
|
| 30 |
+
// Single-owner event-time monitor. Drive it in nondecreasing timestamp order.
|
| 31 |
+
// A callback receives (timestamp, feed_id, subscriber_id, fresh) and must
|
| 32 |
+
// neither throw nor reenter the monitor. Valid updates and dispatch allocate no monitor storage.
|
| 33 |
+
// Initially feeds are unknown. Their first observation arms all subscribers
|
| 34 |
+
// silently. A deadline equal to an observation time expires before the refresh.
|
| 35 |
+
// Among simultaneous expiries, order is (feed_id, subscriber_id). Recoveries
|
| 36 |
+
// for one observation are emitted in (TTL, subscriber_id) order.
|
| 37 |
+
class Monitor {
|
| 38 |
+
public:
|
| 39 |
+
using Config = std::vector<std::vector<std::uint64_t>>;
|
| 40 |
+
|
| 41 |
+
// In this form a feed's index is also its policy index.
|
| 42 |
+
explicit Monitor(const Config& per_feed_ttls) {
|
| 43 |
+
compile(per_feed_ttls);
|
| 44 |
+
feeds_.reserve(policies_.size());
|
| 45 |
+
for (std::size_t i = 0; i < policies_.size(); ++i) {
|
| 46 |
+
feeds_.push_back(Feed{0, static_cast<std::uint32_t>(i), 0});
|
| 47 |
+
}
|
| 48 |
+
build_tiles();
|
| 49 |
+
}
|
| 50 |
+
|
| 51 |
+
// Each policy lists TTLs in subscriber-ID order. Share a policy across
|
| 52 |
+
// feeds to store its thresholds and subscribers just once.
|
| 53 |
+
Monitor(const Config& policies, const std::vector<std::uint32_t>& feed_policy_ids) {
|
| 54 |
+
compile(policies);
|
| 55 |
+
check_size(feed_policy_ids.size());
|
| 56 |
+
feeds_.reserve(feed_policy_ids.size());
|
| 57 |
+
for (const auto id : feed_policy_ids) {
|
| 58 |
+
if (id >= policies_.size()) throw std::out_of_range("unknown policy ID");
|
| 59 |
+
feeds_.push_back(Feed{0, id, 0});
|
| 60 |
+
}
|
| 61 |
+
build_tiles();
|
| 62 |
+
}
|
| 63 |
+
|
| 64 |
+
Monitor(const Monitor&) = delete;
|
| 65 |
+
Monitor& operator=(const Monitor&) = delete;
|
| 66 |
+
Monitor(Monitor&& other) noexcept { *this = std::move(other); }
|
| 67 |
+
Monitor& operator=(Monitor&& other) noexcept {
|
| 68 |
+
if (this == &other) return *this;
|
| 69 |
+
policies_ = std::move(other.policies_);
|
| 70 |
+
feeds_ = std::move(other.feeds_);
|
| 71 |
+
tiles_ = std::move(other.tiles_);
|
| 72 |
+
armed_ = std::exchange(other.armed_, 0);
|
| 73 |
+
earliest_ = std::exchange(other.earliest_, inf);
|
| 74 |
+
watermark_ = std::exchange(other.watermark_, 0);
|
| 75 |
+
return *this;
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
+
// Earliest scheduled check. A healthy refresh can postpone the actual
|
| 79 |
+
// deadline, so this hint may cause an early wake but never a late wake.
|
| 80 |
+
// Empty means no currently armed, representable check.
|
| 81 |
+
std::optional<std::uint64_t> next_wake() const noexcept {
|
| 82 |
+
if (!armed_) return std::nullopt;
|
| 83 |
+
return earliest_;
|
| 84 |
+
}
|
| 85 |
+
|
| 86 |
+
template <class Emit>
|
| 87 |
+
void observe(std::uint32_t id, std::uint64_t now, Emit&& emit) {
|
| 88 |
+
observe_groups(id, now, [&](auto time, auto feed, SubscriberView group, bool fresh) {
|
| 89 |
+
for (auto subscriber : group) emit(time, feed, subscriber, fresh);
|
| 90 |
+
});
|
| 91 |
+
}
|
| 92 |
+
|
| 93 |
+
template <class Emit>
|
| 94 |
+
void advance(std::uint64_t now, Emit&& emit) {
|
| 95 |
+
advance_groups(now, [&](auto time, auto feed, SubscriberView group, bool fresh) {
|
| 96 |
+
for (auto subscriber : group) emit(time, feed, subscriber, fresh);
|
| 97 |
+
});
|
| 98 |
+
}
|
| 99 |
+
|
| 100 |
+
// The grouped API avoids expanding member IDs: one immutable view per
|
| 101 |
+
// expired TTL group, or one contiguous prefix for an observed recovery.
|
| 102 |
+
template <class Emit>
|
| 103 |
+
void observe_groups(std::uint32_t id, std::uint64_t now, Emit&& emit) {
|
| 104 |
+
if (id >= feeds_.size()) throw std::out_of_range("unknown feed ID");
|
| 105 |
+
advance_groups(now, emit);
|
| 106 |
+
auto& feed = feeds_[id];
|
| 107 |
+
// Renewing a healthy feed can only move its deadline later. Replace
|
| 108 |
+
// one exact leaf and let earlier ancestor hints stand until a check.
|
| 109 |
+
if (feed.cursor == 0 && feed.first_ttl) {
|
| 110 |
+
const auto ttl = feed.first_ttl;
|
| 111 |
+
if (fits(now, ttl)) {
|
| 112 |
+
tiles_[0][id] = now + ttl;
|
| 113 |
+
} else {
|
| 114 |
+
feed.first_ttl = 0;
|
| 115 |
+
--armed_;
|
| 116 |
+
tiles_[0][id] = inf;
|
| 117 |
+
}
|
| 118 |
+
return;
|
| 119 |
+
}
|
| 120 |
+
const auto& policy = policies_[feed.policy];
|
| 121 |
+
if (policy.groups.empty()) return;
|
| 122 |
+
if (feed.cursor != 0) {
|
| 123 |
+
const auto count = policy.groups[feed.cursor - 1].end;
|
| 124 |
+
emit(now, id, SubscriberView{policy.members.data(), count}, true);
|
| 125 |
+
feed.cursor = 0;
|
| 126 |
+
}
|
| 127 |
+
|
| 128 |
+
const auto ttl = policy.groups.front().ttl;
|
| 129 |
+
if (!fits(now, ttl)) {
|
| 130 |
+
if (feed.first_ttl) {
|
| 131 |
+
--armed_;
|
| 132 |
+
feed.first_ttl = 0;
|
| 133 |
+
}
|
| 134 |
+
tiles_[0][id] = inf;
|
| 135 |
+
return;
|
| 136 |
+
}
|
| 137 |
+
if (!feed.first_ttl) {
|
| 138 |
+
++armed_;
|
| 139 |
+
feed.first_ttl = ttl;
|
| 140 |
+
}
|
| 141 |
+
const auto due = now + ttl;
|
| 142 |
+
earliest_ = std::min(earliest_, due);
|
| 143 |
+
tiles_[0][id] = due;
|
| 144 |
+
// A new feed or a recovery can bring a deadline forward. Correct
|
| 145 |
+
// ancestors only as far as their lower bounds would be too late.
|
| 146 |
+
std::size_t tile = id;
|
| 147 |
+
for (std::size_t level = 1; level < tiles_.size(); ++level) {
|
| 148 |
+
tile /= lanes;
|
| 149 |
+
auto& hint = tiles_[level][tile];
|
| 150 |
+
if (due >= hint) break;
|
| 151 |
+
hint = due;
|
| 152 |
+
}
|
| 153 |
+
}
|
| 154 |
+
|
| 155 |
+
template <class Emit>
|
| 156 |
+
void advance_groups(std::uint64_t now, Emit&& emit) {
|
| 157 |
+
if (now == watermark_) return;
|
| 158 |
+
if (now < watermark_) throw std::invalid_argument("time moved backwards");
|
| 159 |
+
watermark_ = now;
|
| 160 |
+
if (now < earliest_ || (!armed_ && earliest_ == inf)) return;
|
| 161 |
+
const std::size_t root = tiles_.size() - 1;
|
| 162 |
+
auto earliest = earliest_ == now && armed_ ? now : repair(root, 0, now);
|
| 163 |
+
while (armed_ && earliest <= now) {
|
| 164 |
+
earliest = fire(root, 0, earliest, emit);
|
| 165 |
+
}
|
| 166 |
+
earliest_ = earliest;
|
| 167 |
+
}
|
| 168 |
+
|
| 169 |
+
private:
|
| 170 |
+
struct Group { std::uint64_t ttl; std::uint32_t end; };
|
| 171 |
+
struct Policy {
|
| 172 |
+
std::vector<Group> groups;
|
| 173 |
+
std::vector<std::uint32_t> members;
|
| 174 |
+
};
|
| 175 |
+
struct Feed {
|
| 176 |
+
std::uint64_t first_ttl; // Zero when no representable deadline is armed.
|
| 177 |
+
std::uint32_t policy;
|
| 178 |
+
std::uint32_t cursor; // Length of the stale prefix, measured in TTL groups.
|
| 179 |
+
};
|
| 180 |
+
|
| 181 |
+
std::vector<Policy> policies_;
|
| 182 |
+
std::vector<Feed> feeds_;
|
| 183 |
+
static constexpr std::size_t lanes = 16;
|
| 184 |
+
static constexpr auto inf = std::numeric_limits<std::uint64_t>::max();
|
| 185 |
+
// Level zero holds exact deadlines. Each higher entry is a conservative
|
| 186 |
+
// minimum for a contiguous tile of its children. A full tile has 16 lanes.
|
| 187 |
+
std::vector<std::vector<std::uint64_t>> tiles_;
|
| 188 |
+
std::size_t armed_ = 0;
|
| 189 |
+
std::uint64_t earliest_ = inf;
|
| 190 |
+
void build_tiles() {
|
| 191 |
+
auto count = std::max<std::size_t>(feeds_.size(), 1);
|
| 192 |
+
tiles_.emplace_back(count, inf);
|
| 193 |
+
do {
|
| 194 |
+
count = 1 + (count - 1) / lanes;
|
| 195 |
+
tiles_.emplace_back(count, inf);
|
| 196 |
+
} while (count > 1);
|
| 197 |
+
}
|
| 198 |
+
std::uint64_t watermark_ = 0;
|
| 199 |
+
|
| 200 |
+
static void check_size(std::size_t size) {
|
| 201 |
+
if (size > std::numeric_limits<std::uint32_t>::max())
|
| 202 |
+
throw std::length_error("configuration exceeds 32-bit index space");
|
| 203 |
+
}
|
| 204 |
+
|
| 205 |
+
void compile(const Config& policies) {
|
| 206 |
+
check_size(policies.size());
|
| 207 |
+
policies_.reserve(policies.size());
|
| 208 |
+
for (const auto& ttls : policies) {
|
| 209 |
+
check_size(ttls.size());
|
| 210 |
+
auto& policy = policies_.emplace_back();
|
| 211 |
+
policy.members.reserve(ttls.size());
|
| 212 |
+
for (std::size_t i = 0; i < ttls.size(); ++i) {
|
| 213 |
+
if (ttls[i] == 0) throw std::invalid_argument("TTL must be positive");
|
| 214 |
+
policy.members.push_back(static_cast<std::uint32_t>(i));
|
| 215 |
+
}
|
| 216 |
+
std::sort(policy.members.begin(), policy.members.end(),
|
| 217 |
+
[&](auto a, auto b) {
|
| 218 |
+
return ttls[a] == ttls[b] ? a < b : ttls[a] < ttls[b];
|
| 219 |
+
});
|
| 220 |
+
for (std::uint32_t i = 0; i < policy.members.size(); ++i) {
|
| 221 |
+
const auto ttl = ttls[policy.members[i]];
|
| 222 |
+
if (policy.groups.empty() || policy.groups.back().ttl != ttl)
|
| 223 |
+
policy.groups.push_back(Group{ttl, i + 1});
|
| 224 |
+
else
|
| 225 |
+
policy.groups.back().end = i + 1;
|
| 226 |
+
}
|
| 227 |
+
}
|
| 228 |
+
}
|
| 229 |
+
|
| 230 |
+
static bool fits(std::uint64_t last, std::uint64_t ttl) noexcept {
|
| 231 |
+
return ttl <= std::numeric_limits<std::uint64_t>::max() - last;
|
| 232 |
+
}
|
| 233 |
+
// A clock jump may pass several obsolete hints. Read only due subtrees
|
| 234 |
+
// and repair their minima before firing the earliest actual deadline.
|
| 235 |
+
std::uint64_t repair(std::size_t level, std::size_t node, std::uint64_t now) {
|
| 236 |
+
const auto& children = tiles_[level - 1];
|
| 237 |
+
const auto first = node * lanes;
|
| 238 |
+
const auto end = std::min(first + lanes, children.size());
|
| 239 |
+
auto result = inf;
|
| 240 |
+
if (level == 1) {
|
| 241 |
+
for (auto i = first; i < end; ++i) result = std::min(result, children[i]);
|
| 242 |
+
} else {
|
| 243 |
+
for (auto i = first; i < end; ++i) {
|
| 244 |
+
const auto v = children[i] <= now ? repair(level - 1, i, now) : children[i];
|
| 245 |
+
result = std::min(result, v);
|
| 246 |
+
}
|
| 247 |
+
}
|
| 248 |
+
return tiles_[level][node] = result;
|
| 249 |
+
}
|
| 250 |
+
// Left-to-right visitation yields ascending feed IDs for all ties.
|
| 251 |
+
template<class Emit>
|
| 252 |
+
std::uint64_t fire(std::size_t level, std::size_t node, std::uint64_t when, Emit& emit) {
|
| 253 |
+
auto& children = tiles_[level - 1];
|
| 254 |
+
const auto first = node * lanes;
|
| 255 |
+
const auto end = std::min(first + lanes, children.size());
|
| 256 |
+
auto result = inf;
|
| 257 |
+
for (auto i = first; i < end; ++i) {
|
| 258 |
+
auto value = children[i];
|
| 259 |
+
if (value == when) {
|
| 260 |
+
if (level > 1) {
|
| 261 |
+
value = fire(level - 1, i, when, emit);
|
| 262 |
+
} else if (feeds_[i].first_ttl) {
|
| 263 |
+
auto& feed = feeds_[i];
|
| 264 |
+
const auto& policy = policies_[feed.policy];
|
| 265 |
+
const auto origin = when - policy.groups[feed.cursor].ttl;
|
| 266 |
+
const auto end_id = policy.groups[feed.cursor].end;
|
| 267 |
+
const auto start_id = feed.cursor ? policy.groups[feed.cursor - 1].end : 0;
|
| 268 |
+
emit(when, static_cast<std::uint32_t>(i),
|
| 269 |
+
SubscriberView{policy.members.data() + start_id, end_id - start_id}, false);
|
| 270 |
+
++feed.cursor;
|
| 271 |
+
if (feed.cursor == policy.groups.size() ||
|
| 272 |
+
!fits(origin, policy.groups[feed.cursor].ttl)) {
|
| 273 |
+
--armed_;
|
| 274 |
+
feed.first_ttl = 0;
|
| 275 |
+
value = inf;
|
| 276 |
+
} else {
|
| 277 |
+
value = origin + policy.groups[feed.cursor].ttl;
|
| 278 |
+
}
|
| 279 |
+
children[i] = value;
|
| 280 |
+
}
|
| 281 |
+
}
|
| 282 |
+
result = std::min(result, value);
|
| 283 |
+
}
|
| 284 |
+
return tiles_[level][node] = result;
|
| 285 |
+
}
|
| 286 |
+
};
|
| 287 |
+
|
| 288 |
+
} // namespace pulsefold
|
| 289 |
+
|
| 290 |
+
#endif
|
index.html
CHANGED
|
@@ -1,19 +1,182 @@
|
|
| 1 |
<!doctype html>
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
</html>
|
|
|
|
| 1 |
<!doctype html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="utf-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
| 6 |
+
<meta name="description" content="Pulsefold is a C++17 heartbeat freshness monitor for large agent fleets. Try the live timeline, download the source and reproduce its billion-watch benchmark.">
|
| 7 |
+
<meta name="theme-color" content="#f7f7f2">
|
| 8 |
+
<title>Pulsefold · Heartbeat replay</title>
|
| 9 |
+
<style>
|
| 10 |
+
:root{color-scheme:light;--paper:#f7f7f2;--ink:#152119;--muted:#556159;--line:#ced5c9;--white:#fff;--green:#236147;--green-light:#bfe2c5;--red:#993e24;--red-light:#f5b89e;--mono:"IBM Plex Mono",ui-monospace,SFMono-Regular,Consolas,monospace;--sans:"Instrument Sans",Inter,system-ui,sans-serif}
|
| 11 |
+
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);line-height:1.5}main{max-width:1040px;margin:auto;padding:26px 36px 64px}header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:18px}.brand{display:inline-flex;gap:9px;align-items:center;font-size:20px;font-weight:750;letter-spacing:-.05em}.brand svg{color:var(--green)}button,select{font:inherit;color:inherit;background:var(--white)}button,select{border:1px solid #aab5a9;border-radius:7px;min-height:40px;padding:7px 12px}button{cursor:pointer;font-weight:600}button:hover:not(:disabled),select:hover{border-color:var(--green);background:#f4faf3}button:disabled{cursor:default;opacity:.44}button:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #276cb3;outline-offset:3px}button.primary{background:var(--green);border-color:var(--green);color:white}button.primary:hover:not(:disabled){background:#184a33}h1{font-size:clamp(34px,5.6vw,62px);line-height:1.04;letter-spacing:-.065em;margin:0 0 13px}h2{font-size:21px;letter-spacing:-.045em;margin:0}.intro{padding:34px 0 26px}.intro p{font-size:17px;max-width:60ch;margin:0;color:var(--muted)}.panel{background:var(--white);border:1px solid var(--line);border-radius:14px;overflow:hidden}.toolbar,.panel-head,.panel-foot{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.toolbar{padding:16px 20px;border-bottom:1px solid var(--line);background:#f1f4ed}.scenario,.actions{display:flex;align-items:center;gap:8px}.scenario label{font-size:14px;font-weight:650}.panel-head{padding:24px 22px 8px}.clock{font-family:var(--mono);font-size:14px;color:var(--green);font-weight:650}.chart{padding:10px 22px 22px;--names:148px;--state:70px}.chart-row{display:grid;grid-template-columns:var(--names) minmax(0,1fr) var(--state);align-items:center;column-gap:12px;min-height:55px;border-top:1px solid #e6eae2}.chart-row.axis{border-top:0;min-height:32px}.name strong,.name small{display:block}.name strong{font-size:14px}.name small{font-size:12px;color:var(--muted)}.axis-track,.track{position:relative}.axis-track{height:22px}.tick{position:absolute;transform:translateX(-50%);top:0;color:var(--muted);font:11px/22px var(--mono)}.tick:first-child{transform:none}.tick:last-child{transform:translateX(-100%)}.track{height:20px;background:#f3f5f0;border-radius:3px}.track:before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(90deg,transparent 0 calc(16.6667% - 1px),#dce2d8 calc(16.6667% - 1px) 16.6667%)}.segment{position:absolute;top:2px;bottom:2px}.segment.fresh{background:var(--green-light)}.segment.stale{background:repeating-linear-gradient(135deg,var(--red-light) 0 4px,#f9c9b7 4px 6px)}.beat,.cursor,.instant{position:absolute;transform:translateX(-50%)}.beat{top:5px;width:4px;height:10px;background:#2f4535;border-radius:1px}.cursor{top:-5px;bottom:-5px;width:2px;background:#172a1e}.instant{top:6px;width:8px;height:8px;transform:translateX(-50%) rotate(45deg);background:#a14526;border:1px solid white;z-index:1}.badge{justify-self:end;font:600 10px/1.4 var(--mono);letter-spacing:.03em;text-transform:uppercase;border-radius:4px;padding:4px 7px}.badge.fresh{background:#e5f3e3;color:#245a36}.badge.stale{background:#fff0e9;color:#823c27}.feed-count{justify-self:end;color:var(--muted);font:12px var(--mono)}.panel-foot{border-top:1px solid var(--line);padding:13px 22px;color:var(--muted);font-size:12px}.legend{display:flex;gap:14px;flex-wrap:wrap}.legend span{display:inline-flex;align-items:center;gap:5px}.key{display:inline-block;width:13px;height:9px;border-radius:1px}.key.fresh{background:var(--green-light)}.key.stale{background:repeating-linear-gradient(135deg,var(--red-light) 0 3px,#f9c9b7 3px 5px)}.key.instant-key{width:7px;height:7px;transform:rotate(45deg);background:#a14526}.events{margin-top:23px}.events .panel-head{padding:16px 22px}.events .panel-head span{font:12px var(--mono);color:var(--muted)}table{width:100%;border-collapse:collapse;text-align:left;font-size:14px}th,td{padding:8px 22px;border-top:1px solid #e4e8df}th{font-size:12px;font-weight:600;color:var(--muted);background:#fafbf8}td:first-child{font-family:var(--mono);white-space:nowrap}.state-text{font-weight:650}.state-text.stale{color:var(--red)}.state-text.fresh{color:var(--green)}.empty{margin:0;padding:14px 22px 20px;color:var(--muted);font-size:14px}.note{color:var(--muted);font-size:13px;max-width:88ch;margin:14px 2px}.reader-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}[hidden]{display:none!important}
|
| 12 |
+
@media(max-width:670px){main{padding:18px 14px 40px}.intro{padding:25px 0 20px}.toolbar{padding:12px;gap:10px}.scenario,.actions{flex-wrap:wrap}.panel-head,.events .panel-head{padding:16px 12px 7px}.chart{padding:7px 12px 15px;--names:101px;--state:47px}.chart-row{column-gap:7px;min-height:50px}.name strong{font-size:12px}.name small{font-size:11px}.badge{font-size:9px;padding:3px 4px}.panel-foot{padding:12px}.events{margin-top:15px}.events .panel-head{padding-bottom:12px}th,td{padding:8px 12px}.intro p{font-size:15px}.empty{padding:12px}.scenario label{font-size:13px}}
|
| 13 |
+
|
| 14 |
+
.release-links{display:flex;gap:.45rem 1rem;flex-wrap:wrap;align-items:center;font-size:.95rem}.release-links a,.details a{color:var(--green);text-decoration:underline;text-underline-offset:.2em}.release-links a:focus-visible,.details a:focus-visible{outline:3px solid var(--green);outline-offset:3px}
|
| 15 |
+
.details{margin:2.2rem 0 0;border-top:1px solid var(--line);padding-top:1.2rem}.details p{max-width:75ch}.details code{font-family:var(--mono);overflow-wrap:anywhere}
|
| 16 |
+
@media(max-width:620px){header{flex-wrap:wrap;gap:.65rem}}
|
| 17 |
+
</style>
|
| 18 |
+
</head>
|
| 19 |
+
<body>
|
| 20 |
+
<main>
|
| 21 |
+
<header><div class="brand"><svg width="29" height="25" viewBox="0 0 29 25" fill="none" aria-hidden="true"><path d="M1 14h6l4-10 6 17 4-10 2 3h5" stroke="currentColor" stroke-width="2.8" stroke-linejoin="round"/></svg>Pulsefold</div><nav class="release-links" aria-label="Release"><a href="https://pulsefold.tancurl3.chatgpt.site/releases/pulsefold-0.1.0.zip">Download source</a><a href="https://pulsefold.tancurl3.chatgpt.site/results.html">Benchmarks</a></nav></header>
|
| 22 |
+
<section class="intro"><h1>Heartbeat replay</h1><p>Three subscribers watch one agent. Each chooses how long it can wait for the next heartbeat before the feed goes stale.</p></section>
|
| 23 |
+
<section class="panel" aria-labelledby="timeline-title">
|
| 24 |
+
<div class="toolbar">
|
| 25 |
+
<div class="scenario"><label for="scenario">Feed</label><select id="scenario"><option value="boundary">Four-second gap</option><option value="outage">Long outage</option><option value="steady">Steady heartbeat</option></select></div>
|
| 26 |
+
<div class="actions"><button type="button" id="restart">Reset</button><button type="button" id="play" class="primary">Play</button><button type="button" id="step">Step +1 s</button></div>
|
| 27 |
+
</div>
|
| 28 |
+
<div class="panel-head"><h2 id="timeline-title">Subscriber freshness</h2><output class="clock" id="clock"></output></div>
|
| 29 |
+
<div class="chart" id="chart"></div>
|
| 30 |
+
<div class="panel-foot"><div class="legend"><span><i class="key fresh"></i>Fresh</span><span><i class="key stale"></i>Stale</span><span><i class="key instant-key"></i>Expired and renewed together</span></div></div>
|
| 31 |
+
</section>
|
| 32 |
+
<section class="panel events" aria-labelledby="events-title"><div class="panel-head"><h2 id="events-title">Transition log</h2><span id="count"></span></div>
|
| 33 |
+
<table id="event-table"><thead><tr><th scope="col">Time</th><th scope="col">Subscriber</th><th scope="col">Transition</th></tr></thead><tbody id="log"></tbody></table><p class="empty" id="empty"></p>
|
| 34 |
+
</section>
|
| 35 |
+
<p class="note">The first heartbeat arms every subscriber. A deadline that coincides with a heartbeat expires first. Receiving another heartbeat emits a recovery only for subscribers that went stale.</p>
|
| 36 |
+
<section class="details"><h2>Run it on your fleet</h2><p>Pulsefold is a single C++17 header. Feeds that use the same deadlines can share one policy, and a receiver can handle a group of expired readers in one callback. The scale test armed 1,048,576 feeds with 1,024 logical watches each at 34.27 MiB peak process memory.</p><p>Unzip the <a href="https://pulsefold.tancurl3.chatgpt.site/releases/pulsefold-0.1.0.zip">release</a> and run <code>make check live-check</code>. Run <code>make scale</code> to reproduce the fleet test. The <a href="https://pulsefold.tancurl3.chatgpt.site/results.html">benchmark report</a> includes real sensor timestamps and cases where other schedulers win.</p></section>
|
| 37 |
+
<div class="reader-only" id="announcement" role="status"></div>
|
| 38 |
+
</main>
|
| 39 |
+
<script>
|
| 40 |
+
"use strict";
|
| 41 |
+
const endTime = 12;
|
| 42 |
+
const feeds = {
|
| 43 |
+
boundary: [0, 1, 2, 6, 7, 8, 9, 10, 11, 12],
|
| 44 |
+
outage: [0, 1, 2, 10, 11, 12],
|
| 45 |
+
steady: Array.from({length: endTime + 1}, (_, i) => i)
|
| 46 |
+
};
|
| 47 |
+
const readers = [
|
| 48 |
+
{name: "Live router", budget: 2},
|
| 49 |
+
{name: "Coordinator", budget: 4},
|
| 50 |
+
{name: "Dashboard", budget: 7}
|
| 51 |
+
];
|
| 52 |
+
|
| 53 |
+
function framesFor(beats) {
|
| 54 |
+
let lastBeat = null;
|
| 55 |
+
const states = readers.map(() => "pending");
|
| 56 |
+
const frames = [];
|
| 57 |
+
for (let time = 0; time <= endTime; time++) {
|
| 58 |
+
const transitions = [];
|
| 59 |
+
readers.forEach(({budget}, i) => {
|
| 60 |
+
if (states[i] === "fresh" && lastBeat + budget <= time) {
|
| 61 |
+
states[i] = "stale";
|
| 62 |
+
transitions.push({time: lastBeat + budget, reader: i, state: "stale"});
|
| 63 |
+
}
|
| 64 |
+
});
|
| 65 |
+
const beat = beats.includes(time);
|
| 66 |
+
if (beat) {
|
| 67 |
+
states.forEach((state, i) => {
|
| 68 |
+
if (state === "stale") transitions.push({time, reader: i, state: "fresh"});
|
| 69 |
+
states[i] = "fresh";
|
| 70 |
+
});
|
| 71 |
+
lastBeat = time;
|
| 72 |
+
}
|
| 73 |
+
frames.push({time, transitions, beat, states: states.slice()});
|
| 74 |
+
}
|
| 75 |
+
return frames;
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
+
const byId = id => document.getElementById(id);
|
| 79 |
+
const make = (tag, className = "", content = "") => {
|
| 80 |
+
const el = document.createElement(tag);
|
| 81 |
+
if (className) el.className = className;
|
| 82 |
+
el.textContent = content;
|
| 83 |
+
return el;
|
| 84 |
+
};
|
| 85 |
+
const pct = time => 100 * time / endTime + "%";
|
| 86 |
+
let frames = framesFor(feeds.boundary);
|
| 87 |
+
let time = 6;
|
| 88 |
+
let timer = null;
|
| 89 |
+
|
| 90 |
+
function addMarker(track, style, position, title) {
|
| 91 |
+
const mark = make("i", style);
|
| 92 |
+
mark.style.left = pct(position);
|
| 93 |
+
if (title) mark.title = title;
|
| 94 |
+
track.append(mark);
|
| 95 |
+
}
|
| 96 |
+
function makeRow(label, subtitle, track, value) {
|
| 97 |
+
const row = make("div", "chart-row"), name = make("div", "name");
|
| 98 |
+
name.append(make("strong", "", label), make("small", "", subtitle));
|
| 99 |
+
row.append(name, track, value);
|
| 100 |
+
return row;
|
| 101 |
+
}
|
| 102 |
+
function render() {
|
| 103 |
+
const now = frames.slice(0, time + 1);
|
| 104 |
+
const axis = make("div", "chart-row axis"), scale = make("div", "axis-track");
|
| 105 |
+
for (let t = 0; t <= endTime; t += 2) {
|
| 106 |
+
const tick = make("span", "tick", t + "s");
|
| 107 |
+
tick.style.left = pct(t);
|
| 108 |
+
scale.append(tick);
|
| 109 |
+
}
|
| 110 |
+
axis.append(make("span"), scale);
|
| 111 |
+
const feedTrack = make("div", "track");
|
| 112 |
+
const beats = now.filter(f => f.beat);
|
| 113 |
+
beats.forEach(f => addMarker(feedTrack, "beat", f.time, "Heartbeat at " + f.time + " s"));
|
| 114 |
+
addMarker(feedTrack, "cursor", time);
|
| 115 |
+
const rows = [axis, makeRow("Agent heartbeat", "1 Hz nominal", feedTrack, make("span", "feed-count", beats.length + " seen"))];
|
| 116 |
+
readers.forEach((reader, i) => {
|
| 117 |
+
const track = make("div", "track");
|
| 118 |
+
let start = 0;
|
| 119 |
+
for (let t = 1; t <= time; t++) {
|
| 120 |
+
if (now[t].states[i] === now[start].states[i] && t !== time) continue;
|
| 121 |
+
const part = make("div", "segment " + now[start].states[i]);
|
| 122 |
+
part.style.left = pct(start);
|
| 123 |
+
part.style.width = pct(t - start);
|
| 124 |
+
track.append(part);
|
| 125 |
+
start = t;
|
| 126 |
+
}
|
| 127 |
+
now.forEach(frame => {
|
| 128 |
+
const own = frame.transitions.filter(e => e.reader === i);
|
| 129 |
+
if (own.length === 2) addMarker(track, "instant", frame.time, "Stale, then fresh at " + frame.time + " s");
|
| 130 |
+
});
|
| 131 |
+
addMarker(track, "cursor", time);
|
| 132 |
+
const state = now[time].states[i];
|
| 133 |
+
rows.push(makeRow(reader.name, reader.budget + " s budget", track, make("span", "badge " + state, state)));
|
| 134 |
+
});
|
| 135 |
+
byId("chart").replaceChildren(...rows);
|
| 136 |
+
const events = now.flatMap(f => f.transitions);
|
| 137 |
+
const logRows = events.map(e => {
|
| 138 |
+
const row = make("tr");
|
| 139 |
+
row.append(make("td", "", e.time + " s"), make("td", "", readers[e.reader].name), make("td", "state-text " + e.state, e.state === "stale" ? "Went stale" : "Recovered"));
|
| 140 |
+
return row;
|
| 141 |
+
});
|
| 142 |
+
byId("log").replaceChildren(...logRows);
|
| 143 |
+
byId("count").textContent = events.length + (events.length === 1 ? " event" : " events");
|
| 144 |
+
byId("event-table").hidden = events.length === 0;
|
| 145 |
+
byId("empty").hidden = events.length !== 0;
|
| 146 |
+
byId("empty").textContent = "All three subscribers are armed. No deadline has expired.";
|
| 147 |
+
byId("clock").textContent = time + " s / " + endTime + " s";
|
| 148 |
+
byId("play").textContent = timer !== null ? "Pause" : time === endTime ? "Replay" : "Play";
|
| 149 |
+
byId("step").disabled = time === endTime;
|
| 150 |
+
byId("restart").disabled = time === 0 && timer === null;
|
| 151 |
+
const latest = now[time].transitions.map(e => readers[e.reader].name + " " + e.state);
|
| 152 |
+
byId("announcement").textContent = time + " seconds. " + latest.join(". ");
|
| 153 |
+
}
|
| 154 |
+
function pause() {
|
| 155 |
+
if (timer !== null) window.clearInterval(timer);
|
| 156 |
+
timer = null;
|
| 157 |
+
}
|
| 158 |
+
function advance() {
|
| 159 |
+
time = Math.min(time + 1, endTime);
|
| 160 |
+
if (time === endTime) pause();
|
| 161 |
+
render();
|
| 162 |
+
}
|
| 163 |
+
byId("play").addEventListener("click", () => {
|
| 164 |
+
if (timer !== null) pause();
|
| 165 |
+
else {
|
| 166 |
+
if (time === endTime) time = 0;
|
| 167 |
+
timer = window.setInterval(advance, 700);
|
| 168 |
+
}
|
| 169 |
+
render();
|
| 170 |
+
});
|
| 171 |
+
byId("step").addEventListener("click", () => { pause(); advance(); });
|
| 172 |
+
byId("restart").addEventListener("click", () => { pause(); time = 0; render(); });
|
| 173 |
+
byId("scenario").addEventListener("change", event => {
|
| 174 |
+
pause();
|
| 175 |
+
frames = framesFor(feeds[event.target.value]);
|
| 176 |
+
time = 0;
|
| 177 |
+
render();
|
| 178 |
+
});
|
| 179 |
+
render();
|
| 180 |
+
</script>
|
| 181 |
+
</body>
|
| 182 |
</html>
|
llms.txt
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Pulsefold
|
| 2 |
+
|
| 3 |
+
> A dependency-free C++17 monitor for heartbeat freshness. Each feed can have many subscribers with different deadlines. Repeated deadline policies can share storage across a fleet.
|
| 4 |
+
|
| 5 |
+
- [Interactive example](https://pulsefold.tancurl3.chatgpt.site/): Advance a heartbeat timeline and inspect expiry and recovery order.
|
| 6 |
+
- [C++17 header](https://pulsefold.tancurl3.chatgpt.site/pulsefold.hpp): Embed the monitor, or use a grouped callback to hand off an immutable subscriber list.
|
| 7 |
+
- [Buildable release](https://pulsefold.tancurl3.chatgpt.site/releases/pulsefold-0.1.0.zip): Offline source, CLI, POSIX live adapter, tests, real sensor trace and competing schedulers. Unzip, change into pulsefold-0.1.0, and run make check live-check.
|
| 8 |
+
- [Usage and event contract](https://pulsefold.tancurl3.chatgpt.site/README.md): Monotonic event time, first observation, equal-time expiries and shared-policy lifetimes.
|
| 9 |
+
- [Results in Markdown](https://pulsefold.tancurl3.chatgpt.site/REPORT.md): Hardware, cases where other schedulers were faster, and the cost of representing vs delivering a transition.
|
| 10 |
+
- [Raw scalar measurements](https://pulsefold.tancurl3.chatgpt.site/synthetic.csv)
|
| 11 |
+
- [Recorded sensor replay](https://pulsefold.tancurl3.chatgpt.site/sensor.csv)
|
| 12 |
+
- [Grouped measurements](https://pulsefold.tancurl3.chatgpt.site/grouped.csv)
|
| 13 |
+
- [Release metadata and checksum](https://pulsefold.tancurl3.chatgpt.site/release.json)
|
| 14 |
+
|
| 15 |
+
Typical evaluation questions include how to watch a shared feed on several timeouts, how to verify expiry before a same-tick renewal, and how a scan compares with an index at different fleet sizes. Network delivery and end-to-end agent latency require separate measurement.
|
releases/pulsefold-0.1.0.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c39cf9b88c47e39bc879bee13bbe92e321ac36eab73cb506c556908bdcd3cf11
|
| 3 |
+
size 128789
|
results/REPORT.md
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Pulsefold benchmark results
|
| 2 |
+
|
| 3 |
+
On one pinned CPU, Pulsefold represented 1,073,741,824 feed–subscriber relationships at a median **34.27 MiB** process high-water mark. Expiring every feed produced **2,097,160 callbacks** and took **18.65 ms** including validation. A grouped callback passes an immutable slice of subscriber IDs. Sending to each subscriber would add downstream work.
|
| 4 |
+
|
| 5 |
+
## Scalar dispatch
|
| 6 |
+
|
| 7 |
+
Each cell gives median wall-clock nanoseconds per input operation across repeated runs. Operations are observations or watermark advances. The factor divides the fastest competing median by Pulsefold’s median, using the underlying unrounded values. Above 1.00 favors Pulsefold. The last column computes that ratio separately for each seed, first 20261122 and then 73492051. The pooled ratio uses all 20 runs per engine.
|
| 8 |
+
|
| 9 |
+
The eager heap updates one indexed deadline per feed. The cached scan rechecks all feeds when its minimum expires. The lazy and wide radix queues defer checks across renewals and use one-bit and four-bit bucket widths respectively. Each comparator is an implementation in this repository. [Heap, scan, and lazy radix](../bench/baselines.hpp) · [Wide radix](../bench/wide_radix.hpp)
|
| 10 |
+
|
| 11 |
+
| Workload | Pulsefold | Eager heap | Cached scan | Lazy radix | Wide radix | Factor | Factors by seed |
|
| 12 |
+
|---|---:|---:|---:|---:|---:|---:|---:|
|
| 13 |
+
| small | 3.42 | 21.69 | 3.37 | 15.70 | 14.10 | 0.99× | 0.99× / 0.97× |
|
| 14 |
+
| single-subscriber | 4.03 | 27.62 | 3.88 | 17.39 | 14.23 | 0.96× | 0.96× / 0.96× |
|
| 15 |
+
| long-grace | 3.57 | 33.05 | 4.50 | 9.35 | 7.77 | 1.26× | 1.34× / 1.22× |
|
| 16 |
+
| mixed-slo | 25.99 | 46.84 | 910.15 | 36.60 | 31.85 | 1.23× | 1.20× / 1.43× |
|
| 17 |
+
| rotating-outages | 26.88 | 43.38 | 360.94 | 43.03 | 35.60 | 1.32× | 1.36× / 1.38× |
|
| 18 |
+
| high-churn | 439.64 | 748.64 | 635.69 | 533.51 | 448.98 | 1.02× | 1.02× / 1.08× |
|
| 19 |
+
| synchronous-storm | 24.88 | 59.77 | 82.35 | 36.20 | 34.26 | 1.38× | 1.39× / 1.38× |
|
| 20 |
+
| poll-heavy | 1.86 | 5.59 | 1.65 | 8.05 | 6.52 | 0.89× | 0.87× / 0.91× |
|
| 21 |
+
| Intel Berkeley replay | 35.77 | 50.00 | 36.23 | 79.62 | 79.29 | 1.01× | — |
|
| 22 |
+
|
| 23 |
+
Pulsefold had the lowest pooled median in **five of eight** synthetic schedules. Its largest advantage was 1.38× during synchronous outages. The cached scan led on the small, single-subscriber and poll-heavy schedules. The small, single-subscriber, high-churn and recorded sensor results were within 5% of the fastest competing median. Treat those margins as close on this shared host.
|
| 24 |
+
|
| 25 |
+
The recorded sensor workload contains 10,535 timestamped observations from 54 Intel Berkeley motes. The first 1,053 observations warmed each engine. The remaining 9,482 observations produced 4,731 stale and 4,725 fresh scalar callbacks under four experimental freshness budgets of 45, 90, 180 and 600 seconds. Pulsefold measured 35.77 ns/op and feed-scan measured 36.23 ns/op. The 1.01× factor on this trace is a practical tie. [Fixture and provenance](../bench/data/README.md) · [Synthetic runs](synthetic.csv) · [Sensor runs](sensor.csv)
|
| 26 |
+
|
| 27 |
+
## Grouped dispatch
|
| 28 |
+
|
| 29 |
+
All four engines return subscriber slices. The scan caches a conservative next wake. The two radix implementations schedule each distinct TTL and map the result to a shared subscriber slice. They use the same one-bit and four-bit radix queues as the scalar benchmark. Each engine ran eight times per workload, twice in each run-order position. Callback and transition counts cover one measured replay.
|
| 30 |
+
|
| 31 |
+
| Workload | Pulsefold ns/op | Group scan ns/op | Group radix ns/op | Group wide radix ns/op | Factor | Group callbacks | Represented transitions |
|
| 32 |
+
|---|---:|---:|---:|---:|---:|---:|---:|
|
| 33 |
+
| small-healthy | 4.07 | 4.61 | 16.10 | 14.52 | 1.13× | 0 | 0 |
|
| 34 |
+
| large-mixed | 13.48 | 647.54 | 26.55 | 22.89 | 1.70× | 26,695 | 9,998,336 |
|
| 35 |
+
| rotating-outages | 12.39 | 249.25 | 32.19 | 26.31 | 2.12× | 9,216 | 2,097,152 |
|
| 36 |
+
| synchronous-storm | 5.62 | 6.49 | 17.71 | 17.03 | 1.16× | 8,192 | 8,388,608 |
|
| 37 |
+
| all-unique | 36.82 | 193.21 | 81.42 | 64.54 | 1.75× | 66,048 | 131,072 |
|
| 38 |
+
|
| 39 |
+
Pulsefold had the lowest median in all five grouped workloads in the four-engine run. An earlier six-repeat, three-engine run ranked the cached scan first on small-healthy, so the small healthy workload has shown both orderings on this host. Its factor against the fastest competing median was 2.12× on rotating outages and 1.70× on the large mixed-policy fleet. Distinct TTLs still allow a single recovery callback to cover several readers that were already stale. [Grouped runs](grouped.csv)
|
| 40 |
+
|
| 41 |
+
## Full-fleet outage
|
| 42 |
+
|
| 43 |
+
Each run starts a new process, compiles two shared policies, arms every feed, and renews every feed in a seeded shuffle. A four-feed cohort expires and recovers selected readers. The final watermark expires every reader through the grouped API. The verifier checks timestamp and feed order, callback counts, represented totals, and each immutable group’s full membership once before checking its identity on reuse.
|
| 44 |
+
|
| 45 |
+
| Metric, median of five fresh processes | Shared TTLs | All unique within each feed |
|
| 46 |
+
|---|---:|---:|
|
| 47 |
+
| Feeds | 1,048,576 | 16,384 |
|
| 48 |
+
| Subscribers per feed | 1,024 | 256 |
|
| 49 |
+
| Regular policy TTL groups | 2 | 256 |
|
| 50 |
+
| Logical relationships | 1,073,741,824 | 4,194,304 |
|
| 51 |
+
| Policy and monitor setup (ms) | 11.50 | 0.17 |
|
| 52 |
+
| Build shuffled renewal order (ms) | 8.46 | 0.06 |
|
| 53 |
+
| Arm all feeds (ms) | 6.50 | 0.08 |
|
| 54 |
+
| Renew all feeds (ms) | 58.07 | 0.07 |
|
| 55 |
+
| Verified scalar transitions before outage | 16 | 16 |
|
| 56 |
+
| Outage group callbacks | 2,097,160 | 4,194,304 |
|
| 57 |
+
| Represented transitions | 1,073,741,824 | 4,194,304 |
|
| 58 |
+
| Outage dispatch and verification (ms) | 18.65 | 34.04 |
|
| 59 |
+
| Process peak RSS (MiB) | 34.27 | 2.23 |
|
| 60 |
+
|
| 61 |
+
The five full-fleet dispatch times ranged from 17.09–26.41 ms. The shuffled renewal times ranged from 45.22–309.74 ms. The shared-TTL case compresses identical expiry deadlines. The all-unique case needs one callback per reader during a full outage. The workloads use different feed counts. Compare the callback counts to see how TTL diversity affects the amount of work. Linux reports process peak RSS through the VmHWM field of `/proc/self/status`, including inputs, the renewal permutation, the monitor and the verifier. [Shared-TTL processes](scale.jsonl) · [All-unique processes](unique.jsonl)
|
| 62 |
+
|
| 63 |
+
## Measurement and reproduction
|
| 64 |
+
|
| 65 |
+
Runs were pinned to logical CPU 4 on a shared Linux x86-64 host with an AMD EPYC 9V74. The build used GCC 14.2.0 and the Makefile flags below. Each scalar engine ran 10 times on each of two synthetic seeds and 10 times on the fixed sensor trace. Scalar and grouped harnesses rotate engine order. Pooled synthetic results weight each seed equally.
|
| 66 |
+
|
| 67 |
+
The scalar timer starts after trace generation, engine construction, and warm-up. Each returned scalar event contributes its timestamp, feed, subscriber, transition type and delivering operation to a digest inside the timed loop. Timed grouped callbacks read the first member and group length and update a checksum. An untimed replay verifies the ordered grouped event streams and every distinct view’s full membership against the independent competitors. Raw CSV p99 values summarize **average ns/op within complete 128-operation batches**. Individual event latency, event-loop scheduling, transport, model inference and consumer delivery require separate measurements.
|
| 68 |
+
|
| 69 |
+
Run from the repository root. Choose an available CPU if logical CPU 4 is unavailable.
|
| 70 |
+
|
| 71 |
+
```sh
|
| 72 |
+
make CXX=g++ CXXFLAGS='-O3 -std=c++17 -DNDEBUG -Wall -Wextra -Wpedantic' build/benchmark build/grouped build/scale
|
| 73 |
+
taskset -c 4 build/benchmark --seed 20261122 --repeats 10
|
| 74 |
+
taskset -c 4 build/benchmark --seed 73492051 --repeats 10
|
| 75 |
+
taskset -c 4 build/benchmark --trace bench/data/intel-lab-4h.tsv --repeats 10
|
| 76 |
+
taskset -c 4 build/grouped --seed 73492051 --repeats 8
|
| 77 |
+
for run in 1 2 3 4 5; do taskset -c 4 build/scale; done
|
| 78 |
+
for run in 1 2 3 4 5; do taskset -c 4 build/scale 16384 256 256; done
|
| 79 |
+
```
|
results/grouped.csv
ADDED
|
@@ -0,0 +1,161 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
scenario,seed,repeat,run_order,engine,feeds,subscribers_per_feed,distinct_ttls,warmup_ops,measured_ops,group_callbacks,represented_transitions,checksum,batch_size,mean_ns_per_op,p99_batch_mean_ns_per_op
|
| 2 |
+
small-healthy,73492051,1,1,pulsefold,64,256,4,1024,32768,0,0,0,128,4.088,5.398
|
| 3 |
+
small-healthy,73492051,1,2,group-scan,64,256,4,1024,32768,0,0,0,128,6.235,10.953
|
| 4 |
+
small-healthy,73492051,1,3,group-radix,64,256,4,1024,32768,0,0,0,128,15.587,24.570
|
| 5 |
+
small-healthy,73492051,1,4,group-wide-radix,64,256,4,1024,32768,0,0,0,128,14.865,25.664
|
| 6 |
+
small-healthy,73492051,2,1,group-scan,64,256,4,1024,32768,0,0,0,128,4.511,6.258
|
| 7 |
+
small-healthy,73492051,2,2,group-radix,64,256,4,1024,32768,0,0,0,128,15.933,24.172
|
| 8 |
+
small-healthy,73492051,2,3,group-wide-radix,64,256,4,1024,32768,0,0,0,128,14.420,24.875
|
| 9 |
+
small-healthy,73492051,2,4,pulsefold,64,256,4,1024,32768,0,0,0,128,4.078,5.711
|
| 10 |
+
small-healthy,73492051,3,1,group-radix,64,256,4,1024,32768,0,0,0,128,17.105,33.484
|
| 11 |
+
small-healthy,73492051,3,2,group-wide-radix,64,256,4,1024,32768,0,0,0,128,14.034,25.508
|
| 12 |
+
small-healthy,73492051,3,3,pulsefold,64,256,4,1024,32768,0,0,0,128,4.062,5.320
|
| 13 |
+
small-healthy,73492051,3,4,group-scan,64,256,4,1024,32768,0,0,0,128,5.512,6.961
|
| 14 |
+
small-healthy,73492051,4,1,group-wide-radix,64,256,4,1024,32768,0,0,0,128,14.029,22.930
|
| 15 |
+
small-healthy,73492051,4,2,pulsefold,64,256,4,1024,32768,0,0,0,128,4.008,5.477
|
| 16 |
+
small-healthy,73492051,4,3,group-scan,64,256,4,1024,32768,0,0,0,128,4.608,6.180
|
| 17 |
+
small-healthy,73492051,4,4,group-radix,64,256,4,1024,32768,0,0,0,128,16.683,26.367
|
| 18 |
+
small-healthy,73492051,5,1,pulsefold,64,256,4,1024,32768,0,0,0,128,4.020,5.164
|
| 19 |
+
small-healthy,73492051,5,2,group-scan,64,256,4,1024,32768,0,0,0,128,4.616,6.492
|
| 20 |
+
small-healthy,73492051,5,3,group-radix,64,256,4,1024,32768,0,0,0,128,16.268,24.953
|
| 21 |
+
small-healthy,73492051,5,4,group-wide-radix,64,256,4,1024,32768,0,0,0,128,14.990,24.727
|
| 22 |
+
small-healthy,73492051,6,1,group-scan,64,256,4,1024,32768,0,0,0,128,5.331,6.258
|
| 23 |
+
small-healthy,73492051,6,2,group-radix,64,256,4,1024,32768,0,0,0,128,15.479,24.180
|
| 24 |
+
small-healthy,73492051,6,3,group-wide-radix,64,256,4,1024,32768,0,0,0,128,14.533,24.883
|
| 25 |
+
small-healthy,73492051,6,4,pulsefold,64,256,4,1024,32768,0,0,0,128,4.082,5.555
|
| 26 |
+
small-healthy,73492051,7,1,group-radix,64,256,4,1024,32768,0,0,0,128,15.876,25.352
|
| 27 |
+
small-healthy,73492051,7,2,group-wide-radix,64,256,4,1024,32768,0,0,0,128,14.513,24.016
|
| 28 |
+
small-healthy,73492051,7,3,pulsefold,64,256,4,1024,32768,0,0,0,128,4.975,5.633
|
| 29 |
+
small-healthy,73492051,7,4,group-scan,64,256,4,1024,32768,0,0,0,128,4.603,6.336
|
| 30 |
+
small-healthy,73492051,8,1,group-wide-radix,64,256,4,1024,32768,0,0,0,128,14.653,24.336
|
| 31 |
+
small-healthy,73492051,8,2,pulsefold,64,256,4,1024,32768,0,0,0,128,4.022,5.242
|
| 32 |
+
small-healthy,73492051,8,3,group-scan,64,256,4,1024,32768,0,0,0,128,4.474,6.648
|
| 33 |
+
small-healthy,73492051,8,4,group-radix,64,256,4,1024,32768,0,0,0,128,17.482,184.023
|
| 34 |
+
large-mixed,73492051,1,1,pulsefold,4096,1024,4,65536,262144,26695,9998336,6286081146420769918,128,15.140,37.711
|
| 35 |
+
large-mixed,73492051,1,2,group-scan,4096,1024,4,65536,262144,26695,9998336,6286081146420769918,128,669.190,1635.234
|
| 36 |
+
large-mixed,73492051,1,3,group-radix,4096,1024,4,65536,262144,26695,9998336,6286081146420769918,128,30.405,175.883
|
| 37 |
+
large-mixed,73492051,1,4,group-wide-radix,4096,1024,4,65536,262144,26695,9998336,6286081146420769918,128,26.101,121.742
|
| 38 |
+
large-mixed,73492051,2,1,group-scan,4096,1024,4,65536,262144,26695,9998336,6286081146420769918,128,625.891,2036.844
|
| 39 |
+
large-mixed,73492051,2,2,group-radix,4096,1024,4,65536,262144,26695,9998336,6286081146420769918,128,30.884,181.836
|
| 40 |
+
large-mixed,73492051,2,3,group-wide-radix,4096,1024,4,65536,262144,26695,9998336,6286081146420769918,128,26.619,116.422
|
| 41 |
+
large-mixed,73492051,2,4,pulsefold,4096,1024,4,65536,262144,26695,9998336,6286081146420769918,128,13.950,35.914
|
| 42 |
+
large-mixed,73492051,3,1,group-radix,4096,1024,4,65536,262144,26695,9998336,6286081146420769918,128,30.530,181.516
|
| 43 |
+
large-mixed,73492051,3,2,group-wide-radix,4096,1024,4,65536,262144,26695,9998336,6286081146420769918,128,25.935,110.398
|
| 44 |
+
large-mixed,73492051,3,3,pulsefold,4096,1024,4,65536,262144,26695,9998336,6286081146420769918,128,13.654,33.961
|
| 45 |
+
large-mixed,73492051,3,4,group-scan,4096,1024,4,65536,262144,26695,9998336,6286081146420769918,128,712.047,1630.930
|
| 46 |
+
large-mixed,73492051,4,1,group-wide-radix,4096,1024,4,65536,262144,26695,9998336,6286081146420769918,128,27.581,118.773
|
| 47 |
+
large-mixed,73492051,4,2,pulsefold,4096,1024,4,65536,262144,26695,9998336,6286081146420769918,128,14.189,35.758
|
| 48 |
+
large-mixed,73492051,4,3,group-scan,4096,1024,4,65536,262144,26695,9998336,6286081146420769918,128,697.835,1551.672
|
| 49 |
+
large-mixed,73492051,4,4,group-radix,4096,1024,4,65536,262144,26695,9998336,6286081146420769918,128,30.072,176.508
|
| 50 |
+
large-mixed,73492051,5,1,pulsefold,4096,1024,4,65536,262144,26695,9998336,6286081146420769918,128,13.307,38.023
|
| 51 |
+
large-mixed,73492051,5,2,group-scan,4096,1024,4,65536,262144,26695,9998336,6286081146420769918,128,759.996,2110.547
|
| 52 |
+
large-mixed,73492051,5,3,group-radix,4096,1024,4,65536,262144,26695,9998336,6286081146420769918,128,22.808,133.242
|
| 53 |
+
large-mixed,73492051,5,4,group-wide-radix,4096,1024,4,65536,262144,26695,9998336,6286081146420769918,128,19.841,84.656
|
| 54 |
+
large-mixed,73492051,6,1,group-scan,4096,1024,4,65536,262144,26695,9998336,6286081146420769918,128,543.867,1015.023
|
| 55 |
+
large-mixed,73492051,6,2,group-radix,4096,1024,4,65536,262144,26695,9998336,6286081146420769918,128,22.215,123.148
|
| 56 |
+
large-mixed,73492051,6,3,group-wide-radix,4096,1024,4,65536,262144,26695,9998336,6286081146420769918,128,18.839,79.570
|
| 57 |
+
large-mixed,73492051,6,4,pulsefold,4096,1024,4,65536,262144,26695,9998336,6286081146420769918,128,9.581,24.805
|
| 58 |
+
large-mixed,73492051,7,1,group-radix,4096,1024,4,65536,262144,26695,9998336,6286081146420769918,128,21.806,116.031
|
| 59 |
+
large-mixed,73492051,7,2,group-wide-radix,4096,1024,4,65536,262144,26695,9998336,6286081146420769918,128,18.924,81.055
|
| 60 |
+
large-mixed,73492051,7,3,pulsefold,4096,1024,4,65536,262144,26695,9998336,6286081146420769918,128,9.495,23.547
|
| 61 |
+
large-mixed,73492051,7,4,group-scan,4096,1024,4,65536,262144,26695,9998336,6286081146420769918,128,544.981,1065.562
|
| 62 |
+
large-mixed,73492051,8,1,group-wide-radix,4096,1024,4,65536,262144,26695,9998336,6286081146420769918,128,19.063,79.570
|
| 63 |
+
large-mixed,73492051,8,2,pulsefold,4096,1024,4,65536,262144,26695,9998336,6286081146420769918,128,10.008,23.477
|
| 64 |
+
large-mixed,73492051,8,3,group-scan,4096,1024,4,65536,262144,26695,9998336,6286081146420769918,128,555.996,1222.742
|
| 65 |
+
large-mixed,73492051,8,4,group-radix,4096,1024,4,65536,262144,26695,9998336,6286081146420769918,128,23.018,130.430
|
| 66 |
+
rotating-outages,73492051,1,1,pulsefold,1024,1024,8,10240,65536,9216,2097152,11158293729263460770,128,12.408,34.344
|
| 67 |
+
rotating-outages,73492051,1,2,group-scan,1024,1024,8,10240,65536,9216,2097152,11158293729263460770,128,250.590,1264.922
|
| 68 |
+
rotating-outages,73492051,1,3,group-radix,1024,1024,8,10240,65536,9216,2097152,11158293729263460770,128,30.355,72.297
|
| 69 |
+
rotating-outages,73492051,1,4,group-wide-radix,1024,1024,8,10240,65536,9216,2097152,11158293729263460770,128,25.890,71.516
|
| 70 |
+
rotating-outages,73492051,2,1,group-scan,1024,1024,8,10240,65536,9216,2097152,11158293729263460770,128,247.910,1162.664
|
| 71 |
+
rotating-outages,73492051,2,2,group-radix,1024,1024,8,10240,65536,9216,2097152,11158293729263460770,128,29.922,71.984
|
| 72 |
+
rotating-outages,73492051,2,3,group-wide-radix,1024,1024,8,10240,65536,9216,2097152,11158293729263460770,128,25.232,68.773
|
| 73 |
+
rotating-outages,73492051,2,4,pulsefold,1024,1024,8,10240,65536,9216,2097152,11158293729263460770,128,11.387,33.953
|
| 74 |
+
rotating-outages,73492051,3,1,group-radix,1024,1024,8,10240,65536,9216,2097152,11158293729263460770,128,32.568,72.766
|
| 75 |
+
rotating-outages,73492051,3,2,group-wide-radix,1024,1024,8,10240,65536,9216,2097152,11158293729263460770,128,26.518,69.555
|
| 76 |
+
rotating-outages,73492051,3,3,pulsefold,1024,1024,8,10240,65536,9216,2097152,11158293729263460770,128,13.322,38.023
|
| 77 |
+
rotating-outages,73492051,3,4,group-scan,1024,1024,8,10240,65536,9216,2097152,11158293729263460770,128,242.968,1093.805
|
| 78 |
+
rotating-outages,73492051,4,1,group-wide-radix,1024,1024,8,10240,65536,9216,2097152,11158293729263460770,128,26.094,69.398
|
| 79 |
+
rotating-outages,73492051,4,2,pulsefold,1024,1024,8,10240,65536,9216,2097152,11158293729263460770,128,11.138,33.875
|
| 80 |
+
rotating-outages,73492051,4,3,group-scan,1024,1024,8,10240,65536,9216,2097152,11158293729263460770,128,252.858,1303.414
|
| 81 |
+
rotating-outages,73492051,4,4,group-radix,1024,1024,8,10240,65536,9216,2097152,11158293729263460770,128,34.975,222.984
|
| 82 |
+
rotating-outages,73492051,5,1,pulsefold,1024,1024,8,10240,65536,9216,2097152,11158293729263460770,128,12.378,35.133
|
| 83 |
+
rotating-outages,73492051,5,2,group-scan,1024,1024,8,10240,65536,9216,2097152,11158293729263460770,128,239.445,1089.664
|
| 84 |
+
rotating-outages,73492051,5,3,group-radix,1024,1024,8,10240,65536,9216,2097152,11158293729263460770,128,31.979,74.094
|
| 85 |
+
rotating-outages,73492051,5,4,group-wide-radix,1024,1024,8,10240,65536,9216,2097152,11158293729263460770,128,29.100,70.031
|
| 86 |
+
rotating-outages,73492051,6,1,group-scan,1024,1024,8,10240,65536,9216,2097152,11158293729263460770,128,244.744,1051.086
|
| 87 |
+
rotating-outages,73492051,6,2,group-radix,1024,1024,8,10240,65536,9216,2097152,11158293729263460770,128,29.833,72.062
|
| 88 |
+
rotating-outages,73492051,6,3,group-wide-radix,1024,1024,8,10240,65536,9216,2097152,11158293729263460770,128,24.976,69.008
|
| 89 |
+
rotating-outages,73492051,6,4,pulsefold,1024,1024,8,10240,65536,9216,2097152,11158293729263460770,128,12.377,34.195
|
| 90 |
+
rotating-outages,73492051,7,1,group-radix,1024,1024,8,10240,65536,9216,2097152,11158293729263460770,128,32.409,74.094
|
| 91 |
+
rotating-outages,73492051,7,2,group-wide-radix,1024,1024,8,10240,65536,9216,2097152,11158293729263460770,128,31.162,181.828
|
| 92 |
+
rotating-outages,73492051,7,3,pulsefold,1024,1024,8,10240,65536,9216,2097152,11158293729263460770,128,12.650,35.602
|
| 93 |
+
rotating-outages,73492051,7,4,group-scan,1024,1024,8,10240,65536,9216,2097152,11158293729263460770,128,272.058,1469.438
|
| 94 |
+
rotating-outages,73492051,8,1,group-wide-radix,1024,1024,8,10240,65536,9216,2097152,11158293729263460770,128,36.619,102.570
|
| 95 |
+
rotating-outages,73492051,8,2,pulsefold,1024,1024,8,10240,65536,9216,2097152,11158293729263460770,128,16.360,47.648
|
| 96 |
+
rotating-outages,73492051,8,3,group-scan,1024,1024,8,10240,65536,9216,2097152,11158293729263460770,128,370.247,1659.648
|
| 97 |
+
rotating-outages,73492051,8,4,group-radix,1024,1024,8,10240,65536,9216,2097152,11158293729263460770,128,39.654,103.594
|
| 98 |
+
synchronous-storm,73492051,1,1,pulsefold,512,1024,1,6145,32776,8192,8388608,356731345989894538,128,5.668,50.227
|
| 99 |
+
synchronous-storm,73492051,1,2,group-scan,512,1024,1,6145,32776,8192,8388608,356731345989894538,128,7.153,50.852
|
| 100 |
+
synchronous-storm,73492051,1,3,group-radix,512,1024,1,6145,32776,8192,8388608,356731345989894538,128,16.534,230.500
|
| 101 |
+
synchronous-storm,73492051,1,4,group-wide-radix,512,1024,1,6145,32776,8192,8388608,356731345989894538,128,17.672,246.383
|
| 102 |
+
synchronous-storm,73492051,2,1,group-scan,512,1024,1,6145,32776,8192,8388608,356731345989894538,128,5.894,46.320
|
| 103 |
+
synchronous-storm,73492051,2,2,group-radix,512,1024,1,6145,32776,8192,8388608,356731345989894538,128,17.046,225.492
|
| 104 |
+
synchronous-storm,73492051,2,3,group-wide-radix,512,1024,1,6145,32776,8192,8388608,356731345989894538,128,16.749,247.945
|
| 105 |
+
synchronous-storm,73492051,2,4,pulsefold,512,1024,1,6145,32776,8192,8388608,356731345989894538,128,5.731,50.078
|
| 106 |
+
synchronous-storm,73492051,3,1,group-radix,512,1024,1,6145,32776,8192,8388608,356731345989894538,128,19.328,251.859
|
| 107 |
+
synchronous-storm,73492051,3,2,group-wide-radix,512,1024,1,6145,32776,8192,8388608,356731345989894538,128,17.166,256.078
|
| 108 |
+
synchronous-storm,73492051,3,3,pulsefold,512,1024,1,6145,32776,8192,8388608,356731345989894538,128,6.439,51.094
|
| 109 |
+
synchronous-storm,73492051,3,4,group-scan,512,1024,1,6145,32776,8192,8388608,356731345989894538,128,6.337,50.070
|
| 110 |
+
synchronous-storm,73492051,4,1,group-wide-radix,512,1024,1,6145,32776,8192,8388608,356731345989894538,128,18.078,267.656
|
| 111 |
+
synchronous-storm,73492051,4,2,pulsefold,512,1024,1,6145,32776,8192,8388608,356731345989894538,128,5.573,47.414
|
| 112 |
+
synchronous-storm,73492051,4,3,group-scan,512,1024,1,6145,32776,8192,8388608,356731345989894538,128,7.498,52.188
|
| 113 |
+
synchronous-storm,73492051,4,4,group-radix,512,1024,1,6145,32776,8192,8388608,356731345989894538,128,18.981,251.695
|
| 114 |
+
synchronous-storm,73492051,5,1,pulsefold,512,1024,1,6145,32776,8192,8388608,356731345989894538,128,5.884,52.336
|
| 115 |
+
synchronous-storm,73492051,5,2,group-scan,512,1024,1,6145,32776,8192,8388608,356731345989894538,128,8.831,56.406
|
| 116 |
+
synchronous-storm,73492051,5,3,group-radix,512,1024,1,6145,32776,8192,8388608,356731345989894538,128,18.374,252.320
|
| 117 |
+
synchronous-storm,73492051,5,4,group-wide-radix,512,1024,1,6145,32776,8192,8388608,356731345989894538,128,17.628,241.375
|
| 118 |
+
synchronous-storm,73492051,6,1,group-scan,512,1024,1,6145,32776,8192,8388608,356731345989894538,128,6.651,51.172
|
| 119 |
+
synchronous-storm,73492051,6,2,group-radix,512,1024,1,6145,32776,8192,8388608,356731345989894538,128,19.354,251.703
|
| 120 |
+
synchronous-storm,73492051,6,3,group-wide-radix,512,1024,1,6145,32776,8192,8388608,356731345989894538,128,16.885,260.617
|
| 121 |
+
synchronous-storm,73492051,6,4,pulsefold,512,1024,1,6145,32776,8192,8388608,356731345989894538,128,3.681,31.219
|
| 122 |
+
synchronous-storm,73492051,7,1,group-radix,512,1024,1,6145,32776,8192,8388608,356731345989894538,128,13.836,202.336
|
| 123 |
+
synchronous-storm,73492051,7,2,group-wide-radix,512,1024,1,6145,32776,8192,8388608,356731345989894538,128,12.005,183.945
|
| 124 |
+
synchronous-storm,73492051,7,3,pulsefold,512,1024,1,6145,32776,8192,8388608,356731345989894538,128,3.714,31.453
|
| 125 |
+
synchronous-storm,73492051,7,4,group-scan,512,1024,1,6145,32776,8192,8388608,356731345989894538,128,4.327,32.156
|
| 126 |
+
synchronous-storm,73492051,8,1,group-wide-radix,512,1024,1,6145,32776,8192,8388608,356731345989894538,128,11.746,182.922
|
| 127 |
+
synchronous-storm,73492051,8,2,pulsefold,512,1024,1,6145,32776,8192,8388608,356731345989894538,128,3.696,30.828
|
| 128 |
+
synchronous-storm,73492051,8,3,group-scan,512,1024,1,6145,32776,8192,8388608,356731345989894538,128,4.355,32.312
|
| 129 |
+
synchronous-storm,73492051,8,4,group-radix,512,1024,1,6145,32776,8192,8388608,356731345989894538,128,12.474,184.570
|
| 130 |
+
all-unique,73492051,1,1,pulsefold,256,128,128,2560,32768,66048,131072,7482883523033414190,128,36.072,116.109
|
| 131 |
+
all-unique,73492051,1,2,group-scan,256,128,128,2560,32768,66048,131072,7482883523033414190,128,182.306,626.867
|
| 132 |
+
all-unique,73492051,1,3,group-radix,256,128,128,2560,32768,66048,131072,7482883523033414190,128,90.498,330.727
|
| 133 |
+
all-unique,73492051,1,4,group-wide-radix,256,128,128,2560,32768,66048,131072,7482883523033414190,128,86.842,285.344
|
| 134 |
+
all-unique,73492051,2,1,group-scan,256,128,128,2560,32768,66048,131072,7482883523033414190,128,293.524,1067.992
|
| 135 |
+
all-unique,73492051,2,2,group-radix,256,128,128,2560,32768,66048,131072,7482883523033414190,128,94.057,331.109
|
| 136 |
+
all-unique,73492051,2,3,group-wide-radix,256,128,128,2560,32768,66048,131072,7482883523033414190,128,86.699,407.320
|
| 137 |
+
all-unique,73492051,2,4,pulsefold,256,128,128,2560,32768,66048,131072,7482883523033414190,128,57.048,328.688
|
| 138 |
+
all-unique,73492051,3,1,group-radix,256,128,128,2560,32768,66048,131072,7482883523033414190,128,95.179,403.492
|
| 139 |
+
all-unique,73492051,3,2,group-wide-radix,256,128,128,2560,32768,66048,131072,7482883523033414190,128,80.176,261.641
|
| 140 |
+
all-unique,73492051,3,3,pulsefold,256,128,128,2560,32768,66048,131072,7482883523033414190,128,56.223,190.758
|
| 141 |
+
all-unique,73492051,3,4,group-scan,256,128,128,2560,32768,66048,131072,7482883523033414190,128,210.644,1103.352
|
| 142 |
+
all-unique,73492051,4,1,group-wide-radix,256,128,128,2560,32768,66048,131072,7482883523033414190,128,68.347,268.523
|
| 143 |
+
all-unique,73492051,4,2,pulsefold,256,128,128,2560,32768,66048,131072,7482883523033414190,128,38.474,173.531
|
| 144 |
+
all-unique,73492051,4,3,group-scan,256,128,128,2560,32768,66048,131072,7482883523033414190,128,199.092,1077.531
|
| 145 |
+
all-unique,73492051,4,4,group-radix,256,128,128,2560,32768,66048,131072,7482883523033414190,128,87.915,609.422
|
| 146 |
+
all-unique,73492051,5,1,pulsefold,256,128,128,2560,32768,66048,131072,7482883523033414190,128,36.877,123.617
|
| 147 |
+
all-unique,73492051,5,2,group-scan,256,128,128,2560,32768,66048,131072,7482883523033414190,128,196.699,1066.344
|
| 148 |
+
all-unique,73492051,5,3,group-radix,256,128,128,2560,32768,66048,131072,7482883523033414190,128,69.424,197.172
|
| 149 |
+
all-unique,73492051,5,4,group-wide-radix,256,128,128,2560,32768,66048,131072,7482883523033414190,128,56.743,173.070
|
| 150 |
+
all-unique,73492051,6,1,group-scan,256,128,128,2560,32768,66048,131072,7482883523033414190,128,182.928,612.547
|
| 151 |
+
all-unique,73492051,6,2,group-radix,256,128,128,2560,32768,66048,131072,7482883523033414190,128,65.852,190.984
|
| 152 |
+
all-unique,73492051,6,3,group-wide-radix,256,128,128,2560,32768,66048,131072,7482883523033414190,128,57.634,181.906
|
| 153 |
+
all-unique,73492051,6,4,pulsefold,256,128,128,2560,32768,66048,131072,7482883523033414190,128,36.305,116.500
|
| 154 |
+
all-unique,73492051,7,1,group-radix,256,128,128,2560,32768,66048,131072,7482883523033414190,128,65.794,192.859
|
| 155 |
+
all-unique,73492051,7,2,group-wide-radix,256,128,128,2560,32768,66048,131072,7482883523033414190,128,60.741,193.336
|
| 156 |
+
all-unique,73492051,7,3,pulsefold,256,128,128,2560,32768,66048,131072,7482883523033414190,128,36.761,117.672
|
| 157 |
+
all-unique,73492051,7,4,group-scan,256,128,128,2560,32768,66048,131072,7482883523033414190,128,181.871,615.516
|
| 158 |
+
all-unique,73492051,8,1,group-wide-radix,256,128,128,2560,32768,66048,131072,7482883523033414190,128,58.460,233.711
|
| 159 |
+
all-unique,73492051,8,2,pulsefold,256,128,128,2560,32768,66048,131072,7482883523033414190,128,36.145,116.977
|
| 160 |
+
all-unique,73492051,8,3,group-scan,256,128,128,2560,32768,66048,131072,7482883523033414190,128,189.726,834.516
|
| 161 |
+
all-unique,73492051,8,4,group-radix,256,128,128,2560,32768,66048,131072,7482883523033414190,128,74.916,431.344
|
results/scale.jsonl
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"feeds":1048576,"subscribers_per_feed":1024,"logical_relationships":1073741824,"policy_templates":2,"regular_policy_ttl_groups":2,"short_deadline_cohort_feeds":4,"shuffle_seed":73129,"setup_ns":12843744,"shuffle_ns":8455883,"arm_all_ns":9655718,"renew_all_shuffled_ns":58065140,"verified_scalar_transitions":16,"full_expiry_group_callbacks":2097160,"full_expiry_represented_subscriber_transitions":1073741824,"full_expiry_grouped_ns":17094194,"peak_rss_bytes":35926016,"peak_rss_source":"/proc/self/status VmHWM","verified":true}
|
| 2 |
+
{"feeds":1048576,"subscribers_per_feed":1024,"logical_relationships":1073741824,"policy_templates":2,"regular_policy_ttl_groups":2,"short_deadline_cohort_feeds":4,"shuffle_seed":73129,"setup_ns":9138663,"shuffle_ns":7284209,"arm_all_ns":5775286,"renew_all_shuffled_ns":45221975,"verified_scalar_transitions":16,"full_expiry_group_callbacks":2097160,"full_expiry_represented_subscriber_transitions":1073741824,"full_expiry_grouped_ns":18344025,"peak_rss_bytes":35930112,"peak_rss_source":"/proc/self/status VmHWM","verified":true}
|
| 3 |
+
{"feeds":1048576,"subscribers_per_feed":1024,"logical_relationships":1073741824,"policy_templates":2,"regular_policy_ttl_groups":2,"short_deadline_cohort_feeds":4,"shuffle_seed":73129,"setup_ns":10777247,"shuffle_ns":9336625,"arm_all_ns":7974971,"renew_all_shuffled_ns":113669844,"verified_scalar_transitions":16,"full_expiry_group_callbacks":2097160,"full_expiry_represented_subscriber_transitions":1073741824,"full_expiry_grouped_ns":26055806,"peak_rss_bytes":35930112,"peak_rss_source":"/proc/self/status VmHWM","verified":true}
|
| 4 |
+
{"feeds":1048576,"subscribers_per_feed":1024,"logical_relationships":1073741824,"policy_templates":2,"regular_policy_ttl_groups":2,"short_deadline_cohort_feeds":4,"shuffle_seed":73129,"setup_ns":11504493,"shuffle_ns":6060238,"arm_all_ns":5482072,"renew_all_shuffled_ns":309737668,"verified_scalar_transitions":16,"full_expiry_group_callbacks":2097160,"full_expiry_represented_subscriber_transitions":1073741824,"full_expiry_grouped_ns":26409715,"peak_rss_bytes":35926016,"peak_rss_source":"/proc/self/status VmHWM","verified":true}
|
| 5 |
+
{"feeds":1048576,"subscribers_per_feed":1024,"logical_relationships":1073741824,"policy_templates":2,"regular_policy_ttl_groups":2,"short_deadline_cohort_feeds":4,"shuffle_seed":73129,"setup_ns":12035990,"shuffle_ns":17488278,"arm_all_ns":6495291,"renew_all_shuffled_ns":50672471,"verified_scalar_transitions":16,"full_expiry_group_callbacks":2097160,"full_expiry_represented_subscriber_transitions":1073741824,"full_expiry_grouped_ns":18647943,"peak_rss_bytes":35930112,"peak_rss_source":"/proc/self/status VmHWM","verified":true}
|
results/sensor.csv
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
scenario,seed,repeat,run_order,engine,feeds,subscribers_per_feed,warmup_ops,observes,advances,fresh,stale,digest_sum,digest_xor,batch_size,mean_ns_per_op,p99_batch_mean_ns_per_op,max_batch_mean_ns_per_op
|
| 2 |
+
external-trace,,1,1,pulsefold,54,4,1053,9482,0,4725,4731,7392661802847312255,12766213814200776735,128,38.739,195.133,195.133
|
| 3 |
+
external-trace,,1,2,eager-feed-heap,54,4,1053,9482,0,4725,4731,7392661802847312255,12766213814200776735,128,49.453,55.078,55.078
|
| 4 |
+
external-trace,,1,3,feed-scan,54,4,1053,9482,0,4725,4731,7392661802847312255,12766213814200776735,128,33.660,41.000,41.000
|
| 5 |
+
external-trace,,1,4,lazy-radix,54,4,1053,9482,0,4725,4731,7392661802847312255,12766213814200776735,128,76.125,94.750,94.750
|
| 6 |
+
external-trace,,1,5,wide-radix,54,4,1053,9482,0,4725,4731,7392661802847312255,12766213814200776735,128,80.001,131.914,131.914
|
| 7 |
+
external-trace,,2,5,pulsefold,54,4,1053,9482,0,4725,4731,7392661802847312255,12766213814200776735,128,34.576,42.961,42.961
|
| 8 |
+
external-trace,,2,1,eager-feed-heap,54,4,1053,9482,0,4725,4731,7392661802847312255,12766213814200776735,128,223.253,8153.477,8153.477
|
| 9 |
+
external-trace,,2,2,feed-scan,54,4,1053,9482,0,4725,4731,7392661802847312255,12766213814200776735,128,33.326,40.922,40.922
|
| 10 |
+
external-trace,,2,3,lazy-radix,54,4,1053,9482,0,4725,4731,7392661802847312255,12766213814200776735,128,81.306,387.609,387.609
|
| 11 |
+
external-trace,,2,4,wide-radix,54,4,1053,9482,0,4725,4731,7392661802847312255,12766213814200776735,128,93.930,1344.492,1344.492
|
| 12 |
+
external-trace,,3,4,pulsefold,54,4,1053,9482,0,4725,4731,7392661802847312255,12766213814200776735,128,34.171,43.031,43.031
|
| 13 |
+
external-trace,,3,5,eager-feed-heap,54,4,1053,9482,0,4725,4731,7392661802847312255,12766213814200776735,128,50.477,141.383,141.383
|
| 14 |
+
external-trace,,3,1,feed-scan,54,4,1053,9482,0,4725,4731,7392661802847312255,12766213814200776735,128,39.916,330.797,330.797
|
| 15 |
+
external-trace,,3,2,lazy-radix,54,4,1053,9482,0,4725,4731,7392661802847312255,12766213814200776735,128,104.239,677.875,677.875
|
| 16 |
+
external-trace,,3,3,wide-radix,54,4,1053,9482,0,4725,4731,7392661802847312255,12766213814200776735,128,80.577,477.266,477.266
|
| 17 |
+
external-trace,,4,3,pulsefold,54,4,1053,9482,0,4725,4731,7392661802847312255,12766213814200776735,128,35.769,156.797,156.797
|
| 18 |
+
external-trace,,4,4,eager-feed-heap,54,4,1053,9482,0,4725,4731,7392661802847312255,12766213814200776735,128,49.398,55.078,55.078
|
| 19 |
+
external-trace,,4,5,feed-scan,54,4,1053,9482,0,4725,4731,7392661802847312255,12766213814200776735,128,35.972,152.727,152.727
|
| 20 |
+
external-trace,,4,1,lazy-radix,54,4,1053,9482,0,4725,4731,7392661802847312255,12766213814200776735,128,77.697,230.578,230.578
|
| 21 |
+
external-trace,,4,2,wide-radix,54,4,1053,9482,0,4725,4731,7392661802847312255,12766213814200776735,128,78.249,188.641,188.641
|
| 22 |
+
external-trace,,5,2,pulsefold,54,4,1053,9482,0,4725,4731,7392661802847312255,12766213814200776735,128,37.354,253.188,253.188
|
| 23 |
+
external-trace,,5,3,eager-feed-heap,54,4,1053,9482,0,4725,4731,7392661802847312255,12766213814200776735,128,62.339,278.773,278.773
|
| 24 |
+
external-trace,,5,4,feed-scan,54,4,1053,9482,0,4725,4731,7392661802847312255,12766213814200776735,128,39.536,445.109,445.109
|
| 25 |
+
external-trace,,5,5,lazy-radix,54,4,1053,9482,0,4725,4731,7392661802847312255,12766213814200776735,128,86.686,274.859,274.859
|
| 26 |
+
external-trace,,5,1,wide-radix,54,4,1053,9482,0,4725,4731,7392661802847312255,12766213814200776735,128,78.171,122.602,122.602
|
| 27 |
+
external-trace,,6,1,pulsefold,54,4,1053,9482,0,4725,4731,7392661802847312255,12766213814200776735,128,34.751,42.719,42.719
|
| 28 |
+
external-trace,,6,2,eager-feed-heap,54,4,1053,9482,0,4725,4731,7392661802847312255,12766213814200776735,128,52.722,269.539,269.539
|
| 29 |
+
external-trace,,6,3,feed-scan,54,4,1053,9482,0,4725,4731,7392661802847312255,12766213814200776735,128,44.671,201.938,201.938
|
| 30 |
+
external-trace,,6,4,lazy-radix,54,4,1053,9482,0,4725,4731,7392661802847312255,12766213814200776735,128,90.499,499.023,499.023
|
| 31 |
+
external-trace,,6,5,wide-radix,54,4,1053,9482,0,4725,4731,7392661802847312255,12766213814200776735,128,78.570,238.555,238.555
|
| 32 |
+
external-trace,,7,5,pulsefold,54,4,1053,9482,0,4725,4731,7392661802847312255,12766213814200776735,128,34.478,46.242,46.242
|
| 33 |
+
external-trace,,7,1,eager-feed-heap,54,4,1053,9482,0,4725,4731,7392661802847312255,12766213814200776735,128,50.919,162.508,162.508
|
| 34 |
+
external-trace,,7,2,feed-scan,54,4,1053,9482,0,4725,4731,7392661802847312255,12766213814200776735,128,33.847,42.094,42.094
|
| 35 |
+
external-trace,,7,3,lazy-radix,54,4,1053,9482,0,4725,4731,7392661802847312255,12766213814200776735,128,77.939,224.391,224.391
|
| 36 |
+
external-trace,,7,4,wide-radix,54,4,1053,9482,0,4725,4731,7392661802847312255,12766213814200776735,128,78.159,179.328,179.328
|
| 37 |
+
external-trace,,8,4,pulsefold,54,4,1053,9482,0,4725,4731,7392661802847312255,12766213814200776735,128,38.379,195.680,195.680
|
| 38 |
+
external-trace,,8,5,eager-feed-heap,54,4,1053,9482,0,4725,4731,7392661802847312255,12766213814200776735,128,49.066,55.320,55.320
|
| 39 |
+
external-trace,,8,1,feed-scan,54,4,1053,9482,0,4725,4731,7392661802847312255,12766213814200776735,128,36.489,184.492,184.492
|
| 40 |
+
external-trace,,8,2,lazy-radix,54,4,1053,9482,0,4725,4731,7392661802847312255,12766213814200776735,128,86.873,869.492,869.492
|
| 41 |
+
external-trace,,8,3,wide-radix,54,4,1053,9482,0,4725,4731,7392661802847312255,12766213814200776735,128,86.257,764.023,764.023
|
| 42 |
+
external-trace,,9,3,pulsefold,54,4,1053,9482,0,4725,4731,7392661802847312255,12766213814200776735,128,45.846,204.672,204.672
|
| 43 |
+
external-trace,,9,4,eager-feed-heap,54,4,1053,9482,0,4725,4731,7392661802847312255,12766213814200776735,128,49.532,64.547,64.547
|
| 44 |
+
external-trace,,9,5,feed-scan,54,4,1053,9482,0,4725,4731,7392661802847312255,12766213814200776735,128,33.391,41.391,41.391
|
| 45 |
+
external-trace,,9,1,lazy-radix,54,4,1053,9482,0,4725,4731,7392661802847312255,12766213814200776735,128,76.969,168.531,168.531
|
| 46 |
+
external-trace,,9,2,wide-radix,54,4,1053,9482,0,4725,4731,7392661802847312255,12766213814200776735,128,84.812,298.492,298.492
|
| 47 |
+
external-trace,,10,2,pulsefold,54,4,1053,9482,0,4725,4731,7392661802847312255,12766213814200776735,128,35.765,152.961,152.961
|
| 48 |
+
external-trace,,10,3,eager-feed-heap,54,4,1053,9482,0,4725,4731,7392661802847312255,12766213814200776735,128,49.220,54.922,54.922
|
| 49 |
+
external-trace,,10,4,feed-scan,54,4,1053,9482,0,4725,4731,7392661802847312255,12766213814200776735,128,42.399,377.125,377.125
|
| 50 |
+
external-trace,,10,5,lazy-radix,54,4,1053,9482,0,4725,4731,7392661802847312255,12766213814200776735,128,77.018,180.586,180.586
|
| 51 |
+
external-trace,,10,1,wide-radix,54,4,1053,9482,0,4725,4731,7392661802847312255,12766213814200776735,128,75.616,90.445,90.445
|
results/synthetic.csv
ADDED
|
@@ -0,0 +1,801 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
scenario,seed,repeat,run_order,engine,feeds,subscribers_per_feed,warmup_ops,observes,advances,fresh,stale,digest_sum,digest_xor,batch_size,mean_ns_per_op,p99_batch_mean_ns_per_op,max_batch_mean_ns_per_op
|
| 2 |
+
small,20261122,1,1,pulsefold,8,4,96,32768,0,0,0,0,0,128,3.462,4.227,7.047
|
| 3 |
+
small,20261122,1,2,eager-feed-heap,8,4,96,32768,0,0,0,0,0,128,22.232,23.156,207.414
|
| 4 |
+
small,20261122,1,3,feed-scan,8,4,96,32768,0,0,0,0,0,128,7.917,9.312,1066.344
|
| 5 |
+
small,20261122,1,4,lazy-radix,8,4,96,32768,0,0,0,0,0,128,15.600,17.688,21.594
|
| 6 |
+
small,20261122,1,5,wide-radix,8,4,96,32768,0,0,0,0,0,128,14.535,21.281,185.977
|
| 7 |
+
small,20261122,2,5,pulsefold,8,4,96,32768,0,0,0,0,0,128,3.435,3.680,4.305
|
| 8 |
+
small,20261122,2,1,eager-feed-heap,8,4,96,32768,0,0,0,0,0,128,21.387,22.609,132.461
|
| 9 |
+
small,20261122,2,2,feed-scan,8,4,96,32768,0,0,0,0,0,128,3.378,3.836,4.383
|
| 10 |
+
small,20261122,2,3,lazy-radix,8,4,96,32768,0,0,0,0,0,128,15.527,17.758,18.383
|
| 11 |
+
small,20261122,2,4,wide-radix,8,4,96,32768,0,0,0,0,0,128,14.027,21.281,112.594
|
| 12 |
+
small,20261122,3,4,pulsefold,8,4,96,32768,0,0,0,0,0,128,3.423,3.680,4.461
|
| 13 |
+
small,20261122,3,5,eager-feed-heap,8,4,96,32768,0,0,0,0,0,128,21.426,22.609,137.234
|
| 14 |
+
small,20261122,3,1,feed-scan,8,4,96,32768,0,0,0,0,0,128,3.365,3.758,3.914
|
| 15 |
+
small,20261122,3,2,lazy-radix,8,4,96,32768,0,0,0,0,0,128,22.038,142.477,1448.703
|
| 16 |
+
small,20261122,3,3,wide-radix,8,4,96,32768,0,0,0,0,0,128,13.551,19.406,38.109
|
| 17 |
+
small,20261122,4,3,pulsefold,8,4,96,32768,0,0,0,0,0,128,3.426,3.750,4.227
|
| 18 |
+
small,20261122,4,4,eager-feed-heap,8,4,96,32768,0,0,0,0,0,128,22.213,22.617,354.195
|
| 19 |
+
small,20261122,4,5,feed-scan,8,4,96,32768,0,0,0,0,0,128,3.370,3.992,5.008
|
| 20 |
+
small,20261122,4,1,lazy-radix,8,4,96,32768,0,0,0,0,0,128,16.329,31.289,109.844
|
| 21 |
+
small,20261122,4,2,wide-radix,8,4,96,32768,0,0,0,0,0,128,16.177,24.180,610.672
|
| 22 |
+
small,20261122,5,2,pulsefold,8,4,96,32768,0,0,0,0,0,128,3.424,3.750,3.906
|
| 23 |
+
small,20261122,5,3,eager-feed-heap,8,4,96,32768,0,0,0,0,0,128,21.197,22.766,120.883
|
| 24 |
+
small,20261122,5,4,feed-scan,8,4,96,32768,0,0,0,0,0,128,3.378,3.914,3.914
|
| 25 |
+
small,20261122,5,5,lazy-radix,8,4,96,32768,0,0,0,0,0,128,18.721,36.766,444.094
|
| 26 |
+
small,20261122,5,1,wide-radix,8,4,96,32768,0,0,0,0,0,128,13.946,19.250,102.805
|
| 27 |
+
small,20261122,6,1,pulsefold,8,4,96,32768,0,0,0,0,0,128,4.191,5.242,185.039
|
| 28 |
+
small,20261122,6,2,eager-feed-heap,8,4,96,32768,0,0,0,0,0,128,60.002,42.961,9773.531
|
| 29 |
+
small,20261122,6,3,feed-scan,8,4,96,32768,0,0,0,0,0,128,3.387,4.070,4.539
|
| 30 |
+
small,20261122,6,4,lazy-radix,8,4,96,32768,0,0,0,0,0,128,15.536,17.523,18.852
|
| 31 |
+
small,20261122,6,5,wide-radix,8,4,96,32768,0,0,0,0,0,128,126.848,23.078,28936.273
|
| 32 |
+
small,20261122,7,5,pulsefold,8,4,96,32768,0,0,0,0,0,128,3.424,3.758,5.633
|
| 33 |
+
small,20261122,7,1,eager-feed-heap,8,4,96,32768,0,0,0,0,0,128,22.270,22.852,337.531
|
| 34 |
+
small,20261122,7,2,feed-scan,8,4,96,32768,0,0,0,0,0,128,3.374,3.984,4.383
|
| 35 |
+
small,20261122,7,3,lazy-radix,8,4,96,32768,0,0,0,0,0,128,16.301,17.922,205.695
|
| 36 |
+
small,20261122,7,4,wide-radix,8,4,96,32768,0,0,0,0,0,128,13.630,18.391,21.992
|
| 37 |
+
small,20261122,8,4,pulsefold,8,4,96,32768,0,0,0,0,0,128,3.410,3.836,3.914
|
| 38 |
+
small,20261122,8,5,eager-feed-heap,8,4,96,32768,0,0,0,0,0,128,20.959,22.922,23.156
|
| 39 |
+
small,20261122,8,1,feed-scan,8,4,96,32768,0,0,0,0,0,128,4.115,3.914,198.891
|
| 40 |
+
small,20261122,8,2,lazy-radix,8,4,96,32768,0,0,0,0,0,128,15.328,17.211,17.922
|
| 41 |
+
small,20261122,8,3,wide-radix,8,4,96,32768,0,0,0,0,0,128,14.824,22.062,215.008
|
| 42 |
+
small,20261122,9,3,pulsefold,8,4,96,32768,0,0,0,0,0,128,4.017,5.086,151.164
|
| 43 |
+
small,20261122,9,4,eager-feed-heap,8,4,96,32768,0,0,0,0,0,128,20.924,22.375,22.383
|
| 44 |
+
small,20261122,9,5,feed-scan,8,4,96,32768,0,0,0,0,0,128,4.366,7.508,220.250
|
| 45 |
+
small,20261122,9,1,lazy-radix,8,4,96,32768,0,0,0,0,0,128,16.115,18.930,203.266
|
| 46 |
+
small,20261122,9,2,wide-radix,8,4,96,32768,0,0,0,0,0,128,13.650,17.133,21.594
|
| 47 |
+
small,20261122,10,2,pulsefold,8,4,96,32768,0,0,0,0,0,128,3.409,3.680,3.992
|
| 48 |
+
small,20261122,10,3,eager-feed-heap,8,4,96,32768,0,0,0,0,0,128,22.374,102.414,182.773
|
| 49 |
+
small,20261122,10,4,feed-scan,8,4,96,32768,0,0,0,0,0,128,3.435,3.914,20.656
|
| 50 |
+
small,20261122,10,5,lazy-radix,8,4,96,32768,0,0,0,0,0,128,15.368,17.375,18.617
|
| 51 |
+
small,20261122,10,1,wide-radix,8,4,96,32768,0,0,0,0,0,128,14.158,20.422,156.789
|
| 52 |
+
single-subscriber,20261122,1,1,pulsefold,1024,1,12288,65536,0,0,0,0,0,128,4.254,6.258,117.828
|
| 53 |
+
single-subscriber,20261122,1,2,eager-feed-heap,1024,1,12288,65536,0,0,0,0,0,128,27.506,34.500,289.883
|
| 54 |
+
single-subscriber,20261122,1,3,feed-scan,1024,1,12288,65536,0,0,0,0,0,128,4.007,15.258,179.016
|
| 55 |
+
single-subscriber,20261122,1,4,lazy-radix,1024,1,12288,65536,0,0,0,0,0,128,17.359,46.555,181.594
|
| 56 |
+
single-subscriber,20261122,1,5,wide-radix,1024,1,12288,65536,0,0,0,0,0,128,14.400,40.914,161.570
|
| 57 |
+
single-subscriber,20261122,2,5,pulsefold,1024,1,12288,65536,0,0,0,0,0,128,4.619,7.281,174.633
|
| 58 |
+
single-subscriber,20261122,2,1,eager-feed-heap,1024,1,12288,65536,0,0,0,0,0,128,27.370,34.891,147.328
|
| 59 |
+
single-subscriber,20261122,2,2,feed-scan,1024,1,12288,65536,0,0,0,0,0,128,4.094,15.492,133.555
|
| 60 |
+
single-subscriber,20261122,2,3,lazy-radix,1024,1,12288,65536,0,0,0,0,0,128,17.352,46.789,162.977
|
| 61 |
+
single-subscriber,20261122,2,4,wide-radix,1024,1,12288,65536,0,0,0,0,0,128,15.186,41.547,538.375
|
| 62 |
+
single-subscriber,20261122,3,4,pulsefold,1024,1,12288,65536,0,0,0,0,0,128,3.968,6.109,6.883
|
| 63 |
+
single-subscriber,20261122,3,5,eager-feed-heap,1024,1,12288,65536,0,0,0,0,0,128,27.321,34.734,137.000
|
| 64 |
+
single-subscriber,20261122,3,1,feed-scan,1024,1,12288,65536,0,0,0,0,0,128,3.885,16.039,17.758
|
| 65 |
+
single-subscriber,20261122,3,2,lazy-radix,1024,1,12288,65536,0,0,0,0,0,128,17.396,47.023,180.188
|
| 66 |
+
single-subscriber,20261122,3,3,wide-radix,1024,1,12288,65536,0,0,0,0,0,128,13.910,41.156,119.320
|
| 67 |
+
single-subscriber,20261122,4,3,pulsefold,1024,1,12288,65536,0,0,0,0,0,128,4.000,6.258,6.805
|
| 68 |
+
single-subscriber,20261122,4,4,eager-feed-heap,1024,1,12288,65536,0,0,0,0,0,128,27.374,34.586,166.656
|
| 69 |
+
single-subscriber,20261122,4,5,feed-scan,1024,1,12288,65536,0,0,0,0,0,128,4.041,15.961,102.805
|
| 70 |
+
single-subscriber,20261122,4,1,lazy-radix,1024,1,12288,65536,0,0,0,0,0,128,17.440,46.555,136.688
|
| 71 |
+
single-subscriber,20261122,4,2,wide-radix,1024,1,12288,65536,0,0,0,0,0,128,15.141,41.156,440.727
|
| 72 |
+
single-subscriber,20261122,5,2,pulsefold,1024,1,12288,65536,0,0,0,0,0,128,3.982,6.031,6.883
|
| 73 |
+
single-subscriber,20261122,5,3,eager-feed-heap,1024,1,12288,65536,0,0,0,0,0,128,27.932,39.672,149.672
|
| 74 |
+
single-subscriber,20261122,5,4,feed-scan,1024,1,12288,65536,0,0,0,0,0,128,3.867,16.117,17.133
|
| 75 |
+
single-subscriber,20261122,5,5,lazy-radix,1024,1,12288,65536,0,0,0,0,0,128,17.114,46.477,124.398
|
| 76 |
+
single-subscriber,20261122,5,1,wide-radix,1024,1,12288,65536,0,0,0,0,0,128,13.867,39.977,119.000
|
| 77 |
+
single-subscriber,20261122,6,1,pulsefold,1024,1,12288,65536,0,0,0,0,0,128,4.206,6.336,113.992
|
| 78 |
+
single-subscriber,20261122,6,2,eager-feed-heap,1024,1,12288,65536,0,0,0,0,0,128,27.886,35.133,288.711
|
| 79 |
+
single-subscriber,20261122,6,3,feed-scan,1024,1,12288,65536,0,0,0,0,0,128,3.876,16.273,16.898
|
| 80 |
+
single-subscriber,20261122,6,4,lazy-radix,1024,1,12288,65536,0,0,0,0,0,128,17.327,46.945,131.523
|
| 81 |
+
single-subscriber,20261122,6,5,wide-radix,1024,1,12288,65536,0,0,0,0,0,128,14.132,40.844,151.320
|
| 82 |
+
single-subscriber,20261122,7,5,pulsefold,1024,1,12288,65536,0,0,0,0,0,128,4.001,6.180,6.883
|
| 83 |
+
single-subscriber,20261122,7,1,eager-feed-heap,1024,1,12288,65536,0,0,0,0,0,128,27.432,34.742,128.086
|
| 84 |
+
single-subscriber,20261122,7,2,feed-scan,1024,1,12288,65536,0,0,0,0,0,128,3.857,16.195,17.211
|
| 85 |
+
single-subscriber,20261122,7,3,lazy-radix,1024,1,12288,65536,0,0,0,0,0,128,17.617,47.727,148.109
|
| 86 |
+
single-subscriber,20261122,7,4,wide-radix,1024,1,12288,65536,0,0,0,0,0,128,13.861,40.609,116.422
|
| 87 |
+
single-subscriber,20261122,8,4,pulsefold,1024,1,12288,65536,0,0,0,0,0,128,4.417,7.273,171.352
|
| 88 |
+
single-subscriber,20261122,8,5,eager-feed-heap,1024,1,12288,65536,0,0,0,0,0,128,38.801,190.359,3768.625
|
| 89 |
+
single-subscriber,20261122,8,1,feed-scan,1024,1,12288,65536,0,0,0,0,0,128,4.093,16.352,128.312
|
| 90 |
+
single-subscriber,20261122,8,2,lazy-radix,1024,1,12288,65536,0,0,0,0,0,128,17.897,46.555,317.422
|
| 91 |
+
single-subscriber,20261122,8,3,wide-radix,1024,1,12288,65536,0,0,0,0,0,128,17.675,42.172,1665.742
|
| 92 |
+
single-subscriber,20261122,9,3,pulsefold,1024,1,12288,65536,0,0,0,0,0,128,4.455,6.727,171.109
|
| 93 |
+
single-subscriber,20261122,9,4,eager-feed-heap,1024,1,12288,65536,0,0,0,0,0,128,28.135,39.039,235.820
|
| 94 |
+
single-subscriber,20261122,9,5,feed-scan,1024,1,12288,65536,0,0,0,0,0,128,3.854,16.203,16.906
|
| 95 |
+
single-subscriber,20261122,9,1,lazy-radix,1024,1,12288,65536,0,0,0,0,0,128,17.425,46.242,290.742
|
| 96 |
+
single-subscriber,20261122,9,2,wide-radix,1024,1,12288,65536,0,0,0,0,0,128,14.783,40.922,259.602
|
| 97 |
+
single-subscriber,20261122,10,2,pulsefold,1024,1,12288,65536,0,0,0,0,0,128,4.008,6.180,6.805
|
| 98 |
+
single-subscriber,20261122,10,3,eager-feed-heap,1024,1,12288,65536,0,0,0,0,0,128,33.267,212.664,1339.242
|
| 99 |
+
single-subscriber,20261122,10,4,feed-scan,1024,1,12288,65536,0,0,0,0,0,128,4.689,16.898,369.141
|
| 100 |
+
single-subscriber,20261122,10,5,lazy-radix,1024,1,12288,65536,0,0,0,0,0,128,18.573,48.039,406.852
|
| 101 |
+
single-subscriber,20261122,10,1,wide-radix,1024,1,12288,65536,0,0,0,0,0,128,16.184,46.469,582.344
|
| 102 |
+
long-grace,20261122,1,1,pulsefold,4096,16,278528,262144,0,0,0,0,0,128,4.165,7.047,1429.852
|
| 103 |
+
long-grace,20261122,1,2,eager-feed-heap,4096,16,278528,262144,0,0,0,0,0,128,32.697,47.023,956.414
|
| 104 |
+
long-grace,20261122,1,3,feed-scan,4096,16,278528,262144,0,0,0,0,0,128,5.064,7.039,1755.484
|
| 105 |
+
long-grace,20261122,1,4,lazy-radix,4096,16,278528,262144,0,0,0,0,0,128,8.886,21.906,264.305
|
| 106 |
+
long-grace,20261122,1,5,wide-radix,4096,16,278528,262144,0,0,0,0,0,128,7.454,19.094,376.102
|
| 107 |
+
long-grace,20261122,2,5,pulsefold,4096,16,278528,262144,0,0,0,0,0,128,3.451,7.047,140.047
|
| 108 |
+
long-grace,20261122,2,1,eager-feed-heap,4096,16,278528,262144,0,0,0,0,0,128,31.197,43.812,184.883
|
| 109 |
+
long-grace,20261122,2,2,feed-scan,4096,16,278528,262144,0,0,0,0,0,128,4.162,6.023,125.031
|
| 110 |
+
long-grace,20261122,2,3,lazy-radix,4096,16,278528,262144,0,0,0,0,0,128,8.865,22.852,149.906
|
| 111 |
+
long-grace,20261122,2,4,wide-radix,4096,16,278528,262144,0,0,0,0,0,128,7.315,19.953,158.516
|
| 112 |
+
long-grace,20261122,3,4,pulsefold,4096,16,278528,262144,0,0,0,0,0,128,3.449,6.961,178.703
|
| 113 |
+
long-grace,20261122,3,5,eager-feed-heap,4096,16,278528,262144,0,0,0,0,0,128,41.535,58.133,266.016
|
| 114 |
+
long-grace,20261122,3,1,feed-scan,4096,16,278528,262144,0,0,0,0,0,128,3.861,5.398,131.133
|
| 115 |
+
long-grace,20261122,3,2,lazy-radix,4096,16,278528,262144,0,0,0,0,0,128,8.927,23.633,172.836
|
| 116 |
+
long-grace,20261122,3,3,wide-radix,4096,16,278528,262144,0,0,0,0,0,128,7.552,23.477,161.336
|
| 117 |
+
long-grace,20261122,4,3,pulsefold,4096,16,278528,262144,0,0,0,0,0,128,4.714,9.461,206.398
|
| 118 |
+
long-grace,20261122,4,4,eager-feed-heap,4096,16,278528,262144,0,0,0,0,0,128,40.814,55.945,322.898
|
| 119 |
+
long-grace,20261122,4,5,feed-scan,4096,16,278528,262144,0,0,0,0,0,128,5.788,7.750,208.438
|
| 120 |
+
long-grace,20261122,4,1,lazy-radix,4096,16,278528,262144,0,0,0,0,0,128,12.765,37.008,221.969
|
| 121 |
+
long-grace,20261122,4,2,wide-radix,4096,16,278528,262144,0,0,0,0,0,128,10.469,26.289,223.461
|
| 122 |
+
long-grace,20261122,5,2,pulsefold,4096,16,278528,262144,0,0,0,0,0,128,3.390,6.969,195.133
|
| 123 |
+
long-grace,20261122,5,3,eager-feed-heap,4096,16,278528,262144,0,0,0,0,0,128,32.341,45.930,498.477
|
| 124 |
+
long-grace,20261122,5,4,feed-scan,4096,16,278528,262144,0,0,0,0,0,128,4.825,19.398,136.688
|
| 125 |
+
long-grace,20261122,5,5,lazy-radix,4096,16,278528,262144,0,0,0,0,0,128,10.050,30.750,439.406
|
| 126 |
+
long-grace,20261122,5,1,wide-radix,4096,16,278528,262144,0,0,0,0,0,128,7.981,23.391,540.719
|
| 127 |
+
long-grace,20261122,6,1,pulsefold,4096,16,278528,262144,0,0,0,0,0,128,3.574,9.703,187.859
|
| 128 |
+
long-grace,20261122,6,2,eager-feed-heap,4096,16,278528,262144,0,0,0,0,0,128,33.407,56.961,195.289
|
| 129 |
+
long-grace,20261122,6,3,feed-scan,4096,16,278528,262144,0,0,0,0,0,128,4.883,20.266,136.453
|
| 130 |
+
long-grace,20261122,6,4,lazy-radix,4096,16,278528,262144,0,0,0,0,0,128,12.910,103.586,705.422
|
| 131 |
+
long-grace,20261122,6,5,wide-radix,4096,16,278528,262144,0,0,0,0,0,128,8.429,27.227,388.852
|
| 132 |
+
long-grace,20261122,7,5,pulsefold,4096,16,278528,262144,0,0,0,0,0,128,3.606,9.781,135.984
|
| 133 |
+
long-grace,20261122,7,1,eager-feed-heap,4096,16,278528,262144,0,0,0,0,0,128,33.969,60.641,238.164
|
| 134 |
+
long-grace,20261122,7,2,feed-scan,4096,16,278528,262144,0,0,0,0,0,128,4.397,8.055,135.438
|
| 135 |
+
long-grace,20261122,7,3,lazy-radix,4096,16,278528,262144,0,0,0,0,0,128,10.095,32.000,204.367
|
| 136 |
+
long-grace,20261122,7,4,wide-radix,4096,16,278528,262144,0,0,0,0,0,128,9.260,26.914,1942.172
|
| 137 |
+
long-grace,20261122,8,4,pulsefold,4096,16,278528,262144,0,0,0,0,0,128,8.312,154.367,657.539
|
| 138 |
+
long-grace,20261122,8,5,eager-feed-heap,4096,16,278528,262144,0,0,0,0,0,128,211.995,962.281,87788.234
|
| 139 |
+
long-grace,20261122,8,1,feed-scan,4096,16,278528,262144,0,0,0,0,0,128,5.051,19.250,397.148
|
| 140 |
+
long-grace,20261122,8,2,lazy-radix,4096,16,278528,262144,0,0,0,0,0,128,11.576,37.398,647.523
|
| 141 |
+
long-grace,20261122,8,3,wide-radix,4096,16,278528,262144,0,0,0,0,0,128,92.559,1316.477,40313.500
|
| 142 |
+
long-grace,20261122,9,3,pulsefold,4096,16,278528,262144,0,0,0,0,0,128,5.286,14.164,240.117
|
| 143 |
+
long-grace,20261122,9,4,eager-feed-heap,4096,16,278528,262144,0,0,0,0,0,128,47.917,91.930,335.969
|
| 144 |
+
long-grace,20261122,9,5,feed-scan,4096,16,278528,262144,0,0,0,0,0,128,6.837,23.945,919.102
|
| 145 |
+
long-grace,20261122,9,1,lazy-radix,4096,16,278528,262144,0,0,0,0,0,128,21.605,277.367,967.844
|
| 146 |
+
long-grace,20261122,9,2,wide-radix,4096,16,278528,262144,0,0,0,0,0,128,12.778,40.531,780.141
|
| 147 |
+
long-grace,20261122,10,2,pulsefold,4096,16,278528,262144,0,0,0,0,0,128,3.651,9.625,118.297
|
| 148 |
+
long-grace,20261122,10,3,eager-feed-heap,4096,16,278528,262144,0,0,0,0,0,128,35.960,68.148,1029.570
|
| 149 |
+
long-grace,20261122,10,4,feed-scan,4096,16,278528,262144,0,0,0,0,0,128,4.638,19.406,549.875
|
| 150 |
+
long-grace,20261122,10,5,lazy-radix,4096,16,278528,262144,0,0,0,0,0,128,11.134,34.656,780.609
|
| 151 |
+
long-grace,20261122,10,1,wide-radix,4096,16,278528,262144,0,0,0,0,0,128,60.568,650.969,2464.656
|
| 152 |
+
mixed-slo,20261122,1,1,pulsefold,2048,16,32768,131072,0,33293,33311,6398889746614429506,13889735594377388074,128,28.246,59.078,609.500
|
| 153 |
+
mixed-slo,20261122,1,2,eager-feed-heap,2048,16,32768,131072,0,33293,33311,6398889746614429506,13889735594377388074,128,51.042,172.367,1809.711
|
| 154 |
+
mixed-slo,20261122,1,3,feed-scan,2048,16,32768,131072,0,33293,33311,6398889746614429506,13889735594377388074,128,951.448,2175.094,30215.586
|
| 155 |
+
mixed-slo,20261122,1,4,lazy-radix,2048,16,32768,131072,0,33293,33311,6398889746614429506,13889735594377388074,128,141.021,1211.719,33330.750
|
| 156 |
+
mixed-slo,20261122,1,5,wide-radix,2048,16,32768,131072,0,33293,33311,6398889746614429506,13889735594377388074,128,54.818,689.844,1690.391
|
| 157 |
+
mixed-slo,20261122,2,5,pulsefold,2048,16,32768,131072,0,33293,33311,6398889746614429506,13889735594377388074,128,25.236,36.852,138.414
|
| 158 |
+
mixed-slo,20261122,2,1,eager-feed-heap,2048,16,32768,131072,0,33293,33311,6398889746614429506,13889735594377388074,128,52.720,152.883,3006.406
|
| 159 |
+
mixed-slo,20261122,2,2,feed-scan,2048,16,32768,131072,0,33293,33311,6398889746614429506,13889735594377388074,128,1222.129,2537.422,73752.695
|
| 160 |
+
mixed-slo,20261122,2,3,lazy-radix,2048,16,32768,131072,0,33293,33311,6398889746614429506,13889735594377388074,128,47.048,132.539,798.375
|
| 161 |
+
mixed-slo,20261122,2,4,wide-radix,2048,16,32768,131072,0,33293,33311,6398889746614429506,13889735594377388074,128,31.009,61.422,1150.141
|
| 162 |
+
mixed-slo,20261122,3,4,pulsefold,2048,16,32768,131072,0,33293,33311,6398889746614429506,13889735594377388074,128,25.948,41.070,332.602
|
| 163 |
+
mixed-slo,20261122,3,5,eager-feed-heap,2048,16,32768,131072,0,33293,33311,6398889746614429506,13889735594377388074,128,45.132,62.508,463.812
|
| 164 |
+
mixed-slo,20261122,3,1,feed-scan,2048,16,32768,131072,0,33293,33311,6398889746614429506,13889735594377388074,128,843.655,1682.883,9052.383
|
| 165 |
+
mixed-slo,20261122,3,2,lazy-radix,2048,16,32768,131072,0,33293,33311,6398889746614429506,13889735594377388074,128,40.715,193.883,1951.328
|
| 166 |
+
mixed-slo,20261122,3,3,wide-radix,2048,16,32768,131072,0,33293,33311,6398889746614429506,13889735594377388074,128,31.316,65.406,577.266
|
| 167 |
+
mixed-slo,20261122,4,3,pulsefold,2048,16,32768,131072,0,33293,33311,6398889746614429506,13889735594377388074,128,26.722,43.742,450.984
|
| 168 |
+
mixed-slo,20261122,4,4,eager-feed-heap,2048,16,32768,131072,0,33293,33311,6398889746614429506,13889735594377388074,128,45.712,83.719,754.320
|
| 169 |
+
mixed-slo,20261122,4,5,feed-scan,2048,16,32768,131072,0,33293,33311,6398889746614429506,13889735594377388074,128,1173.894,2454.180,26305.742
|
| 170 |
+
mixed-slo,20261122,4,1,lazy-radix,2048,16,32768,131072,0,33293,33311,6398889746614429506,13889735594377388074,128,38.791,153.820,1536.180
|
| 171 |
+
mixed-slo,20261122,4,2,wide-radix,2048,16,32768,131072,0,33293,33311,6398889746614429506,13889735594377388074,128,31.345,66.656,612.555
|
| 172 |
+
mixed-slo,20261122,5,2,pulsefold,2048,16,32768,131072,0,33293,33311,6398889746614429506,13889735594377388074,128,38.624,59.000,263.664
|
| 173 |
+
mixed-slo,20261122,5,3,eager-feed-heap,2048,16,32768,131072,0,33293,33311,6398889746614429506,13889735594377388074,128,57.730,89.109,272.586
|
| 174 |
+
mixed-slo,20261122,5,4,feed-scan,2048,16,32768,131072,0,33293,33311,6398889746614429506,13889735594377388074,128,1182.125,1973.227,2878.320
|
| 175 |
+
mixed-slo,20261122,5,5,lazy-radix,2048,16,32768,131072,0,33293,33311,6398889746614429506,13889735594377388074,128,34.614,94.281,180.344
|
| 176 |
+
mixed-slo,20261122,5,1,wide-radix,2048,16,32768,131072,0,33293,33311,6398889746614429506,13889735594377388074,128,39.678,86.852,234.258
|
| 177 |
+
mixed-slo,20261122,6,1,pulsefold,2048,16,32768,131072,0,33293,33311,6398889746614429506,13889735594377388074,128,25.469,40.453,188.328
|
| 178 |
+
mixed-slo,20261122,6,2,eager-feed-heap,2048,16,32768,131072,0,33293,33311,6398889746614429506,13889735594377388074,128,46.734,61.188,1865.734
|
| 179 |
+
mixed-slo,20261122,6,3,feed-scan,2048,16,32768,131072,0,33293,33311,6398889746614429506,13889735594377388074,128,794.867,1246.062,1933.484
|
| 180 |
+
mixed-slo,20261122,6,4,lazy-radix,2048,16,32768,131072,0,33293,33311,6398889746614429506,13889735594377388074,128,34.474,93.109,204.992
|
| 181 |
+
mixed-slo,20261122,6,5,wide-radix,2048,16,32768,131072,0,33293,33311,6398889746614429506,13889735594377388074,128,30.479,60.250,659.336
|
| 182 |
+
mixed-slo,20261122,7,5,pulsefold,2048,16,32768,131072,0,33293,33311,6398889746614429506,13889735594377388074,128,25.362,37.398,163.758
|
| 183 |
+
mixed-slo,20261122,7,1,eager-feed-heap,2048,16,32768,131072,0,33293,33311,6398889746614429506,13889735594377388074,128,44.844,69.711,420.234
|
| 184 |
+
mixed-slo,20261122,7,2,feed-scan,2048,16,32768,131072,0,33293,33311,6398889746614429506,13889735594377388074,128,806.605,1364.914,6036.750
|
| 185 |
+
mixed-slo,20261122,7,3,lazy-radix,2048,16,32768,131072,0,33293,33311,6398889746614429506,13889735594377388074,128,36.629,97.328,1095.914
|
| 186 |
+
mixed-slo,20261122,7,4,wide-radix,2048,16,32768,131072,0,33293,33311,6398889746614429506,13889735594377388074,128,29.601,60.555,182.141
|
| 187 |
+
mixed-slo,20261122,8,4,pulsefold,2048,16,32768,131072,0,33293,33311,6398889746614429506,13889735594377388074,128,26.308,41.234,418.750
|
| 188 |
+
mixed-slo,20261122,8,5,eager-feed-heap,2048,16,32768,131072,0,33293,33311,6398889746614429506,13889735594377388074,128,44.385,65.094,459.195
|
| 189 |
+
mixed-slo,20261122,8,1,feed-scan,2048,16,32768,131072,0,33293,33311,6398889746614429506,13889735594377388074,128,809.866,1474.367,2772.773
|
| 190 |
+
mixed-slo,20261122,8,2,lazy-radix,2048,16,32768,131072,0,33293,33311,6398889746614429506,13889735594377388074,128,35.095,96.312,288.633
|
| 191 |
+
mixed-slo,20261122,8,3,wide-radix,2048,16,32768,131072,0,33293,33311,6398889746614429506,13889735594377388074,128,29.658,59.617,187.547
|
| 192 |
+
mixed-slo,20261122,9,3,pulsefold,2048,16,32768,131072,0,33293,33311,6398889746614429506,13889735594377388074,128,26.027,40.445,403.180
|
| 193 |
+
mixed-slo,20261122,9,4,eager-feed-heap,2048,16,32768,131072,0,33293,33311,6398889746614429506,13889735594377388074,128,48.549,84.344,1940.453
|
| 194 |
+
mixed-slo,20261122,9,5,feed-scan,2048,16,32768,131072,0,33293,33311,6398889746614429506,13889735594377388074,128,805.080,1541.734,3355.516
|
| 195 |
+
mixed-slo,20261122,9,1,lazy-radix,2048,16,32768,131072,0,33293,33311,6398889746614429506,13889735594377388074,128,36.316,97.406,668.883
|
| 196 |
+
mixed-slo,20261122,9,2,wide-radix,2048,16,32768,131072,0,33293,33311,6398889746614429506,13889735594377388074,128,30.029,62.664,299.422
|
| 197 |
+
mixed-slo,20261122,10,2,pulsefold,2048,16,32768,131072,0,33293,33311,6398889746614429506,13889735594377388074,128,25.474,37.242,207.570
|
| 198 |
+
mixed-slo,20261122,10,3,eager-feed-heap,2048,16,32768,131072,0,33293,33311,6398889746614429506,13889735594377388074,128,44.741,61.727,646.898
|
| 199 |
+
mixed-slo,20261122,10,4,feed-scan,2048,16,32768,131072,0,33293,33311,6398889746614429506,13889735594377388074,128,839.870,1442.688,19201.625
|
| 200 |
+
mixed-slo,20261122,10,5,lazy-radix,2048,16,32768,131072,0,33293,33311,6398889746614429506,13889735594377388074,128,34.830,97.016,236.680
|
| 201 |
+
mixed-slo,20261122,10,1,wide-radix,2048,16,32768,131072,0,33293,33311,6398889746614429506,13889735594377388074,128,31.332,69.633,261.398
|
| 202 |
+
rotating-outages,20261122,1,1,pulsefold,1024,16,10240,57344,8192,16384,16384,11924576985590758685,13917617264041405065,128,25.106,61.492,244.891
|
| 203 |
+
rotating-outages,20261122,1,2,eager-feed-heap,1024,16,10240,57344,8192,16384,16384,11924576985590758685,13917617264041405065,128,42.126,72.297,196.930
|
| 204 |
+
rotating-outages,20261122,1,3,feed-scan,1024,16,10240,57344,8192,16384,16384,11924576985590758685,13917617264041405065,128,350.783,1147.953,2492.125
|
| 205 |
+
rotating-outages,20261122,1,4,lazy-radix,1024,16,10240,57344,8192,16384,16384,11924576985590758685,13917617264041405065,128,41.330,88.172,237.461
|
| 206 |
+
rotating-outages,20261122,1,5,wide-radix,1024,16,10240,57344,8192,16384,16384,11924576985590758685,13917617264041405065,128,34.895,83.250,213.672
|
| 207 |
+
rotating-outages,20261122,2,5,pulsefold,1024,16,10240,57344,8192,16384,16384,11924576985590758685,13917617264041405065,128,26.699,68.227,775.758
|
| 208 |
+
rotating-outages,20261122,2,1,eager-feed-heap,1024,16,10240,57344,8192,16384,16384,11924576985590758685,13917617264041405065,128,42.404,74.172,184.961
|
| 209 |
+
rotating-outages,20261122,2,2,feed-scan,1024,16,10240,57344,8192,16384,16384,11924576985590758685,13917617264041405065,128,349.302,1120.719,2737.414
|
| 210 |
+
rotating-outages,20261122,2,3,lazy-radix,1024,16,10240,57344,8192,16384,16384,11924576985590758685,13917617264041405065,128,40.577,87.000,162.977
|
| 211 |
+
rotating-outages,20261122,2,4,wide-radix,1024,16,10240,57344,8192,16384,16384,11924576985590758685,13917617264041405065,128,35.106,83.953,162.508
|
| 212 |
+
rotating-outages,20261122,3,4,pulsefold,1024,16,10240,57344,8192,16384,16384,11924576985590758685,13917617264041405065,128,24.762,60.875,142.320
|
| 213 |
+
rotating-outages,20261122,3,5,eager-feed-heap,1024,16,10240,57344,8192,16384,16384,11924576985590758685,13917617264041405065,128,42.184,73.305,219.852
|
| 214 |
+
rotating-outages,20261122,3,1,feed-scan,1024,16,10240,57344,8192,16384,16384,11924576985590758685,13917617264041405065,128,347.860,1099.438,1936.773
|
| 215 |
+
rotating-outages,20261122,3,2,lazy-radix,1024,16,10240,57344,8192,16384,16384,11924576985590758685,13917617264041405065,128,41.538,90.211,282.766
|
| 216 |
+
rotating-outages,20261122,3,3,wide-radix,1024,16,10240,57344,8192,16384,16384,11924576985590758685,13917617264041405065,128,34.559,82.930,196.148
|
| 217 |
+
rotating-outages,20261122,4,3,pulsefold,1024,16,10240,57344,8192,16384,16384,11924576985590758685,13917617264041405065,128,24.994,64.711,149.914
|
| 218 |
+
rotating-outages,20261122,4,4,eager-feed-heap,1024,16,10240,57344,8192,16384,16384,11924576985590758685,13917617264041405065,128,44.251,73.234,719.266
|
| 219 |
+
rotating-outages,20261122,4,5,feed-scan,1024,16,10240,57344,8192,16384,16384,11924576985590758685,13917617264041405065,128,345.268,1094.516,2085.664
|
| 220 |
+
rotating-outages,20261122,4,1,lazy-radix,1024,16,10240,57344,8192,16384,16384,11924576985590758685,13917617264041405065,128,41.404,89.898,334.008
|
| 221 |
+
rotating-outages,20261122,4,2,wide-radix,1024,16,10240,57344,8192,16384,16384,11924576985590758685,13917617264041405065,128,34.607,83.797,185.977
|
| 222 |
+
rotating-outages,20261122,5,2,pulsefold,1024,16,10240,57344,8192,16384,16384,11924576985590758685,13917617264041405065,128,25.478,69.555,224.086
|
| 223 |
+
rotating-outages,20261122,5,3,eager-feed-heap,1024,16,10240,57344,8192,16384,16384,11924576985590758685,13917617264041405065,128,42.376,73.859,190.281
|
| 224 |
+
rotating-outages,20261122,5,4,feed-scan,1024,16,10240,57344,8192,16384,16384,11924576985590758685,13917617264041405065,128,348.585,1189.023,3036.992
|
| 225 |
+
rotating-outages,20261122,5,5,lazy-radix,1024,16,10240,57344,8192,16384,16384,11924576985590758685,13917617264041405065,128,43.175,89.039,470.227
|
| 226 |
+
rotating-outages,20261122,5,1,wide-radix,1024,16,10240,57344,8192,16384,16384,11924576985590758685,13917617264041405065,128,35.363,83.719,447.383
|
| 227 |
+
rotating-outages,20261122,6,1,pulsefold,1024,16,10240,57344,8192,16384,16384,11924576985590758685,13917617264041405065,128,27.342,68.930,634.773
|
| 228 |
+
rotating-outages,20261122,6,2,eager-feed-heap,1024,16,10240,57344,8192,16384,16384,11924576985590758685,13917617264041405065,128,42.709,74.016,219.617
|
| 229 |
+
rotating-outages,20261122,6,3,feed-scan,1024,16,10240,57344,8192,16384,16384,11924576985590758685,13917617264041405065,128,347.600,1257.016,1825.281
|
| 230 |
+
rotating-outages,20261122,6,4,lazy-radix,1024,16,10240,57344,8192,16384,16384,11924576985590758685,13917617264041405065,128,41.726,89.039,459.977
|
| 231 |
+
rotating-outages,20261122,6,5,wide-radix,1024,16,10240,57344,8192,16384,16384,11924576985590758685,13917617264041405065,128,34.139,81.688,200.844
|
| 232 |
+
rotating-outages,20261122,7,5,pulsefold,1024,16,10240,57344,8192,16384,16384,11924576985590758685,13917617264041405065,128,25.218,62.125,175.648
|
| 233 |
+
rotating-outages,20261122,7,1,eager-feed-heap,1024,16,10240,57344,8192,16384,16384,11924576985590758685,13917617264041405065,128,42.117,72.844,203.898
|
| 234 |
+
rotating-outages,20261122,7,2,feed-scan,1024,16,10240,57344,8192,16384,16384,11924576985590758685,13917617264041405065,128,354.879,1294.414,3834.812
|
| 235 |
+
rotating-outages,20261122,7,3,lazy-radix,1024,16,10240,57344,8192,16384,16384,11924576985590758685,13917617264041405065,128,40.910,88.414,164.383
|
| 236 |
+
rotating-outages,20261122,7,4,wide-radix,1024,16,10240,57344,8192,16384,16384,11924576985590758685,13917617264041405065,128,34.236,83.094,168.844
|
| 237 |
+
rotating-outages,20261122,8,4,pulsefold,1024,16,10240,57344,8192,16384,16384,11924576985590758685,13917617264041405065,128,26.896,64.312,609.344
|
| 238 |
+
rotating-outages,20261122,8,5,eager-feed-heap,1024,16,10240,57344,8192,16384,16384,11924576985590758685,13917617264041405065,128,50.484,209.375,2218.672
|
| 239 |
+
rotating-outages,20261122,8,1,feed-scan,1024,16,10240,57344,8192,16384,16384,11924576985590758685,13917617264041405065,128,360.667,1432.430,1939.828
|
| 240 |
+
rotating-outages,20261122,8,2,lazy-radix,1024,16,10240,57344,8192,16384,16384,11924576985590758685,13917617264041405065,128,41.654,90.211,159.688
|
| 241 |
+
rotating-outages,20261122,8,3,wide-radix,1024,16,10240,57344,8192,16384,16384,11924576985590758685,13917617264041405065,128,34.489,83.398,156.320
|
| 242 |
+
rotating-outages,20261122,9,3,pulsefold,1024,16,10240,57344,8192,16384,16384,11924576985590758685,13917617264041405065,128,25.243,61.891,215.867
|
| 243 |
+
rotating-outages,20261122,9,4,eager-feed-heap,1024,16,10240,57344,8192,16384,16384,11924576985590758685,13917617264041405065,128,42.094,73.148,161.016
|
| 244 |
+
rotating-outages,20261122,9,5,feed-scan,1024,16,10240,57344,8192,16384,16384,11924576985590758685,13917617264041405065,128,362.225,1291.992,2585.469
|
| 245 |
+
rotating-outages,20261122,9,1,lazy-radix,1024,16,10240,57344,8192,16384,16384,11924576985590758685,13917617264041405065,128,42.616,94.047,449.414
|
| 246 |
+
rotating-outages,20261122,9,2,wide-radix,1024,16,10240,57344,8192,16384,16384,11924576985590758685,13917617264041405065,128,35.807,91.547,509.109
|
| 247 |
+
rotating-outages,20261122,10,2,pulsefold,1024,16,10240,57344,8192,16384,16384,11924576985590758685,13917617264041405065,128,30.460,161.805,1475.938
|
| 248 |
+
rotating-outages,20261122,10,3,eager-feed-heap,1024,16,10240,57344,8192,16384,16384,11924576985590758685,13917617264041405065,128,43.346,74.953,444.562
|
| 249 |
+
rotating-outages,20261122,10,4,feed-scan,1024,16,10240,57344,8192,16384,16384,11924576985590758685,13917617264041405065,128,351.966,1385.406,1703.148
|
| 250 |
+
rotating-outages,20261122,10,5,lazy-radix,1024,16,10240,57344,8192,16384,16384,11924576985590758685,13917617264041405065,128,42.351,90.766,285.742
|
| 251 |
+
rotating-outages,20261122,10,1,wide-radix,1024,16,10240,57344,8192,16384,16384,11924576985590758685,13917617264041405065,128,34.300,84.266,147.172
|
| 252 |
+
high-churn,20261122,1,1,pulsefold,128,16,768,32768,0,434223,434235,1824176941322847738,1611683563331785586,128,398.443,957.906,998.898
|
| 253 |
+
high-churn,20261122,1,2,eager-feed-heap,128,16,768,32768,0,434223,434235,1824176941322847738,1611683563331785586,128,708.791,906.266,1328.219
|
| 254 |
+
high-churn,20261122,1,3,feed-scan,128,16,768,32768,0,434223,434235,1824176941322847738,1611683563331785586,128,608.592,1377.586,2305.289
|
| 255 |
+
high-churn,20261122,1,4,lazy-radix,128,16,768,32768,0,434223,434235,1824176941322847738,1611683563331785586,128,500.546,1027.141,2877.188
|
| 256 |
+
high-churn,20261122,1,5,wide-radix,128,16,768,32768,0,434223,434235,1824176941322847738,1611683563331785586,128,444.511,925.273,1176.742
|
| 257 |
+
high-churn,20261122,2,5,pulsefold,128,16,768,32768,0,434223,434235,1824176941322847738,1611683563331785586,128,462.220,1267.500,2303.406
|
| 258 |
+
high-churn,20261122,2,1,eager-feed-heap,128,16,768,32768,0,434223,434235,1824176941322847738,1611683563331785586,128,775.820,1836.625,4812.203
|
| 259 |
+
high-churn,20261122,2,2,feed-scan,128,16,768,32768,0,434223,434235,1824176941322847738,1611683563331785586,128,653.959,1522.648,2131.672
|
| 260 |
+
high-churn,20261122,2,3,lazy-radix,128,16,768,32768,0,434223,434235,1824176941322847738,1611683563331785586,128,546.761,1227.203,1446.672
|
| 261 |
+
high-churn,20261122,2,4,wide-radix,128,16,768,32768,0,434223,434235,1824176941322847738,1611683563331785586,128,456.001,1542.438,2808.375
|
| 262 |
+
high-churn,20261122,3,4,pulsefold,128,16,768,32768,0,434223,434235,1824176941322847738,1611683563331785586,128,462.449,1269.617,2110.938
|
| 263 |
+
high-churn,20261122,3,5,eager-feed-heap,128,16,768,32768,0,434223,434235,1824176941322847738,1611683563331785586,128,1024.291,5761.109,26621.438
|
| 264 |
+
high-churn,20261122,3,1,feed-scan,128,16,768,32768,0,434223,434235,1824176941322847738,1611683563331785586,128,669.456,1722.086,2256.312
|
| 265 |
+
high-churn,20261122,3,2,lazy-radix,128,16,768,32768,0,434223,434235,1824176941322847738,1611683563331785586,128,591.583,1352.312,8201.281
|
| 266 |
+
high-churn,20261122,3,3,wide-radix,128,16,768,32768,0,434223,434235,1824176941322847738,1611683563331785586,128,520.199,1749.000,2064.461
|
| 267 |
+
high-churn,20261122,4,3,pulsefold,128,16,768,32768,0,434223,434235,1824176941322847738,1611683563331785586,128,803.648,20668.484,28691.695
|
| 268 |
+
high-churn,20261122,4,4,eager-feed-heap,128,16,768,32768,0,434223,434235,1824176941322847738,1611683563331785586,128,1180.198,13499.750,24538.352
|
| 269 |
+
high-churn,20261122,4,5,feed-scan,128,16,768,32768,0,434223,434235,1824176941322847738,1611683563331785586,128,668.293,1451.367,1498.234
|
| 270 |
+
high-churn,20261122,4,1,lazy-radix,128,16,768,32768,0,434223,434235,1824176941322847738,1611683563331785586,128,551.843,1161.094,2148.805
|
| 271 |
+
high-churn,20261122,4,2,wide-radix,128,16,768,32768,0,434223,434235,1824176941322847738,1611683563331785586,128,596.379,1624.281,11459.773
|
| 272 |
+
high-churn,20261122,5,2,pulsefold,128,16,768,32768,0,434223,434235,1824176941322847738,1611683563331785586,128,441.667,960.641,1198.961
|
| 273 |
+
high-churn,20261122,5,3,eager-feed-heap,128,16,768,32768,0,434223,434235,1824176941322847738,1611683563331785586,128,788.919,1665.664,1857.750
|
| 274 |
+
high-churn,20261122,5,4,feed-scan,128,16,768,32768,0,434223,434235,1824176941322847738,1611683563331785586,128,663.847,1232.367,1499.797
|
| 275 |
+
high-churn,20261122,5,5,lazy-radix,128,16,768,32768,0,434223,434235,1824176941322847738,1611683563331785586,128,628.202,1718.328,3000.375
|
| 276 |
+
high-churn,20261122,5,1,wide-radix,128,16,768,32768,0,434223,434235,1824176941322847738,1611683563331785586,128,453.259,758.625,1059.695
|
| 277 |
+
high-churn,20261122,6,1,pulsefold,128,16,768,32768,0,434223,434235,1824176941322847738,1611683563331785586,128,437.604,1145.680,1469.914
|
| 278 |
+
high-churn,20261122,6,2,eager-feed-heap,128,16,768,32768,0,434223,434235,1824176941322847738,1611683563331785586,128,1060.875,6589.594,27487.883
|
| 279 |
+
high-churn,20261122,6,3,feed-scan,128,16,768,32768,0,434223,434235,1824176941322847738,1611683563331785586,128,880.270,5378.117,9058.258
|
| 280 |
+
high-churn,20261122,6,4,lazy-radix,128,16,768,32768,0,434223,434235,1824176941322847738,1611683563331785586,128,567.527,1900.625,2550.492
|
| 281 |
+
high-churn,20261122,6,5,wide-radix,128,16,768,32768,0,434223,434235,1824176941322847738,1611683563331785586,128,464.223,1215.078,1779.430
|
| 282 |
+
high-churn,20261122,7,5,pulsefold,128,16,768,32768,0,434223,434235,1824176941322847738,1611683563331785586,128,414.329,1023.156,2334.000
|
| 283 |
+
high-churn,20261122,7,1,eager-feed-heap,128,16,768,32768,0,434223,434235,1824176941322847738,1611683563331785586,128,948.165,2639.688,22467.711
|
| 284 |
+
high-churn,20261122,7,2,feed-scan,128,16,768,32768,0,434223,434235,1824176941322847738,1611683563331785586,128,909.084,15044.539,26507.281
|
| 285 |
+
high-churn,20261122,7,3,lazy-radix,128,16,768,32768,0,434223,434235,1824176941322847738,1611683563331785586,128,518.141,1092.711,1409.039
|
| 286 |
+
high-churn,20261122,7,4,wide-radix,128,16,768,32768,0,434223,434235,1824176941322847738,1611683563331785586,128,455.167,973.547,3714.766
|
| 287 |
+
high-churn,20261122,8,4,pulsefold,128,16,768,32768,0,434223,434235,1824176941322847738,1611683563331785586,128,443.002,1882.469,4151.766
|
| 288 |
+
high-churn,20261122,8,5,eager-feed-heap,128,16,768,32768,0,434223,434235,1824176941322847738,1611683563331785586,128,738.545,1476.875,2170.398
|
| 289 |
+
high-churn,20261122,8,1,feed-scan,128,16,768,32768,0,434223,434235,1824176941322847738,1611683563331785586,128,619.535,1103.195,1500.977
|
| 290 |
+
high-churn,20261122,8,2,lazy-radix,128,16,768,32768,0,434223,434235,1824176941322847738,1611683563331785586,128,526.509,1100.773,1451.055
|
| 291 |
+
high-churn,20261122,8,3,wide-radix,128,16,768,32768,0,434223,434235,1824176941322847738,1611683563331785586,128,448.077,953.055,2565.047
|
| 292 |
+
high-churn,20261122,9,3,pulsefold,128,16,768,32768,0,434223,434235,1824176941322847738,1611683563331785586,128,451.382,1647.125,6427.406
|
| 293 |
+
high-churn,20261122,9,4,eager-feed-heap,128,16,768,32768,0,434223,434235,1824176941322847738,1611683563331785586,128,745.819,1447.766,2752.586
|
| 294 |
+
high-churn,20261122,9,5,feed-scan,128,16,768,32768,0,434223,434235,1824176941322847738,1611683563331785586,128,617.730,1450.500,3111.094
|
| 295 |
+
high-churn,20261122,9,1,lazy-radix,128,16,768,32768,0,434223,434235,1824176941322847738,1611683563331785586,128,556.282,1610.820,2523.188
|
| 296 |
+
high-churn,20261122,9,2,wide-radix,128,16,768,32768,0,434223,434235,1824176941322847738,1611683563331785586,128,449.885,1361.938,1631.867
|
| 297 |
+
high-churn,20261122,10,2,pulsefold,128,16,768,32768,0,434223,434235,1824176941322847738,1611683563331785586,128,564.879,2863.930,6113.188
|
| 298 |
+
high-churn,20261122,10,3,eager-feed-heap,128,16,768,32768,0,434223,434235,1824176941322847738,1611683563331785586,128,910.837,1121.031,1254.750
|
| 299 |
+
high-churn,20261122,10,4,feed-scan,128,16,768,32768,0,434223,434235,1824176941322847738,1611683563331785586,128,768.816,931.617,942.719
|
| 300 |
+
high-churn,20261122,10,5,lazy-radix,128,16,768,32768,0,434223,434235,1824176941322847738,1611683563331785586,128,663.449,833.578,1212.344
|
| 301 |
+
high-churn,20261122,10,1,wide-radix,128,16,768,32768,0,434223,434235,1824176941322847738,1611683563331785586,128,458.088,842.812,1530.156
|
| 302 |
+
synchronous-storm,20261122,1,1,pulsefold,512,32,6145,32768,8,131072,131072,9492686546125742442,8973000424520918132,128,35.003,567.328,720.367
|
| 303 |
+
synchronous-storm,20261122,1,2,eager-feed-heap,512,32,6145,32768,8,131072,131072,9492686546125742442,8973000424520918132,128,87.127,1056.328,1669.031
|
| 304 |
+
synchronous-storm,20261122,1,3,feed-scan,512,32,6145,32768,8,131072,131072,9492686546125742442,8973000424520918132,128,82.683,2287.914,2393.859
|
| 305 |
+
synchronous-storm,20261122,1,4,lazy-radix,512,32,6145,32768,8,131072,131072,9492686546125742442,8973000424520918132,128,35.918,584.539,679.602
|
| 306 |
+
synchronous-storm,20261122,1,5,wide-radix,512,32,6145,32768,8,131072,131072,9492686546125742442,8973000424520918132,128,33.762,550.820,658.398
|
| 307 |
+
synchronous-storm,20261122,2,5,pulsefold,512,32,6145,32768,8,131072,131072,9492686546125742442,8973000424520918132,128,24.499,403.406,548.469
|
| 308 |
+
synchronous-storm,20261122,2,1,eager-feed-heap,512,32,6145,32768,8,131072,131072,9492686546125742442,8973000424520918132,128,61.955,610.672,1171.023
|
| 309 |
+
synchronous-storm,20261122,2,2,feed-scan,512,32,6145,32768,8,131072,131072,9492686546125742442,8973000424520918132,128,82.238,2259.359,2278.289
|
| 310 |
+
synchronous-storm,20261122,2,3,lazy-radix,512,32,6145,32768,8,131072,131072,9492686546125742442,8973000424520918132,128,35.867,580.078,592.438
|
| 311 |
+
synchronous-storm,20261122,2,4,wide-radix,512,32,6145,32768,8,131072,131072,9492686546125742442,8973000424520918132,128,33.851,558.250,659.961
|
| 312 |
+
synchronous-storm,20261122,3,4,pulsefold,512,32,6145,32768,8,131072,131072,9492686546125742442,8973000424520918132,128,23.853,402.391,409.047
|
| 313 |
+
synchronous-storm,20261122,3,5,eager-feed-heap,512,32,6145,32768,8,131072,131072,9492686546125742442,8973000424520918132,128,59.590,605.578,612.391
|
| 314 |
+
synchronous-storm,20261122,3,1,feed-scan,512,32,6145,32768,8,131072,131072,9492686546125742442,8973000424520918132,128,81.191,2167.430,2220.078
|
| 315 |
+
synchronous-storm,20261122,3,2,lazy-radix,512,32,6145,32768,8,131072,131072,9492686546125742442,8973000424520918132,128,36.223,575.383,587.430
|
| 316 |
+
synchronous-storm,20261122,3,3,wide-radix,512,32,6145,32768,8,131072,131072,9492686546125742442,8973000424520918132,128,33.702,550.500,665.914
|
| 317 |
+
synchronous-storm,20261122,4,3,pulsefold,512,32,6145,32768,8,131072,131072,9492686546125742442,8973000424520918132,128,23.873,402.859,408.109
|
| 318 |
+
synchronous-storm,20261122,4,4,eager-feed-heap,512,32,6145,32768,8,131072,131072,9492686546125742442,8973000424520918132,128,58.830,609.891,709.250
|
| 319 |
+
synchronous-storm,20261122,4,5,feed-scan,512,32,6145,32768,8,131072,131072,9492686546125742442,8973000424520918132,128,82.876,2313.195,2378.281
|
| 320 |
+
synchronous-storm,20261122,4,1,lazy-radix,512,32,6145,32768,8,131072,131072,9492686546125742442,8973000424520918132,128,36.071,582.422,775.914
|
| 321 |
+
synchronous-storm,20261122,4,2,wide-radix,512,32,6145,32768,8,131072,131072,9492686546125742442,8973000424520918132,128,34.368,556.062,682.102
|
| 322 |
+
synchronous-storm,20261122,5,2,pulsefold,512,32,6145,32768,8,131072,131072,9492686546125742442,8973000424520918132,128,24.274,403.719,505.984
|
| 323 |
+
synchronous-storm,20261122,5,3,eager-feed-heap,512,32,6145,32768,8,131072,131072,9492686546125742442,8973000424520918132,128,59.168,621.781,762.305
|
| 324 |
+
synchronous-storm,20261122,5,4,feed-scan,512,32,6145,32768,8,131072,131072,9492686546125742442,8973000424520918132,128,81.682,2263.273,2343.938
|
| 325 |
+
synchronous-storm,20261122,5,5,lazy-radix,512,32,6145,32768,8,131072,131072,9492686546125742442,8973000424520918132,128,35.762,587.438,673.805
|
| 326 |
+
synchronous-storm,20261122,5,1,wide-radix,512,32,6145,32768,8,131072,131072,9492686546125742442,8973000424520918132,128,34.193,566.156,667.469
|
| 327 |
+
synchronous-storm,20261122,6,1,pulsefold,512,32,6145,32768,8,131072,131072,9492686546125742442,8973000424520918132,128,24.804,408.422,547.062
|
| 328 |
+
synchronous-storm,20261122,6,2,eager-feed-heap,512,32,6145,32768,8,131072,131072,9492686546125742442,8973000424520918132,128,59.706,610.828,963.922
|
| 329 |
+
synchronous-storm,20261122,6,3,feed-scan,512,32,6145,32768,8,131072,131072,9492686546125742442,8973000424520918132,128,82.562,2198.406,2421.391
|
| 330 |
+
synchronous-storm,20261122,6,4,lazy-radix,512,32,6145,32768,8,131072,131072,9492686546125742442,8973000424520918132,128,36.235,583.047,707.453
|
| 331 |
+
synchronous-storm,20261122,6,5,wide-radix,512,32,6145,32768,8,131072,131072,9492686546125742442,8973000424520918132,128,34.218,556.453,690.320
|
| 332 |
+
synchronous-storm,20261122,7,5,pulsefold,512,32,6145,32768,8,131072,131072,9492686546125742442,8973000424520918132,128,24.324,403.172,530.477
|
| 333 |
+
synchronous-storm,20261122,7,1,eager-feed-heap,512,32,6145,32768,8,131072,131072,9492686546125742442,8973000424520918132,128,59.045,609.023,610.352
|
| 334 |
+
synchronous-storm,20261122,7,2,feed-scan,512,32,6145,32768,8,131072,131072,9492686546125742442,8973000424520918132,128,81.857,2236.195,2419.984
|
| 335 |
+
synchronous-storm,20261122,7,3,lazy-radix,512,32,6145,32768,8,131072,131072,9492686546125742442,8973000424520918132,128,35.894,584.852,682.188
|
| 336 |
+
synchronous-storm,20261122,7,4,wide-radix,512,32,6145,32768,8,131072,131072,9492686546125742442,8973000424520918132,128,34.310,550.117,556.523
|
| 337 |
+
synchronous-storm,20261122,8,4,pulsefold,512,32,6145,32768,8,131072,131072,9492686546125742442,8973000424520918132,128,25.115,402.703,550.031
|
| 338 |
+
synchronous-storm,20261122,8,5,eager-feed-heap,512,32,6145,32768,8,131072,131072,9492686546125742442,8973000424520918132,128,59.016,608.086,613.016
|
| 339 |
+
synchronous-storm,20261122,8,1,feed-scan,512,32,6145,32768,8,131072,131072,9492686546125742442,8973000424520918132,128,84.229,2247.859,2461.609
|
| 340 |
+
synchronous-storm,20261122,8,2,lazy-radix,512,32,6145,32768,8,131072,131072,9492686546125742442,8973000424520918132,128,36.173,577.734,713.789
|
| 341 |
+
synchronous-storm,20261122,8,3,wide-radix,512,32,6145,32768,8,131072,131072,9492686546125742442,8973000424520918132,128,33.559,549.094,653.312
|
| 342 |
+
synchronous-storm,20261122,9,3,pulsefold,512,32,6145,32768,8,131072,131072,9492686546125742442,8973000424520918132,128,25.174,403.797,416.867
|
| 343 |
+
synchronous-storm,20261122,9,4,eager-feed-heap,512,32,6145,32768,8,131072,131072,9492686546125742442,8973000424520918132,128,60.117,611.062,847.031
|
| 344 |
+
synchronous-storm,20261122,9,5,feed-scan,512,32,6145,32768,8,131072,131072,9492686546125742442,8973000424520918132,128,83.817,2289.875,2453.242
|
| 345 |
+
synchronous-storm,20261122,9,1,lazy-radix,512,32,6145,32768,8,131072,131072,9492686546125742442,8973000424520918132,128,36.972,595.336,803.375
|
| 346 |
+
synchronous-storm,20261122,9,2,wide-radix,512,32,6145,32768,8,131072,131072,9492686546125742442,8973000424520918132,128,34.390,551.992,558.633
|
| 347 |
+
synchronous-storm,20261122,10,2,pulsefold,512,32,6145,32768,8,131072,131072,9492686546125742442,8973000424520918132,128,24.890,403.805,600.188
|
| 348 |
+
synchronous-storm,20261122,10,3,eager-feed-heap,512,32,6145,32768,8,131072,131072,9492686546125742442,8973000424520918132,128,59.368,607.070,612.391
|
| 349 |
+
synchronous-storm,20261122,10,4,feed-scan,512,32,6145,32768,8,131072,131072,9492686546125742442,8973000424520918132,128,81.325,2235.422,2281.266
|
| 350 |
+
synchronous-storm,20261122,10,5,lazy-radix,512,32,6145,32768,8,131072,131072,9492686546125742442,8973000424520918132,128,35.772,586.188,679.602
|
| 351 |
+
synchronous-storm,20261122,10,1,wide-radix,512,32,6145,32768,8,131072,131072,9492686546125742442,8973000424520918132,128,34.565,560.047,565.367
|
| 352 |
+
poll-heavy,20261122,1,1,pulsefold,256,8,20480,32768,229376,0,0,0,0,128,1.834,3.523,122.367
|
| 353 |
+
poll-heavy,20261122,1,2,eager-feed-heap,256,8,20480,32768,229376,0,0,0,0,128,5.477,8.141,119.555
|
| 354 |
+
poll-heavy,20261122,1,3,feed-scan,256,8,20480,32768,229376,0,0,0,0,128,1.708,4.695,149.914
|
| 355 |
+
poll-heavy,20261122,1,4,lazy-radix,256,8,20480,32768,229376,0,0,0,0,128,8.361,15.414,442.453
|
| 356 |
+
poll-heavy,20261122,1,5,wide-radix,256,8,20480,32768,229376,0,0,0,0,128,6.292,11.344,128.781
|
| 357 |
+
poll-heavy,20261122,2,5,pulsefold,256,8,20480,32768,229376,0,0,0,0,128,1.906,3.523,147.094
|
| 358 |
+
poll-heavy,20261122,2,1,eager-feed-heap,256,8,20480,32768,229376,0,0,0,0,128,5.529,8.219,113.211
|
| 359 |
+
poll-heavy,20261122,2,2,feed-scan,256,8,20480,32768,229376,0,0,0,0,128,1.589,4.695,5.398
|
| 360 |
+
poll-heavy,20261122,2,3,lazy-radix,256,8,20480,32768,229376,0,0,0,0,128,8.047,15.258,159.531
|
| 361 |
+
poll-heavy,20261122,2,4,wide-radix,256,8,20480,32768,229376,0,0,0,0,128,6.314,11.344,127.844
|
| 362 |
+
poll-heavy,20261122,3,4,pulsefold,256,8,20480,32768,229376,0,0,0,0,128,1.770,3.445,4.383
|
| 363 |
+
poll-heavy,20261122,3,5,eager-feed-heap,256,8,20480,32768,229376,0,0,0,0,128,5.492,8.211,118.062
|
| 364 |
+
poll-heavy,20261122,3,1,feed-scan,256,8,20480,32768,229376,0,0,0,0,128,1.569,4.688,5.164
|
| 365 |
+
poll-heavy,20261122,3,2,lazy-radix,256,8,20480,32768,229376,0,0,0,0,128,8.006,15.258,125.422
|
| 366 |
+
poll-heavy,20261122,3,3,wide-radix,256,8,20480,32768,229376,0,0,0,0,128,6.374,11.109,145.602
|
| 367 |
+
poll-heavy,20261122,4,3,pulsefold,256,8,20480,32768,229376,0,0,0,0,128,1.833,3.445,125.969
|
| 368 |
+
poll-heavy,20261122,4,4,eager-feed-heap,256,8,20480,32768,229376,0,0,0,0,128,5.518,8.297,126.750
|
| 369 |
+
poll-heavy,20261122,4,5,feed-scan,256,8,20480,32768,229376,0,0,0,0,128,1.569,4.695,5.164
|
| 370 |
+
poll-heavy,20261122,4,1,lazy-radix,256,8,20480,32768,229376,0,0,0,0,128,8.026,15.414,160.008
|
| 371 |
+
poll-heavy,20261122,4,2,wide-radix,256,8,20480,32768,229376,0,0,0,0,128,6.298,11.266,121.898
|
| 372 |
+
poll-heavy,20261122,5,2,pulsefold,256,8,20480,32768,229376,0,0,0,0,128,1.863,3.445,193.883
|
| 373 |
+
poll-heavy,20261122,5,3,eager-feed-heap,256,8,20480,32768,229376,0,0,0,0,128,5.517,8.062,250.688
|
| 374 |
+
poll-heavy,20261122,5,4,feed-scan,256,8,20480,32768,229376,0,0,0,0,128,1.562,4.617,5.008
|
| 375 |
+
poll-heavy,20261122,5,5,lazy-radix,256,8,20480,32768,229376,0,0,0,0,128,8.353,15.414,416.398
|
| 376 |
+
poll-heavy,20261122,5,1,wide-radix,256,8,20480,32768,229376,0,0,0,0,128,6.333,11.352,149.906
|
| 377 |
+
poll-heavy,20261122,6,1,pulsefold,256,8,20480,32768,229376,0,0,0,0,128,1.773,3.445,4.539
|
| 378 |
+
poll-heavy,20261122,6,2,eager-feed-heap,256,8,20480,32768,229376,0,0,0,0,128,5.829,8.297,450.039
|
| 379 |
+
poll-heavy,20261122,6,3,feed-scan,256,8,20480,32768,229376,0,0,0,0,128,2.025,4.773,523.273
|
| 380 |
+
poll-heavy,20261122,6,4,lazy-radix,256,8,20480,32768,229376,0,0,0,0,128,7.981,15.336,130.742
|
| 381 |
+
poll-heavy,20261122,6,5,wide-radix,256,8,20480,32768,229376,0,0,0,0,128,6.664,11.500,347.078
|
| 382 |
+
poll-heavy,20261122,7,5,pulsefold,256,8,20480,32768,229376,0,0,0,0,128,1.785,3.445,29.023
|
| 383 |
+
poll-heavy,20261122,7,1,eager-feed-heap,256,8,20480,32768,229376,0,0,0,0,128,5.482,8.133,121.352
|
| 384 |
+
poll-heavy,20261122,7,2,feed-scan,256,8,20480,32768,229376,0,0,0,0,128,1.654,4.695,181.750
|
| 385 |
+
poll-heavy,20261122,7,3,lazy-radix,256,8,20480,32768,229376,0,0,0,0,128,7.944,15.180,123.773
|
| 386 |
+
poll-heavy,20261122,7,4,wide-radix,256,8,20480,32768,229376,0,0,0,0,128,6.364,11.188,152.023
|
| 387 |
+
poll-heavy,20261122,8,4,pulsefold,256,8,20480,32768,229376,0,0,0,0,128,1.773,3.445,4.852
|
| 388 |
+
poll-heavy,20261122,8,5,eager-feed-heap,256,8,20480,32768,229376,0,0,0,0,128,5.843,8.531,171.500
|
| 389 |
+
poll-heavy,20261122,8,1,feed-scan,256,8,20480,32768,229376,0,0,0,0,128,1.570,4.695,4.930
|
| 390 |
+
poll-heavy,20261122,8,2,lazy-radix,256,8,20480,32768,229376,0,0,0,0,128,8.047,15.336,187.078
|
| 391 |
+
poll-heavy,20261122,8,3,wide-radix,256,8,20480,32768,229376,0,0,0,0,128,6.442,11.508,312.180
|
| 392 |
+
poll-heavy,20261122,9,3,pulsefold,256,8,20480,32768,229376,0,0,0,0,128,1.769,3.445,4.461
|
| 393 |
+
poll-heavy,20261122,9,4,eager-feed-heap,256,8,20480,32768,229376,0,0,0,0,128,5.477,8.141,115.094
|
| 394 |
+
poll-heavy,20261122,9,5,feed-scan,256,8,20480,32768,229376,0,0,0,0,128,1.583,4.695,5.477
|
| 395 |
+
poll-heavy,20261122,9,1,lazy-radix,256,8,20480,32768,229376,0,0,0,0,128,7.979,15.258,137.469
|
| 396 |
+
poll-heavy,20261122,9,2,wide-radix,256,8,20480,32768,229376,0,0,0,0,128,6.352,11.430,158.984
|
| 397 |
+
poll-heavy,20261122,10,2,pulsefold,256,8,20480,32768,229376,0,0,0,0,128,1.877,3.516,174.633
|
| 398 |
+
poll-heavy,20261122,10,3,eager-feed-heap,256,8,20480,32768,229376,0,0,0,0,128,5.578,8.141,170.094
|
| 399 |
+
poll-heavy,20261122,10,4,feed-scan,256,8,20480,32768,229376,0,0,0,0,128,1.573,4.695,22.070
|
| 400 |
+
poll-heavy,20261122,10,5,lazy-radix,256,8,20480,32768,229376,0,0,0,0,128,7.947,15.492,127.062
|
| 401 |
+
poll-heavy,20261122,10,1,wide-radix,256,8,20480,32768,229376,0,0,0,0,128,7.101,11.578,1571.703
|
| 402 |
+
small,73492051,1,1,pulsefold,8,4,96,32768,0,0,0,0,0,128,3.408,3.680,5.164
|
| 403 |
+
small,73492051,1,2,eager-feed-heap,8,4,96,32768,0,0,0,0,0,128,21.468,22.695,46.867
|
| 404 |
+
small,73492051,1,3,feed-scan,8,4,96,32768,0,0,0,0,0,128,3.701,4.148,107.812
|
| 405 |
+
small,73492051,1,4,lazy-radix,8,4,96,32768,0,0,0,0,0,128,15.820,18.227,23.000
|
| 406 |
+
small,73492051,1,5,wide-radix,8,4,96,32768,0,0,0,0,0,128,14.889,26.289,192.555
|
| 407 |
+
small,73492051,2,5,pulsefold,8,4,96,32768,0,0,0,0,0,128,3.413,3.680,3.992
|
| 408 |
+
small,73492051,2,1,eager-feed-heap,8,4,96,32768,0,0,0,0,0,128,21.321,22.297,22.461
|
| 409 |
+
small,73492051,2,2,feed-scan,8,4,96,32768,0,0,0,0,0,128,3.305,3.758,3.914
|
| 410 |
+
small,73492051,2,3,lazy-radix,8,4,96,32768,0,0,0,0,0,128,15.737,18.547,19.641
|
| 411 |
+
small,73492051,2,4,wide-radix,8,4,96,32768,0,0,0,0,0,128,14.123,19.797,113.680
|
| 412 |
+
small,73492051,3,4,pulsefold,8,4,96,32768,0,0,0,0,0,128,3.406,3.750,4.531
|
| 413 |
+
small,73492051,3,5,eager-feed-heap,8,4,96,32768,0,0,0,0,0,128,22.633,22.531,226.273
|
| 414 |
+
small,73492051,3,1,feed-scan,8,4,96,32768,0,0,0,0,0,128,3.299,3.758,4.453
|
| 415 |
+
small,73492051,3,2,lazy-radix,8,4,96,32768,0,0,0,0,0,128,15.560,17.453,19.406
|
| 416 |
+
small,73492051,3,3,wide-radix,8,4,96,32768,0,0,0,0,0,128,14.012,17.844,114.625
|
| 417 |
+
small,73492051,4,3,pulsefold,8,4,96,32768,0,0,0,0,0,128,3.403,3.672,3.906
|
| 418 |
+
small,73492051,4,4,eager-feed-heap,8,4,96,32768,0,0,0,0,0,128,21.692,22.297,120.406
|
| 419 |
+
small,73492051,4,5,feed-scan,8,4,96,32768,0,0,0,0,0,128,3.291,3.836,3.992
|
| 420 |
+
small,73492051,4,1,lazy-radix,8,4,96,32768,0,0,0,0,0,128,15.594,17.375,19.406
|
| 421 |
+
small,73492051,4,2,wide-radix,8,4,96,32768,0,0,0,0,0,128,14.080,18.000,108.523
|
| 422 |
+
small,73492051,5,2,pulsefold,8,4,96,32768,0,0,0,0,0,128,3.427,3.758,3.914
|
| 423 |
+
small,73492051,5,3,eager-feed-heap,8,4,96,32768,0,0,0,0,0,128,21.604,22.305,115.562
|
| 424 |
+
small,73492051,5,4,feed-scan,8,4,96,32768,0,0,0,0,0,128,3.327,3.836,3.992
|
| 425 |
+
small,73492051,5,5,lazy-radix,8,4,96,32768,0,0,0,0,0,128,16.681,20.578,152.102
|
| 426 |
+
small,73492051,5,1,wide-radix,8,4,96,32768,0,0,0,0,0,128,13.782,16.977,23.945
|
| 427 |
+
small,73492051,6,1,pulsefold,8,4,96,32768,0,0,0,0,0,128,3.421,3.680,3.758
|
| 428 |
+
small,73492051,6,2,eager-feed-heap,8,4,96,32768,0,0,0,0,0,128,21.694,22.609,117.758
|
| 429 |
+
small,73492051,6,3,feed-scan,8,4,96,32768,0,0,0,0,0,128,3.292,3.836,4.930
|
| 430 |
+
small,73492051,6,4,lazy-radix,8,4,96,32768,0,0,0,0,0,128,15.668,18.148,18.938
|
| 431 |
+
small,73492051,6,5,wide-radix,8,4,96,32768,0,0,0,0,0,128,14.169,17.844,130.891
|
| 432 |
+
small,73492051,7,5,pulsefold,8,4,96,32768,0,0,0,0,0,128,3.421,3.602,5.789
|
| 433 |
+
small,73492051,7,1,eager-feed-heap,8,4,96,32768,0,0,0,0,0,128,21.307,22.453,27.070
|
| 434 |
+
small,73492051,7,2,feed-scan,8,4,96,32768,0,0,0,0,0,128,3.680,3.914,103.664
|
| 435 |
+
small,73492051,7,3,lazy-radix,8,4,96,32768,0,0,0,0,0,128,15.749,17.914,20.578
|
| 436 |
+
small,73492051,7,4,wide-radix,8,4,96,32768,0,0,0,0,0,128,14.886,21.906,172.836
|
| 437 |
+
small,73492051,8,4,pulsefold,8,4,96,32768,0,0,0,0,0,128,3.418,3.672,3.836
|
| 438 |
+
small,73492051,8,5,eager-feed-heap,8,4,96,32768,0,0,0,0,0,128,21.720,22.375,126.281
|
| 439 |
+
small,73492051,8,1,feed-scan,8,4,96,32768,0,0,0,0,0,128,3.283,3.750,3.906
|
| 440 |
+
small,73492051,8,2,lazy-radix,8,4,96,32768,0,0,0,0,0,128,15.538,17.055,18.617
|
| 441 |
+
small,73492051,8,3,wide-radix,8,4,96,32768,0,0,0,0,0,128,14.068,18.695,134.102
|
| 442 |
+
small,73492051,9,3,pulsefold,8,4,96,32768,0,0,0,0,0,128,3.416,3.758,3.836
|
| 443 |
+
small,73492051,9,4,eager-feed-heap,8,4,96,32768,0,0,0,0,0,128,22.247,25.586,144.594
|
| 444 |
+
small,73492051,9,5,feed-scan,8,4,96,32768,0,0,0,0,0,128,3.317,3.984,5.484
|
| 445 |
+
small,73492051,9,1,lazy-radix,8,4,96,32768,0,0,0,0,0,128,15.616,17.445,19.484
|
| 446 |
+
small,73492051,9,2,wide-radix,8,4,96,32768,0,0,0,0,0,128,14.179,18.312,106.719
|
| 447 |
+
small,73492051,10,2,pulsefold,8,4,96,32768,0,0,0,0,0,128,3.403,3.750,3.992
|
| 448 |
+
small,73492051,10,3,eager-feed-heap,8,4,96,32768,0,0,0,0,0,128,21.700,22.297,129.172
|
| 449 |
+
small,73492051,10,4,feed-scan,8,4,96,32768,0,0,0,0,0,128,3.294,3.680,3.758
|
| 450 |
+
small,73492051,10,5,lazy-radix,8,4,96,32768,0,0,0,0,0,128,16.131,18.234,109.453
|
| 451 |
+
small,73492051,10,1,wide-radix,8,4,96,32768,0,0,0,0,0,128,13.860,16.664,23.477
|
| 452 |
+
single-subscriber,73492051,1,1,pulsefold,1024,1,12288,65536,0,0,0,0,0,128,4.010,6.188,7.117
|
| 453 |
+
single-subscriber,73492051,1,2,eager-feed-heap,1024,1,12288,65536,0,0,0,0,0,128,26.946,34.273,138.961
|
| 454 |
+
single-subscriber,73492051,1,3,feed-scan,1024,1,12288,65536,0,0,0,0,0,128,3.847,15.180,105.234
|
| 455 |
+
single-subscriber,73492051,1,4,lazy-radix,1024,1,12288,65536,0,0,0,0,0,128,17.589,48.672,170.719
|
| 456 |
+
single-subscriber,73492051,1,5,wide-radix,1024,1,12288,65536,0,0,0,0,0,128,14.304,41.703,127.453
|
| 457 |
+
single-subscriber,73492051,2,5,pulsefold,1024,1,12288,65536,0,0,0,0,0,128,4.209,6.180,112.586
|
| 458 |
+
single-subscriber,73492051,2,1,eager-feed-heap,1024,1,12288,65536,0,0,0,0,0,128,27.648,35.281,139.578
|
| 459 |
+
single-subscriber,73492051,2,2,feed-scan,1024,1,12288,65536,0,0,0,0,0,128,4.127,15.883,160.391
|
| 460 |
+
single-subscriber,73492051,2,3,lazy-radix,1024,1,12288,65536,0,0,0,0,0,128,17.372,46.555,148.578
|
| 461 |
+
single-subscriber,73492051,2,4,wide-radix,1024,1,12288,65536,0,0,0,0,0,128,14.166,40.453,164.781
|
| 462 |
+
single-subscriber,73492051,3,4,pulsefold,1024,1,12288,65536,0,0,0,0,0,128,4.010,6.102,6.883
|
| 463 |
+
single-subscriber,73492051,3,5,eager-feed-heap,1024,1,12288,65536,0,0,0,0,0,128,28.290,35.125,426.805
|
| 464 |
+
single-subscriber,73492051,3,1,feed-scan,1024,1,12288,65536,0,0,0,0,0,128,3.833,16.039,16.586
|
| 465 |
+
single-subscriber,73492051,3,2,lazy-radix,1024,1,12288,65536,0,0,0,0,0,128,17.391,46.398,158.594
|
| 466 |
+
single-subscriber,73492051,3,3,wide-radix,1024,1,12288,65536,0,0,0,0,0,128,14.019,41.859,127.141
|
| 467 |
+
single-subscriber,73492051,4,3,pulsefold,1024,1,12288,65536,0,0,0,0,0,128,4.019,6.102,7.273
|
| 468 |
+
single-subscriber,73492051,4,4,eager-feed-heap,1024,1,12288,65536,0,0,0,0,0,128,27.376,34.820,154.055
|
| 469 |
+
single-subscriber,73492051,4,5,feed-scan,1024,1,12288,65536,0,0,0,0,0,128,47.397,20.188,20360.219
|
| 470 |
+
single-subscriber,73492051,4,1,lazy-radix,1024,1,12288,65536,0,0,0,0,0,128,17.462,46.789,134.805
|
| 471 |
+
single-subscriber,73492051,4,2,wide-radix,1024,1,12288,65536,0,0,0,0,0,128,14.093,40.055,164.539
|
| 472 |
+
single-subscriber,73492051,5,2,pulsefold,1024,1,12288,65536,0,0,0,0,0,128,4.042,6.023,6.883
|
| 473 |
+
single-subscriber,73492051,5,3,eager-feed-heap,1024,1,12288,65536,0,0,0,0,0,128,28.551,42.484,390.109
|
| 474 |
+
single-subscriber,73492051,5,4,feed-scan,1024,1,12288,65536,0,0,0,0,0,128,4.212,16.195,165.094
|
| 475 |
+
single-subscriber,73492051,5,5,lazy-radix,1024,1,12288,65536,0,0,0,0,0,128,17.198,46.711,127.688
|
| 476 |
+
single-subscriber,73492051,5,1,wide-radix,1024,1,12288,65536,0,0,0,0,0,128,14.050,40.141,139.352
|
| 477 |
+
single-subscriber,73492051,6,1,pulsefold,1024,1,12288,65536,0,0,0,0,0,128,4.040,6.180,7.039
|
| 478 |
+
single-subscriber,73492051,6,2,eager-feed-heap,1024,1,12288,65536,0,0,0,0,0,128,27.591,34.578,183.789
|
| 479 |
+
single-subscriber,73492051,6,3,feed-scan,1024,1,12288,65536,0,0,0,0,0,128,3.828,16.039,16.430
|
| 480 |
+
single-subscriber,73492051,6,4,lazy-radix,1024,1,12288,65536,0,0,0,0,0,128,17.154,46.867,135.039
|
| 481 |
+
single-subscriber,73492051,6,5,wide-radix,1024,1,12288,65536,0,0,0,0,0,128,15.490,41.781,605.508
|
| 482 |
+
single-subscriber,73492051,7,5,pulsefold,1024,1,12288,65536,0,0,0,0,0,128,3.988,6.102,6.883
|
| 483 |
+
single-subscriber,73492051,7,1,eager-feed-heap,1024,1,12288,65536,0,0,0,0,0,128,27.589,34.812,195.523
|
| 484 |
+
single-subscriber,73492051,7,2,feed-scan,1024,1,12288,65536,0,0,0,0,0,128,3.835,16.195,16.742
|
| 485 |
+
single-subscriber,73492051,7,3,lazy-radix,1024,1,12288,65536,0,0,0,0,0,128,17.915,48.742,195.758
|
| 486 |
+
single-subscriber,73492051,7,4,wide-radix,1024,1,12288,65536,0,0,0,0,0,128,14.135,41.305,134.023
|
| 487 |
+
single-subscriber,73492051,8,4,pulsefold,1024,1,12288,65536,0,0,0,0,0,128,4.000,6.023,6.570
|
| 488 |
+
single-subscriber,73492051,8,5,eager-feed-heap,1024,1,12288,65536,0,0,0,0,0,128,27.389,34.734,133.477
|
| 489 |
+
single-subscriber,73492051,8,1,feed-scan,1024,1,12288,65536,0,0,0,0,0,128,4.100,16.195,152.648
|
| 490 |
+
single-subscriber,73492051,8,2,lazy-radix,1024,1,12288,65536,0,0,0,0,0,128,17.258,46.242,140.281
|
| 491 |
+
single-subscriber,73492051,8,3,wide-radix,1024,1,12288,65536,0,0,0,0,0,128,14.316,41.234,160.008
|
| 492 |
+
single-subscriber,73492051,9,3,pulsefold,1024,1,12288,65536,0,0,0,0,0,128,4.247,6.180,109.219
|
| 493 |
+
single-subscriber,73492051,9,4,eager-feed-heap,1024,1,12288,65536,0,0,0,0,0,128,27.721,35.359,158.281
|
| 494 |
+
single-subscriber,73492051,9,5,feed-scan,1024,1,12288,65536,0,0,0,0,0,128,3.866,16.273,19.641
|
| 495 |
+
single-subscriber,73492051,9,1,lazy-radix,1024,1,12288,65536,0,0,0,0,0,128,17.648,47.180,155.625
|
| 496 |
+
single-subscriber,73492051,9,2,wide-radix,1024,1,12288,65536,0,0,0,0,0,128,13.933,41.312,118.227
|
| 497 |
+
single-subscriber,73492051,10,2,pulsefold,1024,1,12288,65536,0,0,0,0,0,128,4.900,8.211,372.117
|
| 498 |
+
single-subscriber,73492051,10,3,eager-feed-heap,1024,1,12288,65536,0,0,0,0,0,128,32.719,234.805,1345.352
|
| 499 |
+
single-subscriber,73492051,10,4,feed-scan,1024,1,12288,65536,0,0,0,0,0,128,3.844,16.195,16.906
|
| 500 |
+
single-subscriber,73492051,10,5,lazy-radix,1024,1,12288,65536,0,0,0,0,0,128,17.318,46.711,131.367
|
| 501 |
+
single-subscriber,73492051,10,1,wide-radix,1024,1,12288,65536,0,0,0,0,0,128,15.041,41.781,465.383
|
| 502 |
+
long-grace,73492051,1,1,pulsefold,4096,16,278528,262144,0,0,0,0,0,128,3.783,7.820,415.539
|
| 503 |
+
long-grace,73492051,1,2,eager-feed-heap,4096,16,278528,262144,0,0,0,0,0,128,32.552,47.492,704.250
|
| 504 |
+
long-grace,73492051,1,3,feed-scan,4096,16,278528,262144,0,0,0,0,0,128,4.183,6.102,118.531
|
| 505 |
+
long-grace,73492051,1,4,lazy-radix,4096,16,278528,262144,0,0,0,0,0,128,8.765,22.227,148.031
|
| 506 |
+
long-grace,73492051,1,5,wide-radix,4096,16,278528,262144,0,0,0,0,0,128,7.228,18.070,186.602
|
| 507 |
+
long-grace,73492051,2,5,pulsefold,4096,16,278528,262144,0,0,0,0,0,128,3.338,6.891,138.250
|
| 508 |
+
long-grace,73492051,2,1,eager-feed-heap,4096,16,278528,262144,0,0,0,0,0,128,32.495,61.180,393.945
|
| 509 |
+
long-grace,73492051,2,2,feed-scan,4096,16,278528,262144,0,0,0,0,0,128,4.090,5.711,119.555
|
| 510 |
+
long-grace,73492051,2,3,lazy-radix,4096,16,278528,262144,0,0,0,0,0,128,8.710,21.906,146.156
|
| 511 |
+
long-grace,73492051,2,4,wide-radix,4096,16,278528,262144,0,0,0,0,0,128,7.628,21.047,377.195
|
| 512 |
+
long-grace,73492051,3,4,pulsefold,4096,16,278528,262144,0,0,0,0,0,128,3.354,6.805,126.516
|
| 513 |
+
long-grace,73492051,3,5,eager-feed-heap,4096,16,278528,262144,0,0,0,0,0,128,32.659,44.906,1358.492
|
| 514 |
+
long-grace,73492051,3,1,feed-scan,4096,16,278528,262144,0,0,0,0,0,128,4.085,6.023,192.000
|
| 515 |
+
long-grace,73492051,3,2,lazy-radix,4096,16,278528,262144,0,0,0,0,0,128,8.859,22.305,157.422
|
| 516 |
+
long-grace,73492051,3,3,wide-radix,4096,16,278528,262144,0,0,0,0,0,128,7.811,21.125,598.227
|
| 517 |
+
long-grace,73492051,4,3,pulsefold,4096,16,278528,262144,0,0,0,0,0,128,3.375,6.883,132.148
|
| 518 |
+
long-grace,73492051,4,4,eager-feed-heap,4096,16,278528,262144,0,0,0,0,0,128,31.581,44.133,346.609
|
| 519 |
+
long-grace,73492051,4,5,feed-scan,4096,16,278528,262144,0,0,0,0,0,128,4.042,5.633,133.398
|
| 520 |
+
long-grace,73492051,4,1,lazy-radix,4096,16,278528,262144,0,0,0,0,0,128,8.783,22.062,163.367
|
| 521 |
+
long-grace,73492051,4,2,wide-radix,4096,16,278528,262144,0,0,0,0,0,128,7.137,18.156,145.062
|
| 522 |
+
long-grace,73492051,5,2,pulsefold,4096,16,278528,262144,0,0,0,0,0,128,3.590,7.273,220.562
|
| 523 |
+
long-grace,73492051,5,3,eager-feed-heap,4096,16,278528,262144,0,0,0,0,0,128,33.866,56.562,1267.656
|
| 524 |
+
long-grace,73492051,5,4,feed-scan,4096,16,278528,262144,0,0,0,0,0,128,4.251,6.734,177.141
|
| 525 |
+
long-grace,73492051,5,5,lazy-radix,4096,16,278528,262144,0,0,0,0,0,128,9.085,23.008,302.867
|
| 526 |
+
long-grace,73492051,5,1,wide-radix,4096,16,278528,262144,0,0,0,0,0,128,9.029,22.219,2162.969
|
| 527 |
+
long-grace,73492051,6,1,pulsefold,4096,16,278528,262144,0,0,0,0,0,128,3.478,7.195,136.922
|
| 528 |
+
long-grace,73492051,6,2,eager-feed-heap,4096,16,278528,262144,0,0,0,0,0,128,31.613,44.359,184.102
|
| 529 |
+
long-grace,73492051,6,3,feed-scan,4096,16,278528,262144,0,0,0,0,0,128,4.191,5.789,179.953
|
| 530 |
+
long-grace,73492051,6,4,lazy-radix,4096,16,278528,262144,0,0,0,0,0,128,10.537,30.195,1139.969
|
| 531 |
+
long-grace,73492051,6,5,wide-radix,4096,16,278528,262144,0,0,0,0,0,128,11.053,27.227,2808.375
|
| 532 |
+
long-grace,73492051,7,5,pulsefold,4096,16,278528,262144,0,0,0,0,0,128,4.087,8.297,537.047
|
| 533 |
+
long-grace,73492051,7,1,eager-feed-heap,4096,16,278528,262144,0,0,0,0,0,128,32.524,45.297,353.336
|
| 534 |
+
long-grace,73492051,7,2,feed-scan,4096,16,278528,262144,0,0,0,0,0,128,4.986,5.945,1416.156
|
| 535 |
+
long-grace,73492051,7,3,lazy-radix,4096,16,278528,262144,0,0,0,0,0,128,9.389,27.156,450.352
|
| 536 |
+
long-grace,73492051,7,4,wide-radix,4096,16,278528,262144,0,0,0,0,0,128,7.732,20.266,589.391
|
| 537 |
+
long-grace,73492051,8,4,pulsefold,4096,16,278528,262144,0,0,0,0,0,128,3.401,6.891,121.742
|
| 538 |
+
long-grace,73492051,8,5,eager-feed-heap,4096,16,278528,262144,0,0,0,0,0,128,32.457,46.000,1147.320
|
| 539 |
+
long-grace,73492051,8,1,feed-scan,4096,16,278528,262144,0,0,0,0,0,128,4.221,6.109,121.039
|
| 540 |
+
long-grace,73492051,8,2,lazy-radix,4096,16,278528,262144,0,0,0,0,0,128,9.317,25.977,388.773
|
| 541 |
+
long-grace,73492051,8,3,wide-radix,4096,16,278528,262144,0,0,0,0,0,128,7.164,17.680,154.523
|
| 542 |
+
long-grace,73492051,9,3,pulsefold,4096,16,278528,262144,0,0,0,0,0,128,3.566,7.586,168.531
|
| 543 |
+
long-grace,73492051,9,4,eager-feed-heap,4096,16,278528,262144,0,0,0,0,0,128,35.868,63.844,3441.188
|
| 544 |
+
long-grace,73492051,9,5,feed-scan,4096,16,278528,262144,0,0,0,0,0,128,4.880,7.203,538.055
|
| 545 |
+
long-grace,73492051,9,1,lazy-radix,4096,16,278528,262144,0,0,0,0,0,128,8.926,23.469,192.711
|
| 546 |
+
long-grace,73492051,9,2,wide-radix,4096,16,278528,262144,0,0,0,0,0,128,7.333,18.234,168.062
|
| 547 |
+
long-grace,73492051,10,2,pulsefold,4096,16,278528,262144,0,0,0,0,0,128,3.386,7.430,125.500
|
| 548 |
+
long-grace,73492051,10,3,eager-feed-heap,4096,16,278528,262144,0,0,0,0,0,128,34.379,46.000,3273.523
|
| 549 |
+
long-grace,73492051,10,4,feed-scan,4096,16,278528,262144,0,0,0,0,0,128,4.594,6.648,494.719
|
| 550 |
+
long-grace,73492051,10,5,lazy-radix,4096,16,278528,262144,0,0,0,0,0,128,9.584,24.336,598.938
|
| 551 |
+
long-grace,73492051,10,1,wide-radix,4096,16,278528,262144,0,0,0,0,0,128,7.293,19.172,178.625
|
| 552 |
+
mixed-slo,73492051,1,1,pulsefold,2048,16,32768,131072,0,32364,32381,13755134078447978287,547330691837679235,128,25.658,38.883,400.906
|
| 553 |
+
mixed-slo,73492051,1,2,eager-feed-heap,2048,16,32768,131072,0,32364,32381,13755134078447978287,547330691837679235,128,46.941,151.477,585.633
|
| 554 |
+
mixed-slo,73492051,1,3,feed-scan,2048,16,32768,131072,0,32364,32381,13755134078447978287,547330691837679235,128,909.330,1939.664,10839.250
|
| 555 |
+
mixed-slo,73492051,1,4,lazy-radix,2048,16,32768,131072,0,32364,32381,13755134078447978287,547330691837679235,128,34.470,93.648,202.961
|
| 556 |
+
mixed-slo,73492051,1,5,wide-radix,2048,16,32768,131072,0,32364,32381,13755134078447978287,547330691837679235,128,36.816,150.844,3778.172
|
| 557 |
+
mixed-slo,73492051,2,5,pulsefold,2048,16,32768,131072,0,32364,32381,13755134078447978287,547330691837679235,128,36.229,52.500,418.984
|
| 558 |
+
mixed-slo,73492051,2,1,eager-feed-heap,2048,16,32768,131072,0,32364,32381,13755134078447978287,547330691837679235,128,46.084,143.727,555.039
|
| 559 |
+
mixed-slo,73492051,2,2,feed-scan,2048,16,32768,131072,0,32364,32381,13755134078447978287,547330691837679235,128,1098.402,2231.891,18129.492
|
| 560 |
+
mixed-slo,73492051,2,3,lazy-radix,2048,16,32768,131072,0,32364,32381,13755134078447978287,547330691837679235,128,46.534,129.016,498.086
|
| 561 |
+
mixed-slo,73492051,2,4,wide-radix,2048,16,32768,131072,0,32364,32381,13755134078447978287,547330691837679235,128,40.478,89.039,351.852
|
| 562 |
+
mixed-slo,73492051,3,4,pulsefold,2048,16,32768,131072,0,32364,32381,13755134078447978287,547330691837679235,128,25.358,37.945,290.820
|
| 563 |
+
mixed-slo,73492051,3,5,eager-feed-heap,2048,16,32768,131072,0,32364,32381,13755134078447978287,547330691837679235,128,49.595,77.617,380.016
|
| 564 |
+
mixed-slo,73492051,3,1,feed-scan,2048,16,32768,131072,0,32364,32381,13755134078447978287,547330691837679235,128,1024.483,1781.312,19604.805
|
| 565 |
+
mixed-slo,73492051,3,2,lazy-radix,2048,16,32768,131072,0,32364,32381,13755134078447978287,547330691837679235,128,34.288,95.227,164.773
|
| 566 |
+
mixed-slo,73492051,3,3,wide-radix,2048,16,32768,131072,0,32364,32381,13755134078447978287,547330691837679235,128,29.979,60.711,258.195
|
| 567 |
+
mixed-slo,73492051,4,3,pulsefold,2048,16,32768,131072,0,32364,32381,13755134078447978287,547330691837679235,128,25.387,39.508,261.719
|
| 568 |
+
mixed-slo,73492051,4,4,eager-feed-heap,2048,16,32768,131072,0,32364,32381,13755134078447978287,547330691837679235,128,48.821,82.000,712.930
|
| 569 |
+
mixed-slo,73492051,4,5,feed-scan,2048,16,32768,131072,0,32364,32381,13755134078447978287,547330691837679235,128,910.978,1838.977,2563.094
|
| 570 |
+
mixed-slo,73492051,4,1,lazy-radix,2048,16,32768,131072,0,32364,32381,13755134078447978287,547330691837679235,128,36.278,98.656,598.305
|
| 571 |
+
mixed-slo,73492051,4,2,wide-radix,2048,16,32768,131072,0,32364,32381,13755134078447978287,547330691837679235,128,30.686,68.383,268.211
|
| 572 |
+
mixed-slo,73492051,5,2,pulsefold,2048,16,32768,131072,0,32364,32381,13755134078447978287,547330691837679235,128,28.304,51.562,1216.875
|
| 573 |
+
mixed-slo,73492051,5,3,eager-feed-heap,2048,16,32768,131072,0,32364,32381,13755134078447978287,547330691837679235,128,46.613,80.430,751.734
|
| 574 |
+
mixed-slo,73492051,5,4,feed-scan,2048,16,32768,131072,0,32364,32381,13755134078447978287,547330691837679235,128,813.862,1589.703,4169.141
|
| 575 |
+
mixed-slo,73492051,5,5,lazy-radix,2048,16,32768,131072,0,32364,32381,13755134078447978287,547330691837679235,128,35.357,100.852,291.453
|
| 576 |
+
mixed-slo,73492051,5,1,wide-radix,2048,16,32768,131072,0,32364,32381,13755134078447978287,547330691837679235,128,32.352,100.539,706.438
|
| 577 |
+
mixed-slo,73492051,6,1,pulsefold,2048,16,32768,131072,0,32364,32381,13755134078447978287,547330691837679235,128,25.868,39.906,514.273
|
| 578 |
+
mixed-slo,73492051,6,2,eager-feed-heap,2048,16,32768,131072,0,32364,32381,13755134078447978287,547330691837679235,128,45.237,95.688,190.125
|
| 579 |
+
mixed-slo,73492051,6,3,feed-scan,2048,16,32768,131072,0,32364,32381,13755134078447978287,547330691837679235,128,900.282,2423.742,11563.727
|
| 580 |
+
mixed-slo,73492051,6,4,lazy-radix,2048,16,32768,131072,0,32364,32381,13755134078447978287,547330691837679235,128,43.787,132.539,449.023
|
| 581 |
+
mixed-slo,73492051,6,5,wide-radix,2048,16,32768,131072,0,32364,32381,13755134078447978287,547330691837679235,128,44.725,195.211,1290.078
|
| 582 |
+
mixed-slo,73492051,7,5,pulsefold,2048,16,32768,131072,0,32364,32381,13755134078447978287,547330691837679235,128,30.245,112.984,601.672
|
| 583 |
+
mixed-slo,73492051,7,1,eager-feed-heap,2048,16,32768,131072,0,32364,32381,13755134078447978287,547330691837679235,128,53.250,112.039,821.297
|
| 584 |
+
mixed-slo,73492051,7,2,feed-scan,2048,16,32768,131072,0,32364,32381,13755134078447978287,547330691837679235,128,1051.162,2399.250,53143.281
|
| 585 |
+
mixed-slo,73492051,7,3,lazy-radix,2048,16,32768,131072,0,32364,32381,13755134078447978287,547330691837679235,128,43.184,169.781,1180.812
|
| 586 |
+
mixed-slo,73492051,7,4,wide-radix,2048,16,32768,131072,0,32364,32381,13755134078447978287,547330691837679235,128,35.698,128.234,583.672
|
| 587 |
+
mixed-slo,73492051,8,4,pulsefold,2048,16,32768,131072,0,32364,32381,13755134078447978287,547330691837679235,128,39.545,183.078,716.055
|
| 588 |
+
mixed-slo,73492051,8,5,eager-feed-heap,2048,16,32768,131072,0,32364,32381,13755134078447978287,547330691837679235,128,71.253,614.344,1253.344
|
| 589 |
+
mixed-slo,73492051,8,1,feed-scan,2048,16,32768,131072,0,32364,32381,13755134078447978287,547330691837679235,128,1294.583,3447.992,6278.977
|
| 590 |
+
mixed-slo,73492051,8,2,lazy-radix,2048,16,32768,131072,0,32364,32381,13755134078447978287,547330691837679235,128,171.687,894.602,44673.867
|
| 591 |
+
mixed-slo,73492051,8,3,wide-radix,2048,16,32768,131072,0,32364,32381,13755134078447978287,547330691837679235,128,112.663,729.367,19075.656
|
| 592 |
+
mixed-slo,73492051,9,3,pulsefold,2048,16,32768,131072,0,32364,32381,13755134078447978287,547330691837679235,128,138.665,738.984,1376.094
|
| 593 |
+
mixed-slo,73492051,9,4,eager-feed-heap,2048,16,32768,131072,0,32364,32381,13755134078447978287,547330691837679235,128,175.506,960.328,27453.141
|
| 594 |
+
mixed-slo,73492051,9,5,feed-scan,2048,16,32768,131072,0,32364,32381,13755134078447978287,547330691837679235,128,1029.147,1769.109,2885.602
|
| 595 |
+
mixed-slo,73492051,9,1,lazy-radix,2048,16,32768,131072,0,32364,32381,13755134078447978287,547330691837679235,128,67.679,741.805,868.547
|
| 596 |
+
mixed-slo,73492051,9,2,wide-radix,2048,16,32768,131072,0,32364,32381,13755134078447978287,547330691837679235,128,48.826,265.945,803.062
|
| 597 |
+
mixed-slo,73492051,10,2,pulsefold,2048,16,32768,131072,0,32364,32381,13755134078447978287,547330691837679235,128,24.883,35.914,166.727
|
| 598 |
+
mixed-slo,73492051,10,3,eager-feed-heap,2048,16,32768,131072,0,32364,32381,13755134078447978287,547330691837679235,128,44.905,61.344,180.969
|
| 599 |
+
mixed-slo,73492051,10,4,feed-scan,2048,16,32768,131072,0,32364,32381,13755134078447978287,547330691837679235,128,828.893,1863.930,15472.039
|
| 600 |
+
mixed-slo,73492051,10,5,lazy-radix,2048,16,32768,131072,0,32364,32381,13755134078447978287,547330691837679235,128,36.579,102.500,554.258
|
| 601 |
+
mixed-slo,73492051,10,1,wide-radix,2048,16,32768,131072,0,32364,32381,13755134078447978287,547330691837679235,128,42.771,61.266,13549.195
|
| 602 |
+
rotating-outages,73492051,1,1,pulsefold,1024,16,10240,57344,8192,16384,16384,14597265920968534498,4724073118944128836,128,27.685,88.727,633.984
|
| 603 |
+
rotating-outages,73492051,1,2,eager-feed-heap,1024,16,10240,57344,8192,16384,16384,14597265920968534498,4724073118944128836,128,43.414,137.312,391.672
|
| 604 |
+
rotating-outages,73492051,1,3,feed-scan,1024,16,10240,57344,8192,16384,16384,14597265920968534498,4724073118944128836,128,393.097,1794.531,5504.953
|
| 605 |
+
rotating-outages,73492051,1,4,lazy-radix,1024,16,10240,57344,8192,16384,16384,14597265920968534498,4724073118944128836,128,45.126,186.836,537.359
|
| 606 |
+
rotating-outages,73492051,1,5,wide-radix,1024,16,10240,57344,8192,16384,16384,14597265920968534498,4724073118944128836,128,38.118,129.414,653.391
|
| 607 |
+
rotating-outages,73492051,2,5,pulsefold,1024,16,10240,57344,8192,16384,16384,14597265920968534498,4724073118944128836,128,30.187,137.078,712.461
|
| 608 |
+
rotating-outages,73492051,2,1,eager-feed-heap,1024,16,10240,57344,8192,16384,16384,14597265920968534498,4724073118944128836,128,46.831,184.414,1234.562
|
| 609 |
+
rotating-outages,73492051,2,2,feed-scan,1024,16,10240,57344,8192,16384,16384,14597265920968534498,4724073118944128836,128,433.370,2084.023,22459.891
|
| 610 |
+
rotating-outages,73492051,2,3,lazy-radix,1024,16,10240,57344,8192,16384,16384,14597265920968534498,4724073118944128836,128,46.424,250.766,564.430
|
| 611 |
+
rotating-outages,73492051,2,4,wide-radix,1024,16,10240,57344,8192,16384,16384,14597265920968534498,4724073118944128836,128,36.176,119.555,374.852
|
| 612 |
+
rotating-outages,73492051,3,4,pulsefold,1024,16,10240,57344,8192,16384,16384,14597265920968534498,4724073118944128836,128,30.231,91.391,306.625
|
| 613 |
+
rotating-outages,73492051,3,5,eager-feed-heap,1024,16,10240,57344,8192,16384,16384,14597265920968534498,4724073118944128836,128,47.403,99.992,253.109
|
| 614 |
+
rotating-outages,73492051,3,1,feed-scan,1024,16,10240,57344,8192,16384,16384,14597265920968534498,4724073118944128836,128,371.907,1543.773,2083.398
|
| 615 |
+
rotating-outages,73492051,3,2,lazy-radix,1024,16,10240,57344,8192,16384,16384,14597265920968534498,4724073118944128836,128,155.009,624.836,25790.914
|
| 616 |
+
rotating-outages,73492051,3,3,wide-radix,1024,16,10240,57344,8192,16384,16384,14597265920968534498,4724073118944128836,128,38.139,107.578,352.320
|
| 617 |
+
rotating-outages,73492051,4,3,pulsefold,1024,16,10240,57344,8192,16384,16384,14597265920968534498,4724073118944128836,128,28.685,90.219,453.406
|
| 618 |
+
rotating-outages,73492051,4,4,eager-feed-heap,1024,16,10240,57344,8192,16384,16384,14597265920968534498,4724073118944128836,128,47.125,91.070,910.648
|
| 619 |
+
rotating-outages,73492051,4,5,feed-scan,1024,16,10240,57344,8192,16384,16384,14597265920968534498,4724073118944128836,128,361.217,1370.070,2022.055
|
| 620 |
+
rotating-outages,73492051,4,1,lazy-radix,1024,16,10240,57344,8192,16384,16384,14597265920968534498,4724073118944128836,128,43.943,100.148,309.594
|
| 621 |
+
rotating-outages,73492051,4,2,wide-radix,1024,16,10240,57344,8192,16384,16384,14597265920968534498,4724073118944128836,128,40.055,106.953,443.312
|
| 622 |
+
rotating-outages,73492051,5,2,pulsefold,1024,16,10240,57344,8192,16384,16384,14597265920968534498,4724073118944128836,128,25.854,64.078,430.633
|
| 623 |
+
rotating-outages,73492051,5,3,eager-feed-heap,1024,16,10240,57344,8192,16384,16384,14597265920968534498,4724073118944128836,128,47.146,286.672,779.203
|
| 624 |
+
rotating-outages,73492051,5,4,feed-scan,1024,16,10240,57344,8192,16384,16384,14597265920968534498,4724073118944128836,128,361.621,1357.641,2451.750
|
| 625 |
+
rotating-outages,73492051,5,5,lazy-radix,1024,16,10240,57344,8192,16384,16384,14597265920968534498,4724073118944128836,128,43.789,98.031,797.430
|
| 626 |
+
rotating-outages,73492051,5,1,wide-radix,1024,16,10240,57344,8192,16384,16384,14597265920968534498,4724073118944128836,128,40.265,99.680,2005.078
|
| 627 |
+
rotating-outages,73492051,6,1,pulsefold,1024,16,10240,57344,8192,16384,16384,14597265920968534498,4724073118944128836,128,26.705,73.781,431.812
|
| 628 |
+
rotating-outages,73492051,6,2,eager-feed-heap,1024,16,10240,57344,8192,16384,16384,14597265920968534498,4724073118944128836,128,41.586,70.812,183.086
|
| 629 |
+
rotating-outages,73492051,6,3,feed-scan,1024,16,10240,57344,8192,16384,16384,14597265920968534498,4724073118944128836,128,352.293,1206.008,3023.852
|
| 630 |
+
rotating-outages,73492051,6,4,lazy-radix,1024,16,10240,57344,8192,16384,16384,14597265920968534498,4724073118944128836,128,44.252,139.586,563.805
|
| 631 |
+
rotating-outages,73492051,6,5,wide-radix,1024,16,10240,57344,8192,16384,16384,14597265920968534498,4724073118944128836,128,35.391,85.289,324.539
|
| 632 |
+
rotating-outages,73492051,7,5,pulsefold,1024,16,10240,57344,8192,16384,16384,14597265920968534498,4724073118944128836,128,27.859,84.188,389.094
|
| 633 |
+
rotating-outages,73492051,7,1,eager-feed-heap,1024,16,10240,57344,8192,16384,16384,14597265920968534498,4724073118944128836,128,45.857,80.664,289.875
|
| 634 |
+
rotating-outages,73492051,7,2,feed-scan,1024,16,10240,57344,8192,16384,16384,14597265920968534498,4724073118944128836,128,378.656,1516.000,2347.461
|
| 635 |
+
rotating-outages,73492051,7,3,lazy-radix,1024,16,10240,57344,8192,16384,16384,14597265920968534498,4724073118944128836,128,43.718,121.195,690.633
|
| 636 |
+
rotating-outages,73492051,7,4,wide-radix,1024,16,10240,57344,8192,16384,16384,14597265920968534498,4724073118944128836,128,39.803,87.312,2359.195
|
| 637 |
+
rotating-outages,73492051,8,4,pulsefold,1024,16,10240,57344,8192,16384,16384,14597265920968534498,4724073118944128836,128,28.402,96.469,452.859
|
| 638 |
+
rotating-outages,73492051,8,5,eager-feed-heap,1024,16,10240,57344,8192,16384,16384,14597265920968534498,4724073118944128836,128,41.627,75.266,205.383
|
| 639 |
+
rotating-outages,73492051,8,1,feed-scan,1024,16,10240,57344,8192,16384,16384,14597265920968534498,4724073118944128836,128,373.124,1700.328,2918.617
|
| 640 |
+
rotating-outages,73492051,8,2,lazy-radix,1024,16,10240,57344,8192,16384,16384,14597265920968534498,4724073118944128836,128,42.878,96.703,787.102
|
| 641 |
+
rotating-outages,73492051,8,3,wide-radix,1024,16,10240,57344,8192,16384,16384,14597265920968534498,4724073118944128836,128,39.506,173.852,905.797
|
| 642 |
+
rotating-outages,73492051,9,3,pulsefold,1024,16,10240,57344,8192,16384,16384,14597265920968534498,4724073118944128836,128,26.861,65.648,397.461
|
| 643 |
+
rotating-outages,73492051,9,4,eager-feed-heap,1024,16,10240,57344,8192,16384,16384,14597265920968534498,4724073118944128836,128,48.500,165.875,2442.289
|
| 644 |
+
rotating-outages,73492051,9,5,feed-scan,1024,16,10240,57344,8192,16384,16384,14597265920968534498,4724073118944128836,128,386.780,1819.414,3102.953
|
| 645 |
+
rotating-outages,73492051,9,1,lazy-radix,1024,16,10240,57344,8192,16384,16384,14597265920968534498,4724073118944128836,128,46.057,93.891,2006.250
|
| 646 |
+
rotating-outages,73492051,9,2,wide-radix,1024,16,10240,57344,8192,16384,16384,14597265920968534498,4724073118944128836,128,37.284,86.141,797.984
|
| 647 |
+
rotating-outages,73492051,10,2,pulsefold,1024,16,10240,57344,8192,16384,16384,14597265920968534498,4724073118944128836,128,29.145,71.664,544.008
|
| 648 |
+
rotating-outages,73492051,10,3,eager-feed-heap,1024,16,10240,57344,8192,16384,16384,14597265920968534498,4724073118944128836,128,87.444,387.766,18914.328
|
| 649 |
+
rotating-outages,73492051,10,4,feed-scan,1024,16,10240,57344,8192,16384,16384,14597265920968534498,4724073118944128836,128,388.916,1856.656,2676.305
|
| 650 |
+
rotating-outages,73492051,10,5,lazy-radix,1024,16,10240,57344,8192,16384,16384,14597265920968534498,4724073118944128836,128,52.383,234.727,3708.070
|
| 651 |
+
rotating-outages,73492051,10,1,wide-radix,1024,16,10240,57344,8192,16384,16384,14597265920968534498,4724073118944128836,128,50.324,583.125,1393.234
|
| 652 |
+
high-churn,73492051,1,1,pulsefold,128,16,768,32768,0,436906,436913,10220801827850166385,8693004670872315017,128,497.799,2289.719,13787.047
|
| 653 |
+
high-churn,73492051,1,2,eager-feed-heap,128,16,768,32768,0,436906,436913,10220801827850166385,8693004670872315017,128,866.110,3029.953,3493.219
|
| 654 |
+
high-churn,73492051,1,3,feed-scan,128,16,768,32768,0,436906,436913,10220801827850166385,8693004670872315017,128,739.167,2154.992,2202.086
|
| 655 |
+
high-churn,73492051,1,4,lazy-radix,128,16,768,32768,0,436906,436913,10220801827850166385,8693004670872315017,128,538.232,1366.633,1527.727
|
| 656 |
+
high-churn,73492051,1,5,wide-radix,128,16,768,32768,0,436906,436913,10220801827850166385,8693004670872315017,128,440.373,868.555,1702.602
|
| 657 |
+
high-churn,73492051,2,5,pulsefold,128,16,768,32768,0,436906,436913,10220801827850166385,8693004670872315017,128,422.007,1528.281,1858.922
|
| 658 |
+
high-churn,73492051,2,1,eager-feed-heap,128,16,768,32768,0,436906,436913,10220801827850166385,8693004670872315017,128,751.457,1576.633,2764.797
|
| 659 |
+
high-churn,73492051,2,2,feed-scan,128,16,768,32768,0,436906,436913,10220801827850166385,8693004670872315017,128,651.848,1395.742,2369.055
|
| 660 |
+
high-churn,73492051,2,3,lazy-radix,128,16,768,32768,0,436906,436913,10220801827850166385,8693004670872315017,128,528.797,1259.055,2256.773
|
| 661 |
+
high-churn,73492051,2,4,wide-radix,128,16,768,32768,0,436906,436913,10220801827850166385,8693004670872315017,128,435.705,998.664,1887.164
|
| 662 |
+
high-churn,73492051,3,4,pulsefold,128,16,768,32768,0,436906,436913,10220801827850166385,8693004670872315017,128,539.207,773.648,810.031
|
| 663 |
+
high-churn,73492051,3,5,eager-feed-heap,128,16,768,32768,0,436906,436913,10220801827850166385,8693004670872315017,128,926.964,1165.164,1182.609
|
| 664 |
+
high-churn,73492051,3,1,feed-scan,128,16,768,32768,0,436906,436913,10220801827850166385,8693004670872315017,128,687.364,1592.281,17823.727
|
| 665 |
+
high-churn,73492051,3,2,lazy-radix,128,16,768,32768,0,436906,436913,10220801827850166385,8693004670872315017,128,782.226,5888.641,15456.312
|
| 666 |
+
high-churn,73492051,3,3,wide-radix,128,16,768,32768,0,436906,436913,10220801827850166385,8693004670872315017,128,589.134,855.719,883.109
|
| 667 |
+
high-churn,73492051,4,3,pulsefold,128,16,768,32768,0,436906,436913,10220801827850166385,8693004670872315017,128,538.750,791.562,859.711
|
| 668 |
+
high-churn,73492051,4,4,eager-feed-heap,128,16,768,32768,0,436906,436913,10220801827850166385,8693004670872315017,128,718.157,1150.297,1194.977
|
| 669 |
+
high-churn,73492051,4,5,feed-scan,128,16,768,32768,0,436906,436913,10220801827850166385,8693004670872315017,128,612.240,787.961,893.281
|
| 670 |
+
high-churn,73492051,4,1,lazy-radix,128,16,768,32768,0,436906,436913,10220801827850166385,8693004670872315017,128,668.354,927.078,961.656
|
| 671 |
+
high-churn,73492051,4,2,wide-radix,128,16,768,32768,0,436906,436913,10220801827850166385,8693004670872315017,128,586.636,855.641,940.383
|
| 672 |
+
high-churn,73492051,5,2,pulsefold,128,16,768,32768,0,436906,436913,10220801827850166385,8693004670872315017,128,383.856,497.141,514.984
|
| 673 |
+
high-churn,73492051,5,3,eager-feed-heap,128,16,768,32768,0,436906,436913,10220801827850166385,8693004670872315017,128,723.378,1091.773,1135.273
|
| 674 |
+
high-churn,73492051,5,4,feed-scan,128,16,768,32768,0,436906,436913,10220801827850166385,8693004670872315017,128,615.144,816.602,1035.984
|
| 675 |
+
high-churn,73492051,5,5,lazy-radix,128,16,768,32768,0,436906,436913,10220801827850166385,8693004670872315017,128,492.262,656.828,789.055
|
| 676 |
+
high-churn,73492051,5,1,wide-radix,128,16,768,32768,0,436906,436913,10220801827850166385,8693004670872315017,128,417.988,537.430,554.258
|
| 677 |
+
high-churn,73492051,6,1,pulsefold,128,16,768,32768,0,436906,436913,10220801827850166385,8693004670872315017,128,384.648,590.250,764.805
|
| 678 |
+
high-churn,73492051,6,2,eager-feed-heap,128,16,768,32768,0,436906,436913,10220801827850166385,8693004670872315017,128,711.398,839.758,1712.062
|
| 679 |
+
high-churn,73492051,6,3,feed-scan,128,16,768,32768,0,436906,436913,10220801827850166385,8693004670872315017,128,593.751,722.078,733.117
|
| 680 |
+
high-churn,73492051,6,4,lazy-radix,128,16,768,32768,0,436906,436913,10220801827850166385,8693004670872315017,128,488.361,656.203,708.000
|
| 681 |
+
high-churn,73492051,6,5,wide-radix,128,16,768,32768,0,436906,436913,10220801827850166385,8693004670872315017,128,422.971,560.828,1195.906
|
| 682 |
+
high-churn,73492051,7,5,pulsefold,128,16,768,32768,0,436906,436913,10220801827850166385,8693004670872315017,128,392.670,611.445,1790.461
|
| 683 |
+
high-churn,73492051,7,1,eager-feed-heap,128,16,768,32768,0,436906,436913,10220801827850166385,8693004670872315017,128,706.640,853.141,883.023
|
| 684 |
+
high-churn,73492051,7,2,feed-scan,128,16,768,32768,0,436906,436913,10220801827850166385,8693004670872315017,128,593.318,713.320,742.266
|
| 685 |
+
high-churn,73492051,7,3,lazy-radix,128,16,768,32768,0,436906,436913,10220801827850166385,8693004670872315017,128,493.860,687.188,1131.125
|
| 686 |
+
high-churn,73492051,7,4,wide-radix,128,16,768,32768,0,436906,436913,10220801827850166385,8693004670872315017,128,415.770,543.859,570.375
|
| 687 |
+
high-churn,73492051,8,4,pulsefold,128,16,768,32768,0,436906,436913,10220801827850166385,8693004670872315017,128,380.875,501.055,506.531
|
| 688 |
+
high-churn,73492051,8,5,eager-feed-heap,128,16,768,32768,0,436906,436913,10220801827850166385,8693004670872315017,128,711.289,841.016,909.000
|
| 689 |
+
high-churn,73492051,8,1,feed-scan,128,16,768,32768,0,436906,436913,10220801827850166385,8693004670872315017,128,600.930,720.438,753.148
|
| 690 |
+
high-churn,73492051,8,2,lazy-radix,128,16,768,32768,0,436906,436913,10220801827850166385,8693004670872315017,128,491.253,660.664,822.938
|
| 691 |
+
high-churn,73492051,8,3,wide-radix,128,16,768,32768,0,436906,436913,10220801827850166385,8693004670872315017,128,417.853,544.789,558.406
|
| 692 |
+
high-churn,73492051,9,3,pulsefold,128,16,768,32768,0,436906,436913,10220801827850166385,8693004670872315017,128,380.760,495.422,536.656
|
| 693 |
+
high-churn,73492051,9,4,eager-feed-heap,128,16,768,32768,0,436906,436913,10220801827850166385,8693004670872315017,128,708.359,839.133,973.086
|
| 694 |
+
high-churn,73492051,9,5,feed-scan,128,16,768,32768,0,436906,436913,10220801827850166385,8693004670872315017,128,596.099,793.281,1074.328
|
| 695 |
+
high-churn,73492051,9,1,lazy-radix,128,16,768,32768,0,436906,436913,10220801827850166385,8693004670872315017,128,492.226,743.992,779.438
|
| 696 |
+
high-churn,73492051,9,2,wide-radix,128,16,768,32768,0,436906,436913,10220801827850166385,8693004670872315017,128,420.046,536.961,598.852
|
| 697 |
+
high-churn,73492051,10,2,pulsefold,128,16,768,32768,0,436906,436913,10220801827850166385,8693004670872315017,128,385.590,506.609,577.336
|
| 698 |
+
high-churn,73492051,10,3,eager-feed-heap,128,16,768,32768,0,436906,436913,10220801827850166385,8693004670872315017,128,708.046,832.875,893.203
|
| 699 |
+
high-churn,73492051,10,4,feed-scan,128,16,768,32768,0,436906,436913,10220801827850166385,8693004670872315017,128,596.507,719.344,872.539
|
| 700 |
+
high-churn,73492051,10,5,lazy-radix,128,16,768,32768,0,436906,436913,10220801827850166385,8693004670872315017,128,489.767,605.430,616.930
|
| 701 |
+
high-churn,73492051,10,1,wide-radix,128,16,768,32768,0,436906,436913,10220801827850166385,8693004670872315017,128,415.224,542.523,547.375
|
| 702 |
+
synchronous-storm,73492051,1,1,pulsefold,512,32,6145,32768,8,131072,131072,705768331973431732,1767390101443473686,128,24.787,408.180,544.086
|
| 703 |
+
synchronous-storm,73492051,1,2,eager-feed-heap,512,32,6145,32768,8,131072,131072,705768331973431732,1767390101443473686,128,59.856,612.078,779.828
|
| 704 |
+
synchronous-storm,73492051,1,3,feed-scan,512,32,6145,32768,8,131072,131072,705768331973431732,1767390101443473686,128,79.768,2212.422,2300.750
|
| 705 |
+
synchronous-storm,73492051,1,4,lazy-radix,512,32,6145,32768,8,131072,131072,705768331973431732,1767390101443473686,128,36.533,583.445,589.859
|
| 706 |
+
synchronous-storm,73492051,1,5,wide-radix,512,32,6145,32768,8,131072,131072,705768331973431732,1767390101443473686,128,33.793,554.805,671.930
|
| 707 |
+
synchronous-storm,73492051,2,5,pulsefold,512,32,6145,32768,8,131072,131072,705768331973431732,1767390101443473686,128,24.370,403.562,518.266
|
| 708 |
+
synchronous-storm,73492051,2,1,eager-feed-heap,512,32,6145,32768,8,131072,131072,705768331973431732,1767390101443473686,128,59.485,607.695,608.477
|
| 709 |
+
synchronous-storm,73492051,2,2,feed-scan,512,32,6145,32768,8,131072,131072,705768331973431732,1767390101443473686,128,79.556,2214.766,2280.562
|
| 710 |
+
synchronous-storm,73492051,2,3,lazy-radix,512,32,6145,32768,8,131072,131072,705768331973431732,1767390101443473686,128,36.319,580.555,752.125
|
| 711 |
+
synchronous-storm,73492051,2,4,wide-radix,512,32,6145,32768,8,131072,131072,705768331973431732,1767390101443473686,128,33.862,548.312,553.945
|
| 712 |
+
synchronous-storm,73492051,3,4,pulsefold,512,32,6145,32768,8,131072,131072,705768331973431732,1767390101443473686,128,24.384,402.477,504.500
|
| 713 |
+
synchronous-storm,73492051,3,5,eager-feed-heap,512,32,6145,32768,8,131072,131072,705768331973431732,1767390101443473686,128,59.401,607.773,610.672
|
| 714 |
+
synchronous-storm,73492051,3,1,feed-scan,512,32,6145,32768,8,131072,131072,705768331973431732,1767390101443473686,128,79.921,2204.672,2289.875
|
| 715 |
+
synchronous-storm,73492051,3,2,lazy-radix,512,32,6145,32768,8,131072,131072,705768331973431732,1767390101443473686,128,35.454,572.961,691.414
|
| 716 |
+
synchronous-storm,73492051,3,3,wide-radix,512,32,6145,32768,8,131072,131072,705768331973431732,1767390101443473686,128,34.006,546.516,650.336
|
| 717 |
+
synchronous-storm,73492051,4,3,pulsefold,512,32,6145,32768,8,131072,131072,705768331973431732,1767390101443473686,128,26.007,406.305,788.508
|
| 718 |
+
synchronous-storm,73492051,4,4,eager-feed-heap,512,32,6145,32768,8,131072,131072,705768331973431732,1767390101443473686,128,59.139,611.211,782.875
|
| 719 |
+
synchronous-storm,73492051,4,5,feed-scan,512,32,6145,32768,8,131072,131072,705768331973431732,1767390101443473686,128,89.674,2377.039,3002.492
|
| 720 |
+
synchronous-storm,73492051,4,1,lazy-radix,512,32,6145,32768,8,131072,131072,705768331973431732,1767390101443473686,128,35.838,580.312,586.805
|
| 721 |
+
synchronous-storm,73492051,4,2,wide-radix,512,32,6145,32768,8,131072,131072,705768331973431732,1767390101443473686,128,33.532,554.492,565.992
|
| 722 |
+
synchronous-storm,73492051,5,2,pulsefold,512,32,6145,32768,8,131072,131072,705768331973431732,1767390101443473686,128,25.410,404.031,549.250
|
| 723 |
+
synchronous-storm,73492051,5,3,eager-feed-heap,512,32,6145,32768,8,131072,131072,705768331973431732,1767390101443473686,128,59.953,610.125,615.836
|
| 724 |
+
synchronous-storm,73492051,5,4,feed-scan,512,32,6145,32768,8,131072,131072,705768331973431732,1767390101443473686,128,82.467,2296.133,2538.602
|
| 725 |
+
synchronous-storm,73492051,5,5,lazy-radix,512,32,6145,32768,8,131072,131072,705768331973431732,1767390101443473686,128,37.710,585.086,838.820
|
| 726 |
+
synchronous-storm,73492051,5,1,wide-radix,512,32,6145,32768,8,131072,131072,705768331973431732,1767390101443473686,128,34.876,560.906,567.250
|
| 727 |
+
synchronous-storm,73492051,6,1,pulsefold,512,32,6145,32768,8,131072,131072,705768331973431732,1767390101443473686,128,25.559,409.508,666.453
|
| 728 |
+
synchronous-storm,73492051,6,2,eager-feed-heap,512,32,6145,32768,8,131072,131072,705768331973431732,1767390101443473686,128,59.835,611.688,871.602
|
| 729 |
+
synchronous-storm,73492051,6,3,feed-scan,512,32,6145,32768,8,131072,131072,705768331973431732,1767390101443473686,128,93.825,2457.703,3761.273
|
| 730 |
+
synchronous-storm,73492051,6,4,lazy-radix,512,32,6145,32768,8,131072,131072,705768331973431732,1767390101443473686,128,36.429,581.719,832.328
|
| 731 |
+
synchronous-storm,73492051,6,5,wide-radix,512,32,6145,32768,8,131072,131072,705768331973431732,1767390101443473686,128,35.235,555.352,860.258
|
| 732 |
+
synchronous-storm,73492051,7,5,pulsefold,512,32,6145,32768,8,131072,131072,705768331973431732,1767390101443473686,128,25.157,408.336,648.539
|
| 733 |
+
synchronous-storm,73492051,7,1,eager-feed-heap,512,32,6145,32768,8,131072,131072,705768331973431732,1767390101443473686,128,60.068,610.125,881.305
|
| 734 |
+
synchronous-storm,73492051,7,2,feed-scan,512,32,6145,32768,8,131072,131072,705768331973431732,1767390101443473686,128,80.439,2278.141,2346.445
|
| 735 |
+
synchronous-storm,73492051,7,3,lazy-radix,512,32,6145,32768,8,131072,131072,705768331973431732,1767390101443473686,128,40.231,586.727,1184.250
|
| 736 |
+
synchronous-storm,73492051,7,4,wide-radix,512,32,6145,32768,8,131072,131072,705768331973431732,1767390101443473686,128,35.634,553.398,560.055
|
| 737 |
+
synchronous-storm,73492051,8,4,pulsefold,512,32,6145,32768,8,131072,131072,705768331973431732,1767390101443473686,128,24.944,401.688,405.836
|
| 738 |
+
synchronous-storm,73492051,8,5,eager-feed-heap,512,32,6145,32768,8,131072,131072,705768331973431732,1767390101443473686,128,60.341,609.570,613.961
|
| 739 |
+
synchronous-storm,73492051,8,1,feed-scan,512,32,6145,32768,8,131072,131072,705768331973431732,1767390101443473686,128,81.918,2371.562,2398.859
|
| 740 |
+
synchronous-storm,73492051,8,2,lazy-radix,512,32,6145,32768,8,131072,131072,705768331973431732,1767390101443473686,128,36.106,577.180,609.570
|
| 741 |
+
synchronous-storm,73492051,8,3,wide-radix,512,32,6145,32768,8,131072,131072,705768331973431732,1767390101443473686,128,34.968,550.109,846.648
|
| 742 |
+
synchronous-storm,73492051,9,3,pulsefold,512,32,6145,32768,8,131072,131072,705768331973431732,1767390101443473686,128,29.971,411.781,723.883
|
| 743 |
+
synchronous-storm,73492051,9,4,eager-feed-heap,512,32,6145,32768,8,131072,131072,705768331973431732,1767390101443473686,128,62.697,645.102,1189.891
|
| 744 |
+
synchronous-storm,73492051,9,5,feed-scan,512,32,6145,32768,8,131072,131072,705768331973431732,1767390101443473686,128,87.426,2323.914,2791.945
|
| 745 |
+
synchronous-storm,73492051,9,1,lazy-radix,512,32,6145,32768,8,131072,131072,705768331973431732,1767390101443473686,128,37.154,580.547,588.680
|
| 746 |
+
synchronous-storm,73492051,9,2,wide-radix,512,32,6145,32768,8,131072,131072,705768331973431732,1767390101443473686,128,46.647,559.266,2499.320
|
| 747 |
+
synchronous-storm,73492051,10,2,pulsefold,512,32,6145,32768,8,131072,131072,705768331973431732,1767390101443473686,128,24.878,407.008,563.570
|
| 748 |
+
synchronous-storm,73492051,10,3,eager-feed-heap,512,32,6145,32768,8,131072,131072,705768331973431732,1767390101443473686,128,64.985,771.141,960.953
|
| 749 |
+
synchronous-storm,73492051,10,4,feed-scan,512,32,6145,32768,8,131072,131072,705768331973431732,1767390101443473686,128,92.475,2584.375,2884.734
|
| 750 |
+
synchronous-storm,73492051,10,5,lazy-radix,512,32,6145,32768,8,131072,131072,705768331973431732,1767390101443473686,128,38.227,598.070,963.531
|
| 751 |
+
synchronous-storm,73492051,10,1,wide-radix,512,32,6145,32768,8,131072,131072,705768331973431732,1767390101443473686,128,34.329,563.961,684.766
|
| 752 |
+
poll-heavy,73492051,1,1,pulsefold,256,8,20480,32768,229376,0,0,0,0,128,2.230,5.242,24.562
|
| 753 |
+
poll-heavy,73492051,1,2,eager-feed-heap,256,8,20480,32768,229376,0,0,0,0,128,6.575,11.344,418.508
|
| 754 |
+
poll-heavy,73492051,1,3,feed-scan,256,8,20480,32768,229376,0,0,0,0,128,1.668,4.695,5.867
|
| 755 |
+
poll-heavy,73492051,1,4,lazy-radix,256,8,20480,32768,229376,0,0,0,0,128,9.401,19.562,166.812
|
| 756 |
+
poll-heavy,73492051,1,5,wide-radix,256,8,20480,32768,229376,0,0,0,0,128,6.824,13.773,248.961
|
| 757 |
+
poll-heavy,73492051,2,5,pulsefold,256,8,20480,32768,229376,0,0,0,0,128,1.899,3.445,127.922
|
| 758 |
+
poll-heavy,73492051,2,1,eager-feed-heap,256,8,20480,32768,229376,0,0,0,0,128,5.518,8.211,148.578
|
| 759 |
+
poll-heavy,73492051,2,2,feed-scan,256,8,20480,32768,229376,0,0,0,0,128,1.906,4.695,365.227
|
| 760 |
+
poll-heavy,73492051,2,3,lazy-radix,256,8,20480,32768,229376,0,0,0,0,128,7.999,15.570,130.508
|
| 761 |
+
poll-heavy,73492051,2,4,wide-radix,256,8,20480,32768,229376,0,0,0,0,128,7.193,13.305,1168.992
|
| 762 |
+
poll-heavy,73492051,3,4,pulsefold,256,8,20480,32768,229376,0,0,0,0,128,1.792,3.438,4.305
|
| 763 |
+
poll-heavy,73492051,3,5,eager-feed-heap,256,8,20480,32768,229376,0,0,0,0,128,5.663,8.375,153.273
|
| 764 |
+
poll-heavy,73492051,3,1,feed-scan,256,8,20480,32768,229376,0,0,0,0,128,1.583,4.617,5.242
|
| 765 |
+
poll-heavy,73492051,3,2,lazy-radix,256,8,20480,32768,229376,0,0,0,0,128,8.043,15.727,169.000
|
| 766 |
+
poll-heavy,73492051,3,3,wide-radix,256,8,20480,32768,229376,0,0,0,0,128,6.337,11.195,126.359
|
| 767 |
+
poll-heavy,73492051,4,3,pulsefold,256,8,20480,32768,229376,0,0,0,0,128,1.921,3.516,245.047
|
| 768 |
+
poll-heavy,73492051,4,4,eager-feed-heap,256,8,20480,32768,229376,0,0,0,0,128,7.092,11.344,1693.445
|
| 769 |
+
poll-heavy,73492051,4,5,feed-scan,256,8,20480,32768,229376,0,0,0,0,128,1.756,4.695,10.016
|
| 770 |
+
poll-heavy,73492051,4,1,lazy-radix,256,8,20480,32768,229376,0,0,0,0,128,8.805,16.508,792.109
|
| 771 |
+
poll-heavy,73492051,4,2,wide-radix,256,8,20480,32768,229376,0,0,0,0,128,6.777,14.164,249.586
|
| 772 |
+
poll-heavy,73492051,5,2,pulsefold,256,8,20480,32768,229376,0,0,0,0,128,1.947,4.305,20.109
|
| 773 |
+
poll-heavy,73492051,5,3,eager-feed-heap,256,8,20480,32768,229376,0,0,0,0,128,6.489,11.266,261.086
|
| 774 |
+
poll-heavy,73492051,5,4,feed-scan,256,8,20480,32768,229376,0,0,0,0,128,1.767,4.695,264.062
|
| 775 |
+
poll-heavy,73492051,5,5,lazy-radix,256,8,20480,32768,229376,0,0,0,0,128,9.093,18.625,420.000
|
| 776 |
+
poll-heavy,73492051,5,1,wide-radix,256,8,20480,32768,229376,0,0,0,0,128,6.836,12.680,606.836
|
| 777 |
+
poll-heavy,73492051,6,1,pulsefold,256,8,20480,32768,229376,0,0,0,0,128,1.856,3.438,126.828
|
| 778 |
+
poll-heavy,73492051,6,2,eager-feed-heap,256,8,20480,32768,229376,0,0,0,0,128,5.555,8.445,172.992
|
| 779 |
+
poll-heavy,73492051,6,3,feed-scan,256,8,20480,32768,229376,0,0,0,0,128,2.212,6.023,233.555
|
| 780 |
+
poll-heavy,73492051,6,4,lazy-radix,256,8,20480,32768,229376,0,0,0,0,128,8.361,15.648,651.664
|
| 781 |
+
poll-heavy,73492051,6,5,wide-radix,256,8,20480,32768,229376,0,0,0,0,128,6.656,11.891,359.359
|
| 782 |
+
poll-heavy,73492051,7,5,pulsefold,256,8,20480,32768,229376,0,0,0,0,128,1.898,3.445,221.266
|
| 783 |
+
poll-heavy,73492051,7,1,eager-feed-heap,256,8,20480,32768,229376,0,0,0,0,128,5.803,8.531,440.336
|
| 784 |
+
poll-heavy,73492051,7,2,feed-scan,256,8,20480,32768,229376,0,0,0,0,128,1.638,4.695,134.812
|
| 785 |
+
poll-heavy,73492051,7,3,lazy-radix,256,8,20480,32768,229376,0,0,0,0,128,8.845,15.727,574.055
|
| 786 |
+
poll-heavy,73492051,7,4,wide-radix,256,8,20480,32768,229376,0,0,0,0,128,6.596,11.500,408.258
|
| 787 |
+
poll-heavy,73492051,8,4,pulsefold,256,8,20480,32768,229376,0,0,0,0,128,2.085,3.523,566.078
|
| 788 |
+
poll-heavy,73492051,8,5,eager-feed-heap,256,8,20480,32768,229376,0,0,0,0,128,5.968,8.523,476.961
|
| 789 |
+
poll-heavy,73492051,8,1,feed-scan,256,8,20480,32768,229376,0,0,0,0,128,1.643,4.695,129.961
|
| 790 |
+
poll-heavy,73492051,8,2,lazy-radix,256,8,20480,32768,229376,0,0,0,0,128,7.947,15.492,152.180
|
| 791 |
+
poll-heavy,73492051,8,3,wide-radix,256,8,20480,32768,229376,0,0,0,0,128,7.808,15.570,769.266
|
| 792 |
+
poll-heavy,73492051,9,3,pulsefold,256,8,20480,32768,229376,0,0,0,0,128,1.971,4.219,26.602
|
| 793 |
+
poll-heavy,73492051,9,4,eager-feed-heap,256,8,20480,32768,229376,0,0,0,0,128,5.601,8.219,260.625
|
| 794 |
+
poll-heavy,73492051,9,5,feed-scan,256,8,20480,32768,229376,0,0,0,0,128,2.054,4.773,656.445
|
| 795 |
+
poll-heavy,73492051,9,1,lazy-radix,256,8,20480,32768,229376,0,0,0,0,128,8.056,15.492,130.117
|
| 796 |
+
poll-heavy,73492051,9,2,wide-radix,256,8,20480,32768,229376,0,0,0,0,128,6.427,11.969,157.734
|
| 797 |
+
poll-heavy,73492051,10,2,pulsefold,256,8,20480,32768,229376,0,0,0,0,128,1.795,3.445,22.844
|
| 798 |
+
poll-heavy,73492051,10,3,eager-feed-heap,256,8,20480,32768,229376,0,0,0,0,128,5.725,8.531,346.922
|
| 799 |
+
poll-heavy,73492051,10,4,feed-scan,256,8,20480,32768,229376,0,0,0,0,128,1.723,4.695,176.984
|
| 800 |
+
poll-heavy,73492051,10,5,lazy-radix,256,8,20480,32768,229376,0,0,0,0,128,8.234,15.883,428.133
|
| 801 |
+
poll-heavy,73492051,10,1,wide-radix,256,8,20480,32768,229376,0,0,0,0,128,6.645,12.359,318.594
|
results/unique.jsonl
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"feeds":16384,"subscribers_per_feed":256,"logical_relationships":4194304,"policy_templates":2,"regular_policy_ttl_groups":256,"short_deadline_cohort_feeds":4,"shuffle_seed":73129,"setup_ns":190062,"shuffle_ns":64986,"arm_all_ns":81310,"renew_all_shuffled_ns":66248,"verified_scalar_transitions":16,"full_expiry_group_callbacks":4194304,"full_expiry_represented_subscriber_transitions":4194304,"full_expiry_grouped_ns":33174539,"peak_rss_bytes":2347008,"peak_rss_source":"/proc/self/status VmHWM","verified":true}
|
| 2 |
+
{"feeds":16384,"subscribers_per_feed":256,"logical_relationships":4194304,"policy_templates":2,"regular_policy_ttl_groups":256,"short_deadline_cohort_feeds":4,"shuffle_seed":73129,"setup_ns":169131,"shuffle_ns":59898,"arm_all_ns":82622,"renew_all_shuffled_ns":158194,"verified_scalar_transitions":16,"full_expiry_group_callbacks":4194304,"full_expiry_represented_subscriber_transitions":4194304,"full_expiry_grouped_ns":32029154,"peak_rss_bytes":2342912,"peak_rss_source":"/proc/self/status VmHWM","verified":true}
|
| 3 |
+
{"feeds":16384,"subscribers_per_feed":256,"logical_relationships":4194304,"policy_templates":2,"regular_policy_ttl_groups":256,"short_deadline_cohort_feeds":4,"shuffle_seed":73129,"setup_ns":167367,"shuffle_ns":60690,"arm_all_ns":82462,"renew_all_shuffled_ns":64245,"verified_scalar_transitions":16,"full_expiry_group_callbacks":4194304,"full_expiry_represented_subscriber_transitions":4194304,"full_expiry_grouped_ns":34192094,"peak_rss_bytes":2342912,"peak_rss_source":"/proc/self/status VmHWM","verified":true}
|
| 4 |
+
{"feeds":16384,"subscribers_per_feed":256,"logical_relationships":4194304,"policy_templates":2,"regular_policy_ttl_groups":256,"short_deadline_cohort_feeds":4,"shuffle_seed":73129,"setup_ns":209851,"shuffle_ns":59117,"arm_all_ns":83684,"renew_all_shuffled_ns":67810,"verified_scalar_transitions":16,"full_expiry_group_callbacks":4194304,"full_expiry_represented_subscriber_transitions":4194304,"full_expiry_grouped_ns":35704252,"peak_rss_bytes":2347008,"peak_rss_source":"/proc/self/status VmHWM","verified":true}
|
| 5 |
+
{"feeds":16384,"subscribers_per_feed":256,"logical_relationships":4194304,"policy_templates":2,"regular_policy_ttl_groups":256,"short_deadline_cohort_feeds":4,"shuffle_seed":73129,"setup_ns":167548,"shuffle_ns":61601,"arm_all_ns":157784,"renew_all_shuffled_ns":78956,"verified_scalar_transitions":16,"full_expiry_group_callbacks":4194304,"full_expiry_represented_subscriber_transitions":4194304,"full_expiry_grouped_ns":34038727,"peak_rss_bytes":2342912,"peak_rss_source":"/proc/self/status VmHWM","verified":true}
|
src/arguments.hpp
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#ifndef PULSEFOLD_ARGUMENTS_HPP
|
| 2 |
+
#define PULSEFOLD_ARGUMENTS_HPP
|
| 3 |
+
|
| 4 |
+
#include <charconv>
|
| 5 |
+
#include <cstdint>
|
| 6 |
+
#include <limits>
|
| 7 |
+
#include <stdexcept>
|
| 8 |
+
#include <string_view>
|
| 9 |
+
#include <vector>
|
| 10 |
+
|
| 11 |
+
namespace arguments {
|
| 12 |
+
using Time = std::uint64_t;
|
| 13 |
+
using Id = std::uint32_t;
|
| 14 |
+
|
| 15 |
+
inline Time integer(std::string_view text) {
|
| 16 |
+
Time value;
|
| 17 |
+
const auto parsed = std::from_chars(text.data(), text.data() + text.size(), value);
|
| 18 |
+
if (parsed.ec != std::errc() || parsed.ptr != text.data() + text.size())
|
| 19 |
+
throw std::invalid_argument("expected an unsigned decimal integer");
|
| 20 |
+
return value;
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
inline Id feed_count(std::string_view text) {
|
| 24 |
+
const auto value = integer(text);
|
| 25 |
+
if (value == 0 || value > std::numeric_limits<Id>::max())
|
| 26 |
+
throw std::invalid_argument("feed count outside 1..UINT32_MAX");
|
| 27 |
+
return static_cast<Id>(value);
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
inline std::vector<Time> thresholds(std::string_view text) {
|
| 31 |
+
std::vector<Time> values;
|
| 32 |
+
while (true) {
|
| 33 |
+
const auto comma = text.find(',');
|
| 34 |
+
values.push_back(integer(text.substr(0, comma)));
|
| 35 |
+
if (comma == text.npos) return values;
|
| 36 |
+
text.remove_prefix(comma + 1);
|
| 37 |
+
}
|
| 38 |
+
}
|
| 39 |
+
} // namespace arguments
|
| 40 |
+
|
| 41 |
+
#endif
|
src/live.cpp
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#include "arguments.hpp"
|
| 2 |
+
#include "pulsefold.hpp"
|
| 3 |
+
|
| 4 |
+
#include <algorithm>
|
| 5 |
+
#include <array>
|
| 6 |
+
#include <cerrno>
|
| 7 |
+
#include <chrono>
|
| 8 |
+
#include <climits>
|
| 9 |
+
#include <iostream>
|
| 10 |
+
#include <optional>
|
| 11 |
+
#include <poll.h>
|
| 12 |
+
#include <stdexcept>
|
| 13 |
+
#include <string>
|
| 14 |
+
#include <string_view>
|
| 15 |
+
#include <system_error>
|
| 16 |
+
#include <unistd.h>
|
| 17 |
+
|
| 18 |
+
namespace {
|
| 19 |
+
using arguments::Id;
|
| 20 |
+
using arguments::Time;
|
| 21 |
+
using Clock = std::chrono::steady_clock;
|
| 22 |
+
|
| 23 |
+
constexpr char usage[] =
|
| 24 |
+
"Usage: pulsefold-live FEED_COUNT TTL_MS[,TTL_MS...]\n"
|
| 25 |
+
"Read newline-delimited decimal feed IDs from stdin. Silence advances time.\n"
|
| 26 |
+
"Print and flush 'TIME FEED SUBSCRIBER stale|fresh' per transition.\n"
|
| 27 |
+
"TIME is monotonic milliseconds since startup. EOF ends the monitor.\n";
|
| 28 |
+
|
| 29 |
+
int wait_ms(std::optional<Time> wake, Time now) {
|
| 30 |
+
if (!wake) return -1;
|
| 31 |
+
if (*wake <= now) return 0;
|
| 32 |
+
return static_cast<int>(std::min<Time>(*wake - now, INT_MAX));
|
| 33 |
+
}
|
| 34 |
+
void emit(Time time, Id feed, Id subscriber, bool fresh) {
|
| 35 |
+
std::cout << time << ' ' << feed << ' ' << subscriber << (fresh ? " fresh\n" : " stale\n")
|
| 36 |
+
<< std::flush;
|
| 37 |
+
}
|
| 38 |
+
void check_output() {
|
| 39 |
+
if (!std::cout) throw std::runtime_error("output write failed");
|
| 40 |
+
}
|
| 41 |
+
|
| 42 |
+
void run(Id feeds, const std::vector<Time>& thresholds) {
|
| 43 |
+
pulsefold::Monitor monitor({thresholds}, std::vector<Id>(feeds, 0));
|
| 44 |
+
const auto origin = Clock::now();
|
| 45 |
+
const auto now = [&] {
|
| 46 |
+
return static_cast<Time>(std::chrono::duration_cast<std::chrono::milliseconds>(
|
| 47 |
+
Clock::now() - origin).count());
|
| 48 |
+
};
|
| 49 |
+
std::array<char, 64> line;
|
| 50 |
+
std::size_t used = 0;
|
| 51 |
+
std::size_t line_number = 1;
|
| 52 |
+
const auto observe_line = [&] {
|
| 53 |
+
std::string_view value(line.data(), used);
|
| 54 |
+
if (!value.empty() && value.back() == '\r') value.remove_suffix(1);
|
| 55 |
+
try {
|
| 56 |
+
const auto id = arguments::integer(value);
|
| 57 |
+
if (id >= feeds) throw std::out_of_range("unknown feed ID");
|
| 58 |
+
monitor.observe(static_cast<Id>(id), now(), emit);
|
| 59 |
+
} catch (const std::exception& ex) {
|
| 60 |
+
throw std::runtime_error("input line " + std::to_string(line_number) + ": " + ex.what());
|
| 61 |
+
}
|
| 62 |
+
check_output();
|
| 63 |
+
++line_number;
|
| 64 |
+
used = 0;
|
| 65 |
+
};
|
| 66 |
+
|
| 67 |
+
pollfd input{STDIN_FILENO, POLLIN, 0};
|
| 68 |
+
std::array<char, 4096> chunk;
|
| 69 |
+
for (;;) {
|
| 70 |
+
monitor.advance(now(), emit);
|
| 71 |
+
check_output();
|
| 72 |
+
// The elapsed time while callbacks flushed output counts toward the next deadline.
|
| 73 |
+
const int ready = ::poll(&input, 1, wait_ms(monitor.next_wake(), now()));
|
| 74 |
+
if (ready < 0) {
|
| 75 |
+
if (errno == EINTR) continue;
|
| 76 |
+
throw std::system_error(errno, std::generic_category(), "poll stdin");
|
| 77 |
+
}
|
| 78 |
+
if (ready == 0) continue;
|
| 79 |
+
if (input.revents & POLLNVAL) throw std::runtime_error("invalid stdin descriptor");
|
| 80 |
+
if (!(input.revents & (POLLIN | POLLHUP))) throw std::runtime_error("stdin poll error");
|
| 81 |
+
const ssize_t bytes = ::read(STDIN_FILENO, chunk.data(), chunk.size());
|
| 82 |
+
if (bytes < 0) {
|
| 83 |
+
if (errno == EINTR || errno == EAGAIN || errno == EWOULDBLOCK) continue;
|
| 84 |
+
throw std::system_error(errno, std::generic_category(), "read stdin");
|
| 85 |
+
}
|
| 86 |
+
if (bytes == 0) {
|
| 87 |
+
if (used) observe_line();
|
| 88 |
+
monitor.advance(now(), emit);
|
| 89 |
+
check_output();
|
| 90 |
+
return;
|
| 91 |
+
}
|
| 92 |
+
for (ssize_t i = 0; i < bytes; ++i) {
|
| 93 |
+
if (chunk[i] == '\n') {
|
| 94 |
+
observe_line();
|
| 95 |
+
} else {
|
| 96 |
+
if (used == line.size())
|
| 97 |
+
throw std::runtime_error("input line " + std::to_string(line_number) +
|
| 98 |
+
" exceeds 64 bytes");
|
| 99 |
+
line[used++] = chunk[i];
|
| 100 |
+
}
|
| 101 |
+
}
|
| 102 |
+
}
|
| 103 |
+
}
|
| 104 |
+
} // namespace
|
| 105 |
+
|
| 106 |
+
int main(int argc, char** argv) {
|
| 107 |
+
if (argc == 2 && std::string_view(argv[1]) == "--help") {
|
| 108 |
+
std::cout << usage;
|
| 109 |
+
return 0;
|
| 110 |
+
}
|
| 111 |
+
if (argc != 3) {
|
| 112 |
+
std::cerr << usage;
|
| 113 |
+
return 2;
|
| 114 |
+
}
|
| 115 |
+
std::ios::sync_with_stdio(false);
|
| 116 |
+
try {
|
| 117 |
+
run(arguments::feed_count(argv[1]), arguments::thresholds(argv[2]));
|
| 118 |
+
} catch (const std::exception& ex) {
|
| 119 |
+
std::cerr << "pulsefold-live: " << ex.what() << '\n';
|
| 120 |
+
return 1;
|
| 121 |
+
}
|
| 122 |
+
}
|
src/replay.cpp
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#include "arguments.hpp"
|
| 2 |
+
#include "pulsefold.hpp"
|
| 3 |
+
|
| 4 |
+
#include <iostream>
|
| 5 |
+
#include <sstream>
|
| 6 |
+
#include <string>
|
| 7 |
+
#include <string_view>
|
| 8 |
+
#include <vector>
|
| 9 |
+
|
| 10 |
+
namespace {
|
| 11 |
+
using arguments::Id;
|
| 12 |
+
using arguments::Time;
|
| 13 |
+
|
| 14 |
+
constexpr char usage[] =
|
| 15 |
+
"Usage: pulsefold FEED_COUNT TTL[,TTL...] [--summary]\n"
|
| 16 |
+
"Read lines 'TIME FEED' or 'TIME tick' from stdin. Times and TTLs use the same unit.\n"
|
| 17 |
+
"Print 'TIME FEED SUBSCRIBER stale|fresh' for every transition.\n";
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
int main(int argc, char** argv) {
|
| 21 |
+
if (argc == 2 && std::string_view(argv[1]) == "--help") {
|
| 22 |
+
std::cout << usage;
|
| 23 |
+
return 0;
|
| 24 |
+
}
|
| 25 |
+
const bool summary = argc == 4 && std::string_view(argv[3]) == "--summary";
|
| 26 |
+
if (argc != 3 && !summary) {
|
| 27 |
+
std::cerr << usage;
|
| 28 |
+
return 2;
|
| 29 |
+
}
|
| 30 |
+
std::ios::sync_with_stdio(false);
|
| 31 |
+
std::cin.tie(nullptr);
|
| 32 |
+
std::size_t row = 0;
|
| 33 |
+
try {
|
| 34 |
+
const auto count = arguments::feed_count(argv[1]);
|
| 35 |
+
const std::vector<Id> policy_ids(count, 0);
|
| 36 |
+
pulsefold::Monitor monitor({arguments::thresholds(argv[2])}, policy_ids);
|
| 37 |
+
Time stale = 0, fresh = 0, observations = 0, ticks = 0;
|
| 38 |
+
auto emit = [&](Time t, Id feed, Id sub, bool recovered) {
|
| 39 |
+
++(recovered ? fresh : stale);
|
| 40 |
+
if (!summary)
|
| 41 |
+
std::cout << t << ' ' << feed << ' ' << sub
|
| 42 |
+
<< (recovered ? " fresh\n" : " stale\n");
|
| 43 |
+
};
|
| 44 |
+
std::string line;
|
| 45 |
+
while (std::getline(std::cin, line)) {
|
| 46 |
+
++row;
|
| 47 |
+
std::istringstream fields(line);
|
| 48 |
+
std::string timestamp, feed, extra;
|
| 49 |
+
if (!(fields >> timestamp)) continue;
|
| 50 |
+
if (!(fields >> feed) || fields >> extra)
|
| 51 |
+
throw std::invalid_argument("expected exactly TIME FEED or TIME tick");
|
| 52 |
+
const auto t = arguments::integer(timestamp);
|
| 53 |
+
if (feed == "tick") {
|
| 54 |
+
monitor.advance(t, emit);
|
| 55 |
+
++ticks;
|
| 56 |
+
} else {
|
| 57 |
+
const auto id = arguments::integer(feed);
|
| 58 |
+
if (id >= count) throw std::out_of_range("unknown feed ID");
|
| 59 |
+
monitor.observe(static_cast<Id>(id), t, emit);
|
| 60 |
+
++observations;
|
| 61 |
+
}
|
| 62 |
+
}
|
| 63 |
+
if (!std::cin.eof() || std::cin.bad()) throw std::runtime_error("input read failed");
|
| 64 |
+
if (summary)
|
| 65 |
+
std::cout << "{\"observations\":" << observations << ",\"ticks\":" << ticks
|
| 66 |
+
<< ",\"stale\":" << stale << ",\"fresh\":" << fresh << "}\n";
|
| 67 |
+
std::cout.flush();
|
| 68 |
+
if (!std::cout) throw std::runtime_error("output write failed");
|
| 69 |
+
} catch (const std::exception& ex) {
|
| 70 |
+
std::cerr << "pulsefold" << (row ? " input line " + std::to_string(row) : "")
|
| 71 |
+
<< ": " << ex.what() << '\n';
|
| 72 |
+
return 1;
|
| 73 |
+
}
|
| 74 |
+
}
|
tests/live_smoke.py
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Exercise the live adapter through a real pipe, including a stalled producer."""
|
| 2 |
+
import os
|
| 3 |
+
import select
|
| 4 |
+
import subprocess
|
| 5 |
+
import sys
|
| 6 |
+
import time
|
| 7 |
+
|
| 8 |
+
binary = sys.argv[1]
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
def read_event(stream):
|
| 12 |
+
deadline = time.monotonic() + 5
|
| 13 |
+
line = bytearray()
|
| 14 |
+
while not line.endswith(b"\n"):
|
| 15 |
+
remaining = deadline - time.monotonic()
|
| 16 |
+
assert remaining > 0 and select.select([stream], [], [], remaining)[0], "event timed out"
|
| 17 |
+
byte = os.read(stream.fileno(), 1)
|
| 18 |
+
assert byte, "monitor closed stdout unexpectedly"
|
| 19 |
+
line.extend(byte)
|
| 20 |
+
timestamp, feed, subscriber, state = line.decode("ascii").split()
|
| 21 |
+
return int(timestamp), int(feed), int(subscriber), state
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
proc = subprocess.Popen(
|
| 25 |
+
[binary, "2", "90,170"], stdin=subprocess.PIPE, stdout=subprocess.PIPE,
|
| 26 |
+
stderr=subprocess.PIPE, bufsize=0
|
| 27 |
+
)
|
| 28 |
+
try:
|
| 29 |
+
# The incomplete next ID must neither refresh feed 1 nor stall timer delivery.
|
| 30 |
+
proc.stdin.write(b"1\n1")
|
| 31 |
+
early, late = read_event(proc.stdout), read_event(proc.stdout)
|
| 32 |
+
assert early[1:] == (1, 0, "stale") and late[1:] == (1, 1, "stale"), (early, late)
|
| 33 |
+
assert early[0] >= 90 and late[0] - early[0] == 80, (early, late)
|
| 34 |
+
proc.stdin.write(b"\r\n")
|
| 35 |
+
first, second = read_event(proc.stdout), read_event(proc.stdout)
|
| 36 |
+
assert first[1:] == (1, 0, "fresh") and second[1:] == (1, 1, "fresh"), (first, second)
|
| 37 |
+
assert first[0] >= late[0] and second[0] == first[0], (first, second)
|
| 38 |
+
proc.stdin.close()
|
| 39 |
+
assert proc.wait(timeout=5) == 0, proc.stderr.read()
|
| 40 |
+
finally:
|
| 41 |
+
proc.kill()
|
| 42 |
+
proc.wait()
|
| 43 |
+
for stream in (proc.stdin, proc.stdout, proc.stderr):
|
| 44 |
+
stream.close()
|
| 45 |
+
|
| 46 |
+
for args, data, expected in [
|
| 47 |
+
(["1", "1000"], b"0", 0), # complete, unterminated final ID
|
| 48 |
+
(["1", "1000"], b"0\n2\n", 1), # out of range
|
| 49 |
+
(["1", "1000"], b"0" * 65, 1), # unbounded partial input
|
| 50 |
+
(["1", "1000"], b"nope\n", 1),
|
| 51 |
+
(["1", "0"], b"", 1), # zero TTL
|
| 52 |
+
(["1", "1000,"], b"", 1), # missing TTL
|
| 53 |
+
(["4294967296", "1000"], b"", 1),
|
| 54 |
+
(["1", "18446744073709551615"], b"0\n", 0),
|
| 55 |
+
]:
|
| 56 |
+
result = subprocess.run([binary, *args], input=data, capture_output=True, timeout=5)
|
| 57 |
+
assert result.returncode == expected, (args, result.returncode, result.stderr)
|
| 58 |
+
if expected:
|
| 59 |
+
assert result.stderr
|
| 60 |
+
else:
|
| 61 |
+
assert not result.stdout
|
| 62 |
+
|
| 63 |
+
print("Live pipe smoke passed: silent expiry, partial lines, flushed recovery, EOF and invalid inputs.")
|
tests/test_baselines.cpp
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#include "../bench/wide_radix.hpp"
|
| 2 |
+
|
| 3 |
+
#include <cassert>
|
| 4 |
+
#include <cstdint>
|
| 5 |
+
#include <iostream>
|
| 6 |
+
#include <limits>
|
| 7 |
+
#include <random>
|
| 8 |
+
#include <tuple>
|
| 9 |
+
#include <vector>
|
| 10 |
+
|
| 11 |
+
// The scan uses sorted batches. The other engines use three different queues.
|
| 12 |
+
// Compare the complete ordered callback sequence after every operation across
|
| 13 |
+
// power-of-two epoch boundaries, with duplicate TTLs and unrepresentable sums.
|
| 14 |
+
int main() {
|
| 15 |
+
using Time = std::uint64_t;
|
| 16 |
+
using Id = std::uint32_t;
|
| 17 |
+
using Event = std::tuple<Time, Id, Id, bool>;
|
| 18 |
+
using namespace pulsefold::bench;
|
| 19 |
+
constexpr Time maximum = std::numeric_limits<Time>::max();
|
| 20 |
+
std::mt19937_64 rng(13644853);
|
| 21 |
+
|
| 22 |
+
for (unsigned bit = 0; bit < 64; ++bit) {
|
| 23 |
+
const Id feed_count = 2 + static_cast<Id>(rng() % 32);
|
| 24 |
+
std::vector<std::vector<Time>> config(feed_count);
|
| 25 |
+
for (auto& subscribers : config) {
|
| 26 |
+
const auto size = rng() % 10;
|
| 27 |
+
for (unsigned j = 0; j < size; ++j) {
|
| 28 |
+
const auto kind = rng() % 4;
|
| 29 |
+
if (kind == 0) subscribers.push_back(maximum);
|
| 30 |
+
else if (kind == 1) subscribers.push_back(Time{1} << (rng() % 64));
|
| 31 |
+
else subscribers.push_back(1 + rng() % 50);
|
| 32 |
+
}
|
| 33 |
+
}
|
| 34 |
+
FeedScan scan(config);
|
| 35 |
+
EagerFeedHeap eager(config);
|
| 36 |
+
LazyRadix narrow(config);
|
| 37 |
+
WideRadix wide(config);
|
| 38 |
+
Time now = (Time{1} << bit) - 1;
|
| 39 |
+
std::vector<Event> expected, observed;
|
| 40 |
+
auto verify = [&](bool poll, Id id) {
|
| 41 |
+
auto drive = [&](auto& engine, auto& events) {
|
| 42 |
+
auto emit = [&](Time time, Id feed, Id subscriber, bool fresh) {
|
| 43 |
+
events.emplace_back(time, feed, subscriber, fresh);
|
| 44 |
+
};
|
| 45 |
+
if (poll) engine.advance(now, emit);
|
| 46 |
+
else engine.observe(id, now, emit);
|
| 47 |
+
};
|
| 48 |
+
expected.clear();
|
| 49 |
+
drive(scan, expected);
|
| 50 |
+
auto compare = [&](auto& engine) {
|
| 51 |
+
observed.clear();
|
| 52 |
+
drive(engine, observed);
|
| 53 |
+
assert(observed == expected);
|
| 54 |
+
};
|
| 55 |
+
compare(eager);
|
| 56 |
+
compare(narrow);
|
| 57 |
+
compare(wide);
|
| 58 |
+
};
|
| 59 |
+
for (unsigned i = 0; i < 3000; ++i) {
|
| 60 |
+
now += rng() % 7;
|
| 61 |
+
const bool poll = rng() % 4 == 0;
|
| 62 |
+
const Id id = static_cast<Id>(rng() % feed_count);
|
| 63 |
+
verify(poll, id);
|
| 64 |
+
}
|
| 65 |
+
now = maximum;
|
| 66 |
+
verify(true, 0);
|
| 67 |
+
verify(false, 0);
|
| 68 |
+
verify(true, 0);
|
| 69 |
+
}
|
| 70 |
+
std::cout << "Four baselines matched on 192192 ordered operations.\n";
|
| 71 |
+
}
|
tests/test_monitor.cpp
ADDED
|
@@ -0,0 +1,288 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#include "../include/pulsefold.hpp"
|
| 2 |
+
|
| 3 |
+
#include <algorithm>
|
| 4 |
+
#include <cstdint>
|
| 5 |
+
#include <cstdlib>
|
| 6 |
+
#include <iostream>
|
| 7 |
+
#include <limits>
|
| 8 |
+
#include <optional>
|
| 9 |
+
#include <random>
|
| 10 |
+
#include <stdexcept>
|
| 11 |
+
#include <string>
|
| 12 |
+
#include <tuple>
|
| 13 |
+
#include <vector>
|
| 14 |
+
|
| 15 |
+
namespace {
|
| 16 |
+
|
| 17 |
+
using Tick = std::uint64_t;
|
| 18 |
+
using Index = std::uint32_t;
|
| 19 |
+
using Config = std::vector<std::vector<Tick>>;
|
| 20 |
+
using Event = std::tuple<Tick, Index, Index, bool>;
|
| 21 |
+
using Events = std::vector<Event>;
|
| 22 |
+
constexpr Tick last_tick = std::numeric_limits<Tick>::max();
|
| 23 |
+
|
| 24 |
+
void require(bool condition, const std::string& message) {
|
| 25 |
+
if (!condition) throw std::runtime_error(message);
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
// The oracle scans every independent subscription at every call. It shares
|
| 29 |
+
// neither an ordering index nor an expiration cursor with the product.
|
| 30 |
+
struct Watch {
|
| 31 |
+
Tick ttl;
|
| 32 |
+
std::optional<Tick> observed_at;
|
| 33 |
+
bool stale = false;
|
| 34 |
+
};
|
| 35 |
+
|
| 36 |
+
class ScanMonitor {
|
| 37 |
+
public:
|
| 38 |
+
explicit ScanMonitor(const Config& config) : feeds_(config.size()) {
|
| 39 |
+
for (std::size_t f = 0; f < config.size(); ++f) {
|
| 40 |
+
for (Tick ttl : config[f]) feeds_[f].push_back({ttl, std::nullopt, false});
|
| 41 |
+
}
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
Events apply(Tick now, std::optional<Index> refresh) {
|
| 45 |
+
Events events;
|
| 46 |
+
for (Index f = 0; f < feeds_.size(); ++f) {
|
| 47 |
+
for (Index s = 0; s < feeds_[f].size(); ++s) {
|
| 48 |
+
auto& watch = feeds_[f][s];
|
| 49 |
+
if (!watch.observed_at || watch.stale) continue;
|
| 50 |
+
// Subtraction handles an unrepresentable mathematical deadline.
|
| 51 |
+
if (now - *watch.observed_at >= watch.ttl) {
|
| 52 |
+
events.emplace_back(*watch.observed_at + watch.ttl, f, s, false);
|
| 53 |
+
watch.stale = true;
|
| 54 |
+
}
|
| 55 |
+
}
|
| 56 |
+
}
|
| 57 |
+
std::sort(events.begin(), events.end());
|
| 58 |
+
if (refresh) {
|
| 59 |
+
auto& feed = feeds_[*refresh];
|
| 60 |
+
for (Index s = 0; s < feed.size(); ++s) {
|
| 61 |
+
if (feed[s].stale) events.emplace_back(now, *refresh, s, true);
|
| 62 |
+
feed[s].observed_at = now;
|
| 63 |
+
feed[s].stale = false;
|
| 64 |
+
}
|
| 65 |
+
}
|
| 66 |
+
return events;
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
std::optional<Tick> first_deadline() const {
|
| 70 |
+
std::optional<Tick> earliest;
|
| 71 |
+
for (const auto& feed : feeds_) {
|
| 72 |
+
for (const auto& watch : feed) {
|
| 73 |
+
if (watch.stale || !watch.observed_at || last_tick - *watch.observed_at < watch.ttl)
|
| 74 |
+
continue;
|
| 75 |
+
const Tick due = *watch.observed_at + watch.ttl;
|
| 76 |
+
if (!earliest || due < *earliest) earliest = due;
|
| 77 |
+
}
|
| 78 |
+
}
|
| 79 |
+
return earliest;
|
| 80 |
+
}
|
| 81 |
+
|
| 82 |
+
private:
|
| 83 |
+
std::vector<std::vector<Watch>> feeds_;
|
| 84 |
+
};
|
| 85 |
+
|
| 86 |
+
class Check {
|
| 87 |
+
public:
|
| 88 |
+
explicit Check(const Config& config) : actual_(config), grouped_(config), oracle_(config) {}
|
| 89 |
+
|
| 90 |
+
Check(const Config& policies, const std::vector<Index>& policy_for)
|
| 91 |
+
: actual_(policies, policy_for), grouped_(policies, policy_for),
|
| 92 |
+
oracle_(expand(policies, policy_for)) {}
|
| 93 |
+
|
| 94 |
+
Events call(Tick now, std::optional<Index> refresh = std::nullopt) {
|
| 95 |
+
Events recorded;
|
| 96 |
+
auto emit = [&](Tick at, Index feed, Index subscriber, bool fresh) {
|
| 97 |
+
recorded.emplace_back(at, feed, subscriber, fresh);
|
| 98 |
+
};
|
| 99 |
+
if (refresh) actual_.observe(*refresh, now, emit);
|
| 100 |
+
else actual_.advance(now, emit);
|
| 101 |
+
|
| 102 |
+
Events expanded;
|
| 103 |
+
std::optional<std::tuple<Tick, Index, bool>> previous;
|
| 104 |
+
auto emit_group = [&](Tick at, Index feed, pulsefold::SubscriberView group, bool fresh) {
|
| 105 |
+
require(group.size() > 0 && static_cast<std::size_t>(group.end() - group.begin()) == group.size(),
|
| 106 |
+
"invalid subscriber view");
|
| 107 |
+
const auto key = std::make_tuple(at, feed, fresh);
|
| 108 |
+
require(!previous || key != *previous, "emitted multiple groups for one deadline or recovery");
|
| 109 |
+
previous = key;
|
| 110 |
+
for (Index subscriber : group) expanded.emplace_back(at, feed, subscriber, fresh);
|
| 111 |
+
};
|
| 112 |
+
if (refresh) grouped_.observe_groups(*refresh, now, emit_group);
|
| 113 |
+
else grouped_.advance_groups(now, emit_group);
|
| 114 |
+
require(expanded == recorded, "group expansion changed the scalar event order");
|
| 115 |
+
|
| 116 |
+
// Ordering of recovery callbacks within one feed is immaterial. All
|
| 117 |
+
// expirations, including those at the observation tick, must precede them.
|
| 118 |
+
const auto recoveries = std::find_if(recorded.begin(), recorded.end(),
|
| 119 |
+
[](const Event& e) { return std::get<3>(e); });
|
| 120 |
+
const auto context = " at tick " + std::to_string(now) + " on call " +
|
| 121 |
+
std::to_string(++calls_);
|
| 122 |
+
require(std::all_of(recoveries, recorded.end(),
|
| 123 |
+
[](const Event& e) { return std::get<3>(e); }), "expiration after recovery" + context);
|
| 124 |
+
require(std::is_sorted(recorded.begin(), recoveries), "expirations out of order" + context);
|
| 125 |
+
std::sort(recoveries, recorded.end());
|
| 126 |
+
require(recorded == oracle_.apply(now, refresh), "oracle mismatch" + context);
|
| 127 |
+
const auto hint = actual_.next_wake();
|
| 128 |
+
const auto exact = oracle_.first_deadline();
|
| 129 |
+
require(!hint || *hint > now, "wake hint failed to advance" + context);
|
| 130 |
+
require(!exact || (hint && *hint <= *exact), "missing or late wake hint" + context);
|
| 131 |
+
return recorded;
|
| 132 |
+
}
|
| 133 |
+
|
| 134 |
+
void reject(Tick now, std::optional<Index> refresh) {
|
| 135 |
+
const auto hint = actual_.next_wake();
|
| 136 |
+
bool called = false;
|
| 137 |
+
bool rejected = false;
|
| 138 |
+
auto emit = [&](Tick, Index, Index, bool) { called = true; };
|
| 139 |
+
try {
|
| 140 |
+
if (refresh) actual_.observe(*refresh, now, emit);
|
| 141 |
+
else actual_.advance(now, emit);
|
| 142 |
+
} catch (const std::exception&) {
|
| 143 |
+
rejected = true;
|
| 144 |
+
}
|
| 145 |
+
require(rejected && !called, "invalid call must reject before dispatch");
|
| 146 |
+
require(hint == actual_.next_wake(), "invalid call changed next wake");
|
| 147 |
+
}
|
| 148 |
+
|
| 149 |
+
private:
|
| 150 |
+
static Config expand(const Config& policies, const std::vector<Index>& policy_for) {
|
| 151 |
+
Config by_feed;
|
| 152 |
+
for (Index policy : policy_for) by_feed.push_back(policies.at(policy));
|
| 153 |
+
return by_feed;
|
| 154 |
+
}
|
| 155 |
+
|
| 156 |
+
pulsefold::Monitor actual_;
|
| 157 |
+
pulsefold::Monitor grouped_;
|
| 158 |
+
ScanMonitor oracle_;
|
| 159 |
+
std::size_t calls_ = 0;
|
| 160 |
+
};
|
| 161 |
+
|
| 162 |
+
void boundaries() {
|
| 163 |
+
Check c(Config{{7, 3, 3, 1}, {4, 3}, {}, {1}});
|
| 164 |
+
require(c.call(101).empty(), "unseen feeds must stay silent");
|
| 165 |
+
for (Index f : {1u, 3u, 0u, 2u}) require(c.call(101, f).empty(), "first observation");
|
| 166 |
+
require(c.call(102, 0) == Events{{102,0,3,false}, {102,3,0,false}, {102,0,3,true}},
|
| 167 |
+
"same-tick expiration must precede recovery");
|
| 168 |
+
require(c.call(102, 0).empty(), "duplicate observation");
|
| 169 |
+
require(c.call(105) == Events{{103,0,3,false}, {104,1,1,false}, {105,0,1,false},
|
| 170 |
+
{105,0,2,false}, {105,1,0,false}}, "tied TTLs must retain subscriber IDs");
|
| 171 |
+
require(c.call(109, 0) == Events{{109,0,0,false}, {109,0,0,true}, {109,0,1,true},
|
| 172 |
+
{109,0,2,true}, {109,0,3,true}}, "stalled feed recovery");
|
| 173 |
+
c.call(last_tick);
|
| 174 |
+
require(c.call(last_tick).empty(), "a stale transition may fire only once");
|
| 175 |
+
|
| 176 |
+
Check empty(Config{});
|
| 177 |
+
empty.call(0);
|
| 178 |
+
empty.reject(55, 0);
|
| 179 |
+
empty.call(1);
|
| 180 |
+
empty.call(last_tick);
|
| 181 |
+
}
|
| 182 |
+
|
| 183 |
+
void clock_limits() {
|
| 184 |
+
Check c(Config{{last_tick, last_tick - 1}, {1, 2, 3}, {last_tick}});
|
| 185 |
+
c.call(0, 0);
|
| 186 |
+
c.call(1, 2);
|
| 187 |
+
c.call(last_tick - 2, 1);
|
| 188 |
+
require(c.call(last_tick - 1) == Events{{last_tick-1,0,1,false}, {last_tick-1,1,0,false}},
|
| 189 |
+
"near-maximum deadline");
|
| 190 |
+
require(c.call(last_tick, 1) == Events{{last_tick,0,0,false}, {last_tick,1,1,false},
|
| 191 |
+
{last_tick,1,0,true}, {last_tick,1,1,true}}, "exact max and unrepresentable deadlines");
|
| 192 |
+
c.call(last_tick, 0);
|
| 193 |
+
require(c.call(last_tick).empty(), "overflow must not create a deadline at max");
|
| 194 |
+
|
| 195 |
+
Check rearm(Config{{10}, {2}});
|
| 196 |
+
rearm.call(last_tick - 12, 0);
|
| 197 |
+
rearm.call(last_tick - 9, 0); // Its mathematical deadline now overflows.
|
| 198 |
+
rearm.call(last_tick - 2); // Retire the obsolete first wake.
|
| 199 |
+
rearm.call(last_tick - 2, 1);
|
| 200 |
+
require(rearm.call(last_tick) == Events{{last_tick,1,0,false}},
|
| 201 |
+
"a new feed must still fire after the previous wake overflows");
|
| 202 |
+
}
|
| 203 |
+
|
| 204 |
+
void rejected_calls_are_atomic() {
|
| 205 |
+
Check c(Config{{2, 5}, {1}, {}});
|
| 206 |
+
c.call(10, 0);
|
| 207 |
+
c.reject(100, 3);
|
| 208 |
+
c.reject(9, std::nullopt);
|
| 209 |
+
c.reject(9, 1);
|
| 210 |
+
c.reject(8, std::numeric_limits<Index>::max());
|
| 211 |
+
require(c.call(12) == Events{{12,0,0,false}}, "invalid calls may not consume deadlines");
|
| 212 |
+
c.reject(last_tick, std::numeric_limits<Index>::max());
|
| 213 |
+
c.call(13, 0);
|
| 214 |
+
c.call(14, 1);
|
| 215 |
+
c.call(25);
|
| 216 |
+
}
|
| 217 |
+
|
| 218 |
+
void shared_policies() {
|
| 219 |
+
const Config policies{{7, 1, 3, 1}, {}, {11, 4}};
|
| 220 |
+
const std::vector<Index> policy_for{2, 0, 0, 1, 0, 2};
|
| 221 |
+
Check c(policies, policy_for);
|
| 222 |
+
for (Index f : {0u, 1u, 4u, 3u}) c.call(1, f);
|
| 223 |
+
c.call(2, 2);
|
| 224 |
+
c.call(2, 4);
|
| 225 |
+
c.call(4, 1);
|
| 226 |
+
c.call(6, 5);
|
| 227 |
+
c.call(1000);
|
| 228 |
+
for (Index f = 0; f < policy_for.size(); ++f) c.call(1000, f);
|
| 229 |
+
c.call(last_tick);
|
| 230 |
+
|
| 231 |
+
Check unused(policies, {});
|
| 232 |
+
unused.call(last_tick);
|
| 233 |
+
bool rejected = false;
|
| 234 |
+
try {
|
| 235 |
+
pulsefold::Monitor bad(policies, std::vector<Index>{0, 3});
|
| 236 |
+
} catch (const std::exception&) {
|
| 237 |
+
rejected = true;
|
| 238 |
+
}
|
| 239 |
+
require(rejected, "invalid shared policy ID");
|
| 240 |
+
rejected = false;
|
| 241 |
+
try {
|
| 242 |
+
pulsefold::Monitor bad(Config{{3, 0, 4}});
|
| 243 |
+
} catch (const std::invalid_argument&) {
|
| 244 |
+
rejected = true;
|
| 245 |
+
}
|
| 246 |
+
require(rejected, "zero TTL");
|
| 247 |
+
}
|
| 248 |
+
|
| 249 |
+
void differential() {
|
| 250 |
+
for (unsigned seed = 0; seed < 60; ++seed) {
|
| 251 |
+
std::mt19937_64 rng(seed);
|
| 252 |
+
const Index n = 1 + static_cast<Index>(rng() % 24);
|
| 253 |
+
Config config(n);
|
| 254 |
+
for (auto& feed : config) {
|
| 255 |
+
const auto size = rng() % 24;
|
| 256 |
+
for (std::size_t s = 0; s < size; ++s) feed.push_back(1 + rng() % 20);
|
| 257 |
+
}
|
| 258 |
+
Check c(config);
|
| 259 |
+
Tick now = 0;
|
| 260 |
+
for (int step = 0; step < 450; ++step) {
|
| 261 |
+
if (step % 53 == 0) now += 1000;
|
| 262 |
+
else now += rng() % 4;
|
| 263 |
+
if (step % 37 == 0) c.reject(now + 100, n);
|
| 264 |
+
if (rng() % 5 == 0) c.call(now);
|
| 265 |
+
else c.call(now, static_cast<Index>(rng() % n));
|
| 266 |
+
}
|
| 267 |
+
c.call(last_tick);
|
| 268 |
+
for (Index f = 0; f < n; ++f) c.call(last_tick, f);
|
| 269 |
+
c.call(last_tick);
|
| 270 |
+
}
|
| 271 |
+
}
|
| 272 |
+
|
| 273 |
+
} // namespace
|
| 274 |
+
|
| 275 |
+
int main() {
|
| 276 |
+
try {
|
| 277 |
+
boundaries();
|
| 278 |
+
clock_limits();
|
| 279 |
+
rejected_calls_are_atomic();
|
| 280 |
+
shared_policies();
|
| 281 |
+
differential();
|
| 282 |
+
std::cout << "Pulsefold monitor checks passed (60 randomized traces).\n";
|
| 283 |
+
return EXIT_SUCCESS;
|
| 284 |
+
} catch (const std::exception& e) {
|
| 285 |
+
std::cerr << "Pulsefold monitor check failed: " << e.what() << '\n';
|
| 286 |
+
return EXIT_FAILURE;
|
| 287 |
+
}
|
| 288 |
+
}
|