From 323513c98b1baede8e42e6170c22632050b9bf3d Mon Sep 17 00:00:00 2001 From: Nicholas Landry Date: Sun, 24 Nov 2024 18:05:52 -0500 Subject: [PATCH] add benchmarks --- .gitignore | 2 +- benchmarks/{generative.py => generators.py} | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) rename benchmarks/{generative.py => generators.py} (87%) diff --git a/.gitignore b/.gitignore index 712039cc..37abc93b 100644 --- a/.gitignore +++ b/.gitignore @@ -150,4 +150,4 @@ test.* # benchmarking files .benchmarks -benchmarks/output.json \ No newline at end of file +output.json \ No newline at end of file diff --git a/benchmarks/generative.py b/benchmarks/generators.py similarity index 87% rename from benchmarks/generative.py rename to benchmarks/generators.py index edb700bc..d38150d6 100644 --- a/benchmarks/generative.py +++ b/benchmarks/generators.py @@ -4,7 +4,8 @@ def test_erdos_renyi(benchmark): - def erdos_renyi(H): + + def erdos_renyi(): xgi.fast_random_hypergraph(100, [0.1, 0.001]) benchmark.pedantic(erdos_renyi, rounds=rounds)