Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions benchmarks/test_benchmark_chain_100.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""_summary_."""

import itertools
from abc import ABC

Expand All @@ -11,26 +13,47 @@


class ChainLink(CoSyLuigiTask, ABC):
"""_summary_."""

chain_link: CoSyLuigiTaskParameter | None


class StartingLink(ChainLink):
"""_summary_."""

chain_link = None


class RepeatingLink(ChainLink):
"""_summary_."""

chain_link = CoSyLuigiTaskParameter(ChainLink)

def output(self):
"""_summary_.

Returns:
_type_: _description_
"""
return {"counter": MockTarget(str(next(counter)))}


@pytest.fixture
def repo():
"""_summary_.

Returns:
_type_: _description_
"""
return CoSyLuigiRepo(ChainLink)


def create_infinite_chain(repo):
"""_summary_.

Args:
repo (_type_): _description_
"""
maestro = Maestro(
repo.cls_repo,
repo.taxonomy,
Expand All @@ -39,6 +62,12 @@ def create_infinite_chain(repo):


def test_benchmark_chain_creation(repo, benchmark):
"""_summary_.

Args:
repo (_type_): _description_
benchmark (_type_): _description_
"""
benchmark(create_infinite_chain, repo)


Expand Down
29 changes: 0 additions & 29 deletions docs/bibliographies/bibliography.bib

This file was deleted.

Loading
Loading