bench: typecheck_scaling — schema-size × query-size scaling of the type checker - #93
Draft
Felipe705x wants to merge 1 commit into
Draft
bench: typecheck_scaling — schema-size × query-size scaling of the type checker#93Felipe705x wants to merge 1 commit into
Felipe705x wants to merge 1 commit into
Conversation
…pe checker Runtime-independent microbenchmark of Typechecker::check_query over a homogeneous synthetic schema family (schema size is the controlled variable; 1:2 node:edge ratio matching the measured LDBC SF0.1 inferred schema, 11+25=36). Cases come from internal_bench.rs — v_chain_knows, e_bad_edge_deep, e_label_only, byte-identical after renaming labels into the synthetic universe — with the chain parameterized in k by inserting intermediate nodes. Median timing under an adaptive per-case budget; verdicts asserted every run. Based on the v0.2.0 release so the numbers track a fixed released baseline of the checker. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Felipe705x
marked this pull request as draft
September 1, 2026 00:52
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Do not merge — pinned-baseline benchmark. This branch deliberately sits on the v0.2.0 release (
6cba43e) so the numbers track a fixed released baseline of the checker; the bin uses the crate's lib name at that point (gqlrust), so merging intomain(lib renamed tofrogql) would break the build. Run the bench from this branch; cite it asbench/typecheck-scaling@ HEAD.Runtime-independent microbenchmark of
Typechecker::check_query: cost as a function of schema size (a homogeneous synthetic schema family — the controlled variable, so a fixed real schema can't serve) and query size (chain length k). No runtime, storage, or data involved.internal_bench.rs—v_chain_knows,e_bad_edge_deep,e_label_only— byte-identical after renaming labels into the synthetic universe (Person→L0,knows→e0,Wagumi→NoSuchLabel; projected property names exist verbatim). The chain is parameterized in k by inserting intermediate nodes only; k=1 is the original query.max(S/3,2)node types (two properties each) + undirected edge types, 1:2 ratio matching the measured LDBC inferred schema — 11 node + 25 edge entries = 36, identical for SF0.1 and SF0.3 (verified on both datasets; the inferred schema is scale-invariant, which is precisely why varying schema size requires a synthetic family). Suggested ladder: 16–1024 (powers of two) plus 36 as the LDBC-size anchor.🤖 Generated with Claude Code