From f8523c96a74b7c4b11532af4807d06e1be8efb0d Mon Sep 17 00:00:00 2001 From: Nicholas Landry Date: Mon, 2 Dec 2024 18:38:35 -0500 Subject: [PATCH] update benchmarks --- .github/workflows/benchmark.yml | 2 +- benchmarks/generators.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 597d8475..af9b8bfb 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -24,7 +24,7 @@ jobs: pip install .[benchmark] - name: Run benchmarks run: | - pytest benchmarks/*.py --benchmark-json --benchmark-time-unit=ms benchmarks/output.json + pytest benchmarks/*.py --benchmark-json=benchmarks/output.json --benchmark-time-units=ms - name: Store benchmark results uses: benchmark-action/github-action-benchmark@v1 with: diff --git a/benchmarks/generators.py b/benchmarks/generators.py index 58f8f106..e9b990cf 100644 --- a/benchmarks/generators.py +++ b/benchmarks/generators.py @@ -7,6 +7,6 @@ def test_erdos_renyi(benchmark): def erdos_renyi(): - xgi.fast_random_hypergraph(100, [0.1, 0.001]) + xgi.random_hypergraph(100, [0.1, 0.001]) - benchmark.pedantic(erdos_renyi, rounds=rounds, iterations=1) + benchmark.pedantic(erdos_renyi, rounds=rounds, iterations=iterations)