{
  "environment": {
    "git_commit": "5de5b53",
    "logical_cores": 32,
    "query_repetitions": 5,
    "reach_repetitions": 3
  },
  "inputs": {
    "nt_path": "data/opencitations/enriched-clean.nt",
    "oxigraph_triples": 539246,
    "rete_bytes": 2758211,
    "rete_path": "data/opencitations/enriched-clean.rete",
    "rete_sha256": "e9a5ea059b17f84d046a125ae74e0f1ab09cd47eabe740332a5a96215a378909"
  },
  "load_open": {
    "oxigraph_heap_bytes": 152026932,
    "oxigraph_ms": 2436.781876,
    "process_peak_rss_kb": 212084,
    "rete_heap_bytes": 14002176,
    "rete_ms": 19.922705999999998
  },
  "queries": [
    {
      "agree": true,
      "implementation_defined": false,
      "lazy_bytes_fetched": 79215,
      "name": "SELECT count (aggregate)",
      "oxigraph_ms": 9.141151,
      "oxigraph_ms_sd": 0.6215784264413464,
      "oxigraph_peak_heap_bytes": 5893,
      "oxigraph_rows": 1,
      "query": "SELECT (COUNT(?p) AS ?n) WHERE { ?p cito:cites <https://doi.org/10.1038/s41586-021-03819-2> }",
      "rete_lazy_ms": 4.651833,
      "rete_lazy_ms_sd": 0.6200139657598853,
      "rete_ms": 3.7785230000000003,
      "rete_ms_sd": 0.8516109671952915,
      "rete_peak_heap_bytes": 3932655,
      "rete_rows": 1,
      "speedup": 2.4192392106651197
    },
    {
      "agree": true,
      "implementation_defined": false,
      "lazy_bytes_fetched": 52472,
      "name": "SELECT DISTINCT",
      "oxigraph_ms": 10.604659,
      "oxigraph_ms_sd": 1.932201093758049,
      "oxigraph_peak_heap_bytes": 3719,
      "oxigraph_rows": 6,
      "query": "SELECT DISTINCT ?d WHERE { ?p ex:discipline ?d }",
      "rete_lazy_ms": 5.443663,
      "rete_lazy_ms_sd": 0.32310615668043197,
      "rete_ms": 4.792702,
      "rete_ms_sd": 0.5232014475651805,
      "rete_peak_heap_bytes": 5584,
      "rete_rows": 6,
      "speedup": 2.212668135844874
    },
    {
      "agree": true,
      "implementation_defined": false,
      "lazy_bytes_fetched": 52472,
      "name": "ASK",
      "oxigraph_ms": 0.009721,
      "oxigraph_ms_sd": 0.03910924680558295,
      "oxigraph_peak_heap_bytes": 3491,
      "oxigraph_rows": 1,
      "query": "ASK { ?p ex:discipline <http://ex/discipline/Physics> }",
      "rete_lazy_ms": 0.666852,
      "rete_lazy_ms_sd": 0.030562165618620706,
      "rete_ms": 0.057843,
      "rete_ms_sd": 0.19909992526417483,
      "rete_peak_heap_bytes": 2120,
      "rete_rows": 1,
      "speedup": 0.16805836488425566
    },
    {
      "agree": true,
      "implementation_defined": false,
      "lazy_bytes_fetched": 71796,
      "name": "CONSTRUCT",
      "oxigraph_ms": 0.051963999999999996,
      "oxigraph_ms_sd": 0.5090653032075552,
      "oxigraph_peak_heap_bytes": 7688,
      "oxigraph_rows": 9,
      "query": "CONSTRUCT { ?a ex:coauthor ?b } WHERE { VALUES ?a { <http://ex/author/1235> } ?a ex:coauthor ?b }",
      "rete_lazy_ms": 1.838822,
      "rete_lazy_ms_sd": 1.399368995704957,
      "rete_ms": 0.014131000000000001,
      "rete_ms_sd": 0.01700585401560298,
      "rete_peak_heap_bytes": 6369,
      "rete_rows": 9,
      "speedup": 3.677305215483688
    },
    {
      "agree": true,
      "implementation_defined": true,
      "lazy_bytes_fetched": 71796,
      "name": "DESCRIBE (impl-defined)",
      "oxigraph_ms": 0.030511999999999997,
      "oxigraph_ms_sd": 0.048633573251407304,
      "oxigraph_peak_heap_bytes": 3300,
      "oxigraph_rows": 11,
      "query": "DESCRIBE <http://ex/author/1235>",
      "rete_lazy_ms": 0.63864,
      "rete_lazy_ms_sd": 0.023346416744331442,
      "rete_ms": 0.010750999999999998,
      "rete_ms_sd": 0.001621018907971157,
      "rete_peak_heap_bytes": 7492,
      "rete_rows": 11,
      "speedup": 2.83806157566738
    },
    {
      "agree": true,
      "implementation_defined": false,
      "lazy_bytes_fetched": 181559,
      "name": "VALUES (inline data)",
      "oxigraph_ms": 10.990288000000001,
      "oxigraph_ms_sd": 4.351523525799475,
      "oxigraph_peak_heap_bytes": 5482,
      "oxigraph_rows": 10962,
      "query": "SELECT ?p WHERE { VALUES ?d { <http://ex/discipline/Biology> <http://ex/discipline/Physics> } ?p ex:discipline ?d }",
      "rete_lazy_ms": 6.628787,
      "rete_lazy_ms_sd": 1.287264812104837,
      "rete_ms": 5.2165420000000005,
      "rete_ms_sd": 0.45306173620567414,
      "rete_peak_heap_bytes": 6707523,
      "rete_rows": 10962,
      "speedup": 2.1068148210059463
    },
    {
      "agree": true,
      "implementation_defined": false,
      "lazy_bytes_fetched": 181559,
      "name": "UNION",
      "oxigraph_ms": 12.896327000000001,
      "oxigraph_ms_sd": 1.6761796896793322,
      "oxigraph_peak_heap_bytes": 5110,
      "oxigraph_rows": 10993,
      "query": "SELECT ?p WHERE { { ?p ex:discipline <http://ex/discipline/Biology> } UNION { ?p ex:discipline <http://ex/discipline/Chemistry> } }",
      "rete_lazy_ms": 7.973526999999999,
      "rete_lazy_ms_sd": 1.3907641816603922,
      "rete_ms": 7.031863,
      "rete_ms_sd": 1.2691502110947313,
      "rete_peak_heap_bytes": 6856074,
      "rete_rows": 10993,
      "speedup": 1.8339843936094888
    },
    {
      "agree": true,
      "implementation_defined": false,
      "lazy_bytes_fetched": 128567,
      "name": "OPTIONAL (left join)",
      "oxigraph_ms": 0.413916,
      "oxigraph_ms_sd": 0.15885806577665487,
      "oxigraph_peak_heap_bytes": 6790,
      "oxigraph_rows": 200,
      "query": "SELECT ?p ?v WHERE { ?p ex:discipline <http://ex/discipline/Biology> OPTIONAL { ?p prism:publicationName ?v } } LIMIT 200",
      "rete_lazy_ms": 2.277063,
      "rete_lazy_ms_sd": 0.5864608035832404,
      "rete_ms": 0.298948,
      "rete_ms_sd": 0.025308996082420973,
      "rete_peak_heap_bytes": 131086,
      "rete_rows": 200,
      "speedup": 1.3845752438551187
    },
    {
      "agree": true,
      "implementation_defined": false,
      "lazy_bytes_fetched": 205359,
      "name": "MINUS",
      "oxigraph_ms": 3.288707,
      "oxigraph_ms_sd": 1.996827960313757,
      "oxigraph_peak_heap_bytes": 849124,
      "oxigraph_rows": 2728,
      "query": "SELECT ?p WHERE { ?p ex:discipline <http://ex/discipline/Biology> MINUS { ?p dct:subject \"protein\" } }",
      "rete_lazy_ms": 6.337563,
      "rete_lazy_ms_sd": 1.4554087343307722,
      "rete_ms": 2.635431,
      "rete_ms_sd": 0.976988490251958,
      "rete_peak_heap_bytes": 1704404,
      "rete_rows": 2728,
      "speedup": 1.2478820352344644
    },
    {
      "agree": true,
      "implementation_defined": false,
      "lazy_bytes_fetched": 205359,
      "name": "FILTER NOT EXISTS",
      "oxigraph_ms": 10.909552,
      "oxigraph_ms_sd": 4.32530038924659,
      "oxigraph_peak_heap_bytes": 5655,
      "oxigraph_rows": 2728,
      "query": "SELECT ?p WHERE { ?p ex:discipline <http://ex/discipline/Biology> FILTER NOT EXISTS { ?p dct:subject \"protein\" } }",
      "rete_lazy_ms": 6.688015,
      "rete_lazy_ms_sd": 1.1810233031830066,
      "rete_ms": 2.1498239999999997,
      "rete_ms_sd": 0.20344230498522176,
      "rete_peak_heap_bytes": 1704500,
      "rete_rows": 2728,
      "speedup": 5.07462564377363
    },
    {
      "agree": true,
      "implementation_defined": false,
      "lazy_bytes_fetched": 146531,
      "name": "3-way join + LIMIT",
      "oxigraph_ms": 0.18510200000000002,
      "oxigraph_ms_sd": 0.11827741619683786,
      "oxigraph_peak_heap_bytes": 7326,
      "oxigraph_rows": 50,
      "query": "SELECT ?name ?title WHERE { ?p dct:subject \"protein\" . ?p dct:title ?title . ?p dct:creator ?a . ?a foaf:name ?name } LIMIT 50",
      "rete_lazy_ms": 1.745379,
      "rete_lazy_ms_sd": 0.1601172844127079,
      "rete_ms": 0.177141,
      "rete_ms_sd": 0.04191052246512801,
      "rete_peak_heap_bytes": 35052,
      "rete_rows": 50,
      "speedup": 1.0449416001941958
    },
    {
      "agree": true,
      "implementation_defined": false,
      "lazy_bytes_fetched": 81416,
      "name": "FILTER REGEX (case-insens.)",
      "oxigraph_ms": 0.9001220000000001,
      "oxigraph_ms_sd": 0.2382667110792022,
      "oxigraph_peak_heap_bytes": 23325,
      "oxigraph_rows": 200,
      "query": "SELECT ?p ?t WHERE { ?p dct:title ?t FILTER(REGEX(?t, \"genome\", \"i\")) } LIMIT 200",
      "rete_lazy_ms": 8.236653,
      "rete_lazy_ms_sd": 0.8763639472029873,
      "rete_ms": 6.994942,
      "rete_ms_sd": 0.6943055677500364,
      "rete_peak_heap_bytes": 135824,
      "rete_rows": 200,
      "speedup": 0.1286818389630679
    },
    {
      "agree": true,
      "implementation_defined": false,
      "lazy_bytes_fetched": 209431,
      "name": "FILTER arith + logical",
      "oxigraph_ms": 0.745997,
      "oxigraph_ms_sd": 0.334162257753176,
      "oxigraph_peak_heap_bytes": 6054,
      "oxigraph_rows": 200,
      "query": "SELECT ?p ?c WHERE { ?p ex:citationCount ?c FILTER(?c >= 100 && ?c <= 110) } LIMIT 200",
      "rete_lazy_ms": 1.882749,
      "rete_lazy_ms_sd": 0.2473516239542405,
      "rete_ms": 0.272777,
      "rete_ms_sd": 0.056625911213860375,
      "rete_peak_heap_bytes": 137301,
      "rete_rows": 200,
      "speedup": 2.7348236838149846
    },
    {
      "agree": true,
      "implementation_defined": false,
      "lazy_bytes_fetched": 155310,
      "name": "BIND + SUBSTR + CONCAT",
      "oxigraph_ms": 0.32754,
      "oxigraph_ms_sd": 0.1466159188788857,
      "oxigraph_peak_heap_bytes": 7529,
      "oxigraph_rows": 200,
      "query": "SELECT ?p ?label WHERE { ?p cito:cites <https://doi.org/10.1038/s41586-021-03819-2> . ?p dct:date ?y BIND(CONCAT(SUBSTR(?y,1,3), \"0s\") AS ?label) } LIMIT 200",
      "rete_lazy_ms": 2.555575,
      "rete_lazy_ms_sd": 0.6105410431414912,
      "rete_ms": 0.356443,
      "rete_ms_sd": 0.022693426354343238,
      "rete_peak_heap_bytes": 130201,
      "rete_rows": 200,
      "speedup": 0.9189127013295253
    },
    {
      "agree": true,
      "implementation_defined": false,
      "lazy_bytes_fetched": 166421,
      "name": "path sequence a/b",
      "oxigraph_ms": 0.245876,
      "oxigraph_ms_sd": 0.09381264854591836,
      "oxigraph_peak_heap_bytes": 6393,
      "oxigraph_rows": 200,
      "query": "SELECT ?name WHERE { ?p cito:cites <https://doi.org/10.1038/s41586-021-03819-2> . ?p dct:creator/foaf:name ?name } LIMIT 200",
      "rete_lazy_ms": 1.7498209999999998,
      "rete_lazy_ms_sd": 0.14137606163774688,
      "rete_ms": 0.200653,
      "rete_ms_sd": 0.021033578601845192,
      "rete_peak_heap_bytes": 120960,
      "rete_rows": 200,
      "speedup": 1.225379137117312
    },
    {
      "agree": true,
      "implementation_defined": false,
      "lazy_bytes_fetched": 79215,
      "name": "path inverse ^p (count)",
      "oxigraph_ms": 9.705546,
      "oxigraph_ms_sd": 0.9151769002131765,
      "oxigraph_peak_heap_bytes": 5893,
      "oxigraph_rows": 1,
      "query": "SELECT (COUNT(?x) AS ?n) WHERE { <https://doi.org/10.1038/s41586-021-03819-2> ^cito:cites ?x }",
      "rete_lazy_ms": 3.9495240000000003,
      "rete_lazy_ms_sd": 0.5101621116947044,
      "rete_ms": 3.316704,
      "rete_ms_sd": 0.3487859467442747,
      "rete_peak_heap_bytes": 3932655,
      "rete_rows": 1,
      "speedup": 2.9262623375495673
    },
    {
      "agree": true,
      "implementation_defined": false,
      "lazy_bytes_fetched": 91611,
      "name": "path + transitive (count)",
      "oxigraph_ms": 14.046619999999999,
      "oxigraph_ms_sd": 1.6086440947508247,
      "oxigraph_peak_heap_bytes": 844771,
      "oxigraph_rows": 1,
      "query": "SELECT (COUNT(DISTINCT ?o) AS ?n) WHERE { <http://ex/author/1235> ex:coauthor+ ?o }",
      "rete_lazy_ms": 8.737035,
      "rete_lazy_ms_sd": 0.6026940683798044,
      "rete_ms": 6.9398159999999995,
      "rete_ms_sd": 0.17778049993236014,
      "rete_peak_heap_bytes": 1287989,
      "rete_rows": 1,
      "speedup": 2.024062309432988
    },
    {
      "agree": true,
      "implementation_defined": false,
      "lazy_bytes_fetched": 91611,
      "name": "path * zero-or-more (count)",
      "oxigraph_ms": 10.436302999999999,
      "oxigraph_ms_sd": 0.8035469634444519,
      "oxigraph_peak_heap_bytes": 844771,
      "oxigraph_rows": 1,
      "query": "SELECT (COUNT(DISTINCT ?o) AS ?n) WHERE { <http://ex/author/1235> ex:coauthor* ?o }",
      "rete_lazy_ms": 7.026708,
      "rete_lazy_ms_sd": 0.15555068802226482,
      "rete_ms": 6.550753,
      "rete_ms_sd": 0.26938778129529195,
      "rete_peak_heap_bytes": 1287989,
      "rete_rows": 1,
      "speedup": 1.593145551358752
    },
    {
      "agree": true,
      "implementation_defined": false,
      "lazy_bytes_fetched": 52472,
      "name": "GROUP BY + ORDER BY",
      "oxigraph_ms": 10.693309,
      "oxigraph_ms_sd": 1.8199744971238467,
      "oxigraph_peak_heap_bytes": 8284,
      "oxigraph_rows": 6,
      "query": "SELECT ?d (COUNT(?p) AS ?n) WHERE { ?p ex:discipline ?d } GROUP BY ?d ORDER BY DESC(?n)",
      "rete_lazy_ms": 3.5332570000000003,
      "rete_lazy_ms_sd": 0.07035169263564311,
      "rete_ms": 3.8050699999999997,
      "rete_ms_sd": 0.5950152564507907,
      "rete_peak_heap_bytes": 5112316,
      "rete_rows": 6,
      "speedup": 2.810279180146489
    },
    {
      "agree": true,
      "implementation_defined": false,
      "lazy_bytes_fetched": 52472,
      "name": "GROUP BY + HAVING",
      "oxigraph_ms": 10.282788,
      "oxigraph_ms_sd": 0.44513717368952704,
      "oxigraph_peak_heap_bytes": 8382,
      "oxigraph_rows": 5,
      "query": "SELECT ?d (COUNT(?p) AS ?n) WHERE { ?p ex:discipline ?d } GROUP BY ?d HAVING(COUNT(?p) > 5400)",
      "rete_lazy_ms": 6.942873,
      "rete_lazy_ms_sd": 2.142830368897827,
      "rete_ms": 6.1174,
      "rete_ms_sd": 2.1777982496276374,
      "rete_peak_heap_bytes": 5112424,
      "rete_rows": 5,
      "speedup": 1.6809082289861705
    },
    {
      "agree": true,
      "implementation_defined": false,
      "lazy_bytes_fetched": 97291,
      "name": "AVG per group",
      "oxigraph_ms": 43.892883,
      "oxigraph_ms_sd": 2.29933090662921,
      "oxigraph_peak_heap_bytes": 10451,
      "oxigraph_rows": 6,
      "query": "SELECT ?d (AVG(?c) AS ?avg) WHERE { ?p ex:discipline ?d . ?p ex:citationCount ?c } GROUP BY ?d ORDER BY DESC(?avg)",
      "rete_lazy_ms": 31.863637,
      "rete_lazy_ms_sd": 5.455450914048748,
      "rete_ms": 27.834598,
      "rete_ms_sd": 7.485978052919818,
      "rete_peak_heap_bytes": 14213793,
      "rete_rows": 6,
      "speedup": 1.5769181577546045
    },
    {
      "agree": true,
      "implementation_defined": false,
      "lazy_bytes_fetched": 80344,
      "name": "MIN/MAX/SUM",
      "oxigraph_ms": 10.663822,
      "oxigraph_ms_sd": 0.6116232560398603,
      "oxigraph_peak_heap_bytes": 8831,
      "oxigraph_rows": 1,
      "query": "SELECT (MIN(?c) AS ?lo) (MAX(?c) AS ?hi) (SUM(?c) AS ?tot) WHERE { ?p ex:citationCount ?c }",
      "rete_lazy_ms": 5.506437,
      "rete_lazy_ms_sd": 0.9063040791504805,
      "rete_ms": 9.141565,
      "rete_ms_sd": 2.0177593675615784,
      "rete_peak_heap_bytes": 7860655,
      "rete_rows": 1,
      "speedup": 1.166520393389972
    },
    {
      "agree": true,
      "implementation_defined": false,
      "lazy_bytes_fetched": 58812,
      "name": "COUNT(DISTINCT)",
      "oxigraph_ms": 7.726727,
      "oxigraph_ms_sd": 0.2911288548541695,
      "oxigraph_peak_heap_bytes": 7923,
      "oxigraph_rows": 1,
      "query": "SELECT (COUNT(DISTINCT ?v) AS ?n) WHERE { ?p prism:publicationName ?v }",
      "rete_lazy_ms": 2.741842,
      "rete_lazy_ms_sd": 0.09024697536039653,
      "rete_ms": 2.477595,
      "rete_ms_sd": 0.08307737009137933,
      "rete_peak_heap_bytes": 4718129,
      "rete_rows": 1,
      "speedup": 3.1186400521473447
    },
    {
      "agree": true,
      "implementation_defined": false,
      "lazy_bytes_fetched": 128039,
      "name": "ORDER BY + LIMIT + OFFSET",
      "oxigraph_ms": 22.664697,
      "oxigraph_ms_sd": 0.957713836543986,
      "oxigraph_peak_heap_bytes": 6026984,
      "oxigraph_rows": 10,
      "query": "SELECT ?p ?c WHERE { ?p ex:citationCount ?c } ORDER BY DESC(?c) LIMIT 10 OFFSET 50",
      "rete_lazy_ms": 5.016156,
      "rete_lazy_ms_sd": 0.15366572335690215,
      "rete_ms": 4.045215,
      "rete_ms_sd": 0.05917989425725607,
      "rete_peak_heap_bytes": 46317,
      "rete_rows": 10,
      "speedup": 5.602841134525606
    }
  ],
  "query_agreement": {
    "agree": 24,
    "total": 24
  },
  "reachability": {
    "oxigraph_ms": 3025.9318890000004,
    "oxigraph_ms_sd": 47.56717314736813,
    "oxigraph_total": 1636200,
    "oxigraph_vs_rete_serial": 0.2117413770379813,
    "parallel_speedup_vs_serial": 16.4252238727188,
    "predicate": "<http://ex/coauthor>",
    "rete_parallel_ms": 39.007991,
    "rete_parallel_ms_sd": 12.395522485430133,
    "rete_parallel_total": 1636200,
    "rete_serial_ms": 640.7149850000001,
    "rete_serial_ms_sd": 101.4806405498597,
    "rete_serial_total": 1636200,
    "seed_count": 300
  },
  "schema_version": 2,
  "tool": "rete-bench",
  "metadata": {
    "latest_run": "2026-06-15",
    "oxigraph_version": "0.5",
    "dataset": "the real OpenCitations citation network for the AlphaFold paper (Nature 2021), enriched with disciplines, authors, venues and citation counts (539,246 triples loaded into both engines)"
  }
}
