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

perf: Add some simple benchmarks #892

Merged
merged 1 commit into from
Mar 25, 2024
Merged

perf: Add some simple benchmarks #892

merged 1 commit into from
Mar 25, 2024

Conversation

aborgna-q
Copy link
Collaborator

Adds some actual benchmarks, mainly extracted from the unit tests:

  • Construct a complex Type
  • Construct a DFG hugr
  • Construct a CFG hugr

I intended to include these in a PR implementing this optimisation suggestion #891 (comment), but the actual tests showed a consistent 4% slowdown on the hugr builders.
So I'd say it's important to have benchmarks :)

@aborgna-q aborgna-q requested a review from cqc-alec March 25, 2024 15:40
@aborgna-q aborgna-q added this pull request to the merge queue Mar 25, 2024
Merged via the queue into main with commit d4569ef Mar 25, 2024
15 checks passed
@aborgna-q aborgna-q deleted the perf/benchmarks branch March 25, 2024 15:54
This was referenced Mar 25, 2024
@github-actions github-actions bot mentioned this pull request Apr 15, 2024
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.

2 participants