diff --git a/.github/workflows/ucc-benchmarks.yml b/.github/workflows/ucc-benchmarks.yml index b0995776..2e2a0ab6 100644 --- a/.github/workflows/ucc-benchmarks.yml +++ b/.github/workflows/ucc-benchmarks.yml @@ -16,6 +16,15 @@ jobs: # Checkout the repository - name: Checkout code uses: actions/checkout@v4 + with: + fetch-depth: 0 # Ensure the full history is fetched for branch operations + + # Checkout the correct branch + - name: Checkout the branch + run: | + BRANCH_NAME="${{ github.head_ref || github.ref_name }}" + echo "Checking out branch: $BRANCH_NAME" + git checkout $BRANCH_NAME # Build the Docker image - name: Build Docker image @@ -28,6 +37,7 @@ jobs: -v ${{ github.workspace }}/benchmarks/results:/ucc/benchmarks/results \ ucc-benchmark bash -c "source /venv/bin/activate && ./benchmarks/scripts/run_benchmarks.sh" + # Commit and push benchmark results using a dedicated action - name: Commit and push results uses: EndBug/add-and-commit@v9 @@ -35,5 +45,5 @@ jobs: author_name: GitHub Actions author_email: actions@github.com message: "Update benchmark results" - add: "benchmarks/results/*" + add: "." push: true diff --git a/benchmarks/results/gates_2024-12-11.csv b/benchmarks/results/gates_2024-12-11.csv index 123e3c8d..dde1acdc 100644 --- a/benchmarks/results/gates_2024-12-11.csv +++ b/benchmarks/results/gates_2024-12-11.csv @@ -23,3 +23,27 @@ pytket,qcnn,388,0.040493011474609375,388 cirq,qcnn,388,2.5481464862823486,388 cirq,prep_select,9744,73.22792315483093,9712 cirq,qv,15000,230.78820419311523,14856 +qiskit,qaoa_barabasi_albert,1176,0.19065546989440918,1176 +pytket,qaoa_barabasi_albert,1176,0.02491593360900879,1176 +ucc,qaoa_barabasi_albert,1176,0.6089544296264648,1176 +cirq,qaoa_barabasi_albert,1176,7.620911598205566,1176 +ucc,qv,15000,10.085904359817505,14856 +qiskit,qv,15000,9.826894283294678,14856 +ucc,qft,10050,2.9157328605651855,2740 +qiskit,qft,10050,0.598933219909668,3244 +pytket,qv,15000,7.463933229446411,15000 +ucc,square_heisenberg,2160,0.3316502571105957,540 +qiskit,square_heisenberg,2160,0.29610729217529297,540 +pytket,qft,10050,0.31843996047973633,5890 +pytket,square_heisenberg,2160,0.13750028610229492,2160 +cirq,square_heisenberg,2160,9.913521766662598,540 +ucc,prep_select,9744,7.988763093948364,9702 +qiskit,prep_select,9744,1.548689842224121,9708 +cirq,qft,10050,50.854281425476074,4648 +ucc,qcnn,388,0.15615296363830566,388 +qiskit,qcnn,388,0.09864592552185059,388 +pytket,qcnn,388,0.020900964736938477,388 +pytket,prep_select,9744,0.3424699306488037,9712 +cirq,qcnn,388,3.7005414962768555,388 +cirq,prep_select,9744,74.17708015441895,9712 +cirq,qv,15000,236.04137253761292,14856