rigetti / pyquil

A Python library for quantum programming using Quil.
http://docs.rigetti.com
Apache License 2.0
1.39k stars 341 forks source link

test: Setup benchmarking with benchmark for program instruction iteration #1754

Open MarquessV opened 3 months ago

MarquessV commented 3 months ago

Description

This establishes a pattern for us to write and profile benchmarks. I started with a benchmark for program iteration, since that was reported to be slow.

This is a profile generated by cProfile, and visualized with snakeviz, of iterating over a 9000 line program:

image
github-actions[bot] commented 3 months ago

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
7167 6312 88% 87% 🟢

New Files

No new covered files...

Modified Files

No covered modified files...

updated for commit: 5513c56 by action🐍