Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add N-queens benchmark for NonDet. #211

Merged
merged 4 commits into from
Sep 9, 2019
Merged

Add N-queens benchmark for NonDet. #211

merged 4 commits into from
Sep 9, 2019

Conversation

patrickt
Copy link
Collaborator

@patrickt patrickt commented Sep 8, 2019

Addresses #210.

@patrickt patrickt mentioned this pull request Sep 8, 2019
@patrickt patrickt requested a review from robrix September 9, 2019 17:18
-- Based largely on the implementation by Sreekar Shastry,
-- available at https://github.com/sshastry/queenslogic

module NQueens (runQueens, toplevel) where
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huge 👍 to splitting off a new module for these benchmarks. I’d like to organize benchmarks by the effect(s) whose carriers we’re comparing, so what do you think about renaming the module to NonDet or NonDet.NQueens?

runQueens = run . runNonDet . queens

toplevel :: Gauge.Benchmark
toplevel = bgroup "N-queens problem"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you name this e.g. benchmark instead please? (I’m picturing us doing something like we’ve done with hspec where each module exports a spec symbol.)

@patrickt patrickt merged commit 099c21c into master Sep 9, 2019
@patrickt patrickt deleted the nondet-benchmarks branch September 9, 2019 20:15
@robrix
Copy link
Contributor

robrix commented Sep 9, 2019

@patrickt: Addresses is apparently not one of the magic words; Fixes, Closes, and Resolves are, tho, I think.

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.

None yet

2 participants