chadtmiller.com/monolith
An atproto PDS
0
0
store-bench runs on pulls to the benchmark or pds-store alone
.knotless/workflows/store-bench.yml+11−6
| @@ -3,11 +3,13 @@ | ||
# the same commits (writes, a log and a firehose replayed, reads, sizes), | ||
# and the server's start and memory by the number of accounts in its | ||
# service log. Its log is the tables, for bench/store/RESULTS.md. On a | ||
# pull that changes the benchmark, or the formats it writes itself: a log's | ||
# frames (crates/pds-store), an account's commit frames and the service | ||
# log's entries (the server's log.rs, compact.rs and store.rs), so that a | ||
# change to those says so here; and on main when the owner asks. It fails | ||
# only if the benchmark cannot build or run, never for a number. | ||
# pull that changes the benchmark or the store it measures | ||
# (crates/pds-store); and on main when the owner asks, which is how a pull | ||
# that changes the server's own frames (its log.rs, compact.rs and | ||
# store.rs) is measured once it has merged. Not on every pull that touches | ||
# those: the benchmark loads the runner's disk for a quarter of an hour, | ||
# and the gates' runs beside it are held to times. It fails only if the | ||
# benchmark cannot build or run, never for a number. | ||
# | ||
# Node, the pages' packages and both builds are kept between runs. | ||
image: rust:1.98 | ||
| @@ -15,7 +17,7 @@ runners: [runner.knotless.dev] | ||
on: | ||
pull: | ||
base: [refs/heads/main] | ||
paths: [bench/store/**, .knotless/workflows/store-bench.yml, crates/pds-store/**, crates/pds-server/src/log.rs, crates/pds-server/src/compact.rs, crates/pds-server/src/store.rs] | ||
paths: [bench/store/**, .knotless/workflows/store-bench.yml, crates/pds-store/**] | ||
asked: {refs: [refs/heads/main]} | ||
cache: [target, bench/store/target, /usr/local/cargo/registry, /usr/local/rustup, /opt/node, web/node_modules] | ||
steps: | ||
| @@ -31,5 +33,8 @@ steps: | ||
# RocksDB's bindings are generated as it builds, which needs libclang. | ||
- name: libclang | ||
run: apt-get update -q && apt-get install -y -q libclang-dev | ||
# About a quarter of an hour alone; beside another workflow's runs it has | ||
# taken over half an hour. | ||
- name: store-bench | ||
run: PATH=/opt/node/bin:$PATH bench/store/run.sh | ||
timeout: 3600 | ||
docs/guide/comparing.md+1−2
| @@ -253,8 +253,7 @@ held open, smaller blocks, another check), to say what each is worth. | ||
measures and what is fair to each store, and | ||
[bench/store/RESULTS.md](../../bench/store/RESULTS.md) holds the last | ||
results, by machine. The `store-bench` workflow runs it on the runner, on a | ||
pull that changes it or the formats it writes itself, and when the owner | ||
asks. | ||
pull that changes it or `crates/pds-store`, and when the owner asks. | ||
| ||
RocksDB is built from source the first time, some minutes, and its | ||
bindings need libclang (`apt-get install libclang-dev`; Xcode's tools have | ||