8000 Clarify benchmark and CI test comments on v2.x by adityamukho · Pull Request #993 · project-minigraf/minigraf · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/coverage-gates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:

- name: Build the pid_ns_helper example used by lock tests
# cargo-llvm-cov's instrumented build places test binaries under a
# build-script-shaped path (target/llvm-cov-target/debug/build/...),
# path normally used for compiled build scripts (target/llvm-cov-target/debug/build/...),
# so the lock tests' `examples/`-relative-to-test-binary lookup
# (docker_lock_test.rs, nfs_lock_test.rs, pid_namespace_test.rs)
# never finds the helper. Build it into a target dir cargo-llvm-cov
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/soak.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ run-name: >-
Soak test (${{ github.event_name == 'workflow_dispatch' && inputs.ref
|| (github.event.schedule == '0 1 * * 0' && 'v3' || 'main') }})

# #392: grows a file-backed database to 10M+ facts, then churns it (retracts,
# re-asserts, long hot-entity histories) for the rest of the budget, with
# #392: grows a file-backed database to 10M+ facts, then repeatedly retracts
# and reasserts facts for the rest of the run. This creates long histories
# for frequently updated entities, with
# thousands of checkpoints and reopens every few minutes. Samples are checked
# against a reference throughout; the metrics (file size, open and checkpoint
# time, RSS, p50/p99 query latency) are uploaded for the performance envelope
Expand Down
7 changes: 3 additions & 4 deletions benches/minigraf_bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1522,9 +1522,8 @@ fn bench_prepared(c: &mut Criterion) {

// ── Retraction ────────────────────────────────────────────────────────────────
//
// Retraction is a first-class bi-temporal operation (logical delete via
// asserted=false fact). These benchmarks measure retraction cost and confirm
// it scales comparably to insertion.
// MiniGraf records a retraction as a fact with asserted=false. These
// benchmarks measure how retraction time changes with database size.

fn bench_retract(c: &mut Criterion) {
const SCALES: &[(&str, usize)] = &[
Expand Down Expand Up @@ -1619,7 +1618,7 @@ fn bench_btree_lookup(c: &mut Criterion) {
// ── point_query_chain_depth (Issue #323) ─────────────────────────────────────
//
// One entity whose :hash is retracted/reasserted `depth` times (exactly one live
// value), plus a never-churned :other on the same entity; checkpointed file DB.
// value), plus an unchanged :other fact on the same entity. The file is checkpointed.

fn bench_point_query_chain_depth(c: &mut Criterion) {
const DEPTHS: &[usize] = &[1, 500, 2000];
Expand Down
Loading
0