tests/benchmark/README.md

create.rknn.graphs() backend parity benchmarks

This directory contains opt-in benchmark parity checks for the adaptive radius-kNN graph sequence constructor. These scripts are not part of routine R CMD check or testthat runs because they compare elapsed times.

Run from the package root:

Rscript tests/benchmark/run_create_rknn_graphs_backend_parity.R

The benchmark compares the public wrapper in both modes:

For each scenario, it removes timing-only fields and requires the remaining graph sequence objects to match at numeric tolerance 1e-12. It reports wall-clock medians and speedup ratios, but it does not fail on speed by default because machine load and compiler/runtime settings can make timing noisy.

Optional environment variables:



Try the dgraphs package in your browser

Any scripts or data that you put into this service are public.

dgraphs documentation built on Aug. 21, 2026, 1:08 a.m.