Skip to content

Query Engine Comparison

A browser research workbench checks typed-query equivalence before comparing first-use and reused DuckDB-WASM and Hyparquet runs.

The Problem

A faster result matters only when both engines answer the same question. File reads, supported operations and cache state can change a run, even when both adapters open the same Parquet source.

How It Works

  1. 01Build one typed query plan and send it to both adapters. Compare complete rows, groups and metrics before treating timings as comparable.
  2. 02Run one engine at a time. Record first-use and reused phases alongside source-read evidence so each timing has a clear cache context.
  3. 03Use a deterministic mock fixture, local file, packaged fixture or range-enabled HTTPS source. Keep trials and equivalence checks in the analysis report.

Engineering Decisions

  • Check equivalent results before comparing speed

    Both engines receive the same typed query plan, with row and aggregate checks alongside execution timings.

    An unsupported or inequivalent operation cannot produce a meaningful winner, even when one run completes sooner.

  • Run engines sequentially and label cache state

    First-use and reused runs measure different paths. Sequential execution keeps the two engines from competing for the same browser resources.

    A comparison takes longer and remains specific to its source, runtime, dependencies and device.

Outcome

The report shows whether answers matched and what each run read. This standalone workbench is separate from the product Data Engine; it records no universal winner.