8000 perf: benchmark queries at 100K–10M facts and publish a performance envelope · Issue #394 · project-minigraf/minigraf · GitHub
[go: up one dir, main page]

Skip to content

perf: benchmark queries at 100K–10M facts and publish a performance envelope #394

Closed

Description

@adityamukho

Problem

docs/BENCHMARKS.md shows query latency only at 1K and 10K facts:

Benchmark 1K facts 10K facts
point_attribute 2.12 ms 26.09 ms
join_3pattern 5.94 ms 75.88 ms

Both grow linearly. If that continues, a 1M-fact graph would take seconds per attribute scan or join. That is too slow for most high-stakes embedded use, and no published number shows what really happens. checkpoint takes 40 ms at 1M facts and grows with graph size (#315).

A user cannot tell whether their workload fits.

Ask

Activity

  1. added this to the v3.0.0 milestone on Sep 26, 2026
  2. adityamukho commented on Oct 7, 2026

    @adityamukho
    CollaboratorAuthor

    Carried over from #462 (closed): record the FFI round trip through the Python binding (minigraf-python v3, db.query(...) with next_batch(1000)), with wall time and RSS, in the performance envelope. Measured here, it is the baseline for today's cursor, which computes the whole answer when it opens. #473 (the streaming engine split off from #432) re-measures it as an acceptance test.

  3. added a commit that references this issue on Oct 11, 2026
  4. adityamukho commented on Oct 11, 2026

    @adityamukho
    CollaboratorAuthor

    Done on v3 in #533 (42b88ba): examples/perf_envelope.rs, the envelope profile, and the envelope in docs/BENCHMARKS.md and the README at 100K/1M/10M facts. The Python FFI round trip is in minigraf-python#8. Follow-ups from profiling at 1M facts: #528 (bug, v3.0.0) and #529–#532 (perf, v3.1.0); join and binding costs are noted on #473.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationperformanceBenchmark performance regressions

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0