sincekit / docs /quickstart.md
pgg-engineering's picture
Release SinceKit 0.1.0 with native benchmarks and trace replay
ef8334d verified
|
Raw History Blame Contribute Delete
1.54 kB

Run SinceKit on a workload

Does your live world have many readers with different last-seen revisions, all authorized to see the same keys? This example prepares a single coalesced row array and a prefix length for each of them.

git clone --depth 1 https://huggingface.co/spaces/pgg-engineering/sincekit
cd sincekit
make demo check replay

These commands compile and exercise the native implementation and verify a replay of 24,544 observed model-request completions. The third command prints a three-reader example, test results, and a JSON report. Use a C++17 compiler, Make and Python 3.

To evaluate your own cadence, stream writes and reader cursors to the compiled command. Writes advance the revision by one.

printf 'touch 1\ntouch 8\ntouch 1\nerase 8\nplan 0 1 3 4\n' | build/sincekit 16

In Python, build the optional extension from this checkout with python3 -m pip install --no-build-isolation --no-deps ./python. See the tested SimPy warehouse integration for asynchronous subscribers applying real payloads and checking consistency.

For a benchmark, select a range of reader lags and a proportion of hot keys that match your workload. Measure single-reader pulls, an independently implemented shared-union plan, and the production approach you already use. Record candidate rows, logical deliveries, latency including payload application, and the cases where another method wins. The performance results provide raw samples and exact baselines.