Skip to content

Request 2 thrines in ThrinesBenchmark to match other implementations - #22

Open
fizruk wants to merge 1 commit into
UnitTestBot:mainfrom
fizruk:fix-thrines-benchmark-count
Open

Request 2 thrines in ThrinesBenchmark to match other implementations#22
fizruk wants to merge 1 commit into
UnitTestBot:mainfrom
fizruk:fix-thrines-benchmark-count

Conversation

@fizruk

@fizruk fizruk commented Jul 17, 2026

Copy link
Copy Markdown

ThrinesBenchmark calls findThrines(3), while the corresponding benchmarks for other miniKanren implementations request 2 thrines. In particular, the OCanren and faster-miniKanren benchmarks in miniKanren_exec_order (the setup used for the klogic paper's cross-language comparison, if I understand correctly) both take 2 answers, and so does the typedKanren benchmark suite which builds on it. Since the search space grows quickly between consecutive thrines, requesting a third answer makes this benchmark solve a substantially harder query than the others, so klogic's thrines numbers come out worse than they should in cross-language comparisons.

To estimate the effect, I ran the suite on an Apple M-series machine (JMH, JDK 21): with findThrines(3) the benchmark takes ~2620 ms, with findThrines(2) it takes ~1630 ms, i.e. the current setting inflates the thrines result by roughly 1.6x.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant