# The store benchmark (bench/store/README.md), as `just store-bench` runs # it: the server's logs and tables beside SQLite, RocksDB and fjall under # 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. Only when # the owner asks, on main or on a branch (`knotless run rerun --ref # refs/heads/ --workflow store-bench`): it loads the runner's disk # for a quarter of an hour, and the gates' runs beside it are held to # times, so it is asked for when nothing else runs. A pull that changes the # benchmark or the store it measures runs it small instead # (store-bench-small.yml). 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 runners: [runner.knotless.dev] on: asked: {refs: [refs/heads/*]} cache: [target, bench/store/target, /usr/local/cargo/registry, /usr/local/rustup, /opt/node, web/node_modules] steps: - uses: chadtmiller.com/steps/node@1 with: {version: 24.22.1} - uses: chadtmiller.com/steps/npm-ci@1 with: {dir: web} # The pages, which pds-server embeds. - name: web run: cd web && PATH=/opt/node/bin:$PATH npm run build - name: build run: cargo build --release -p pds # 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 - name: store-bench run: PATH=/opt/node/bin:$PATH bench/store/run.sh