Skip to content

Benchmark encrypted storage, single-stream and under concurrent queries #2147

Open

Description

@bplatz

From #2130's review: nothing in CI or the nightly benchmarks covers encrypted storage, and nothing has measured it under concurrent queries.

#2130's numbers come from fluree-db-api/examples/encryption_ab.rs, an example that runs one query at a time. Review found a regression it couldn't see: lookups in a promoted dictionary pack went from about 10 ns on one thread to 2.7 µs on eight. #2130 fixed it, and a unit test now times that one path. Nothing in benches/ or regression-budget.json runs over an encrypted store, so a regression elsewhere on that path would land unnoticed. fluree-db-server runs encrypted file storage under concurrent requests.

Wanted:

  1. A benchmark over an encrypted store (version 2 envelopes), with budget entries in regression-budget.json: point lookups, scans, and result formatting, at a cache budget that holds the dictionaries whole and at one that doesn't.
  2. A one-off concurrent measurement through the server: N concurrent queries over an encrypted file store, against the same store unencrypted. It would show whether any other shared path, such as Concurrent lookups in an encrypted dictionary pack read by range contend in the leaflet cache #2146 or the leaflet cache generally, scales worse when encrypted.

The first catches regressions; the second answers whether the single-stream evidence holds under load.

Activity

  1. added
    P2
    area:storage
    performance
    on Oct 20, 2026
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

    P2area:storageperformance

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions