Skip to content

Add futures benchmarks - #388

Merged
jrbourbeau merged 4 commits into
mainfrom
benchmark-futures
Sep 29, 2022
Merged

jrbourbeau merged 4 commits into
mainfrom
benchmark-futures

Conversation

@mrocklin

Copy link
Copy Markdown
Member

No description provided.

Comment on lines +6 to +8
def test_single_future(small_client):
"""How quickly can we run a simple computation?"""
small_client.submit(inc, 1).result()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will capture benchmarking information, but I'm not sure I would trust any of it, as I'd expect it to be 100% background noise.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤔 what are the sources of background noise these days? Is it test setup, or is it Dask/Coiled runtime noise?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm tempted now to make a test that is just ...

def test_foo(small_client):
    pass

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That test makes a new cluster. I'm curious about noise when we're using the existing cluster from the fixture (I would assume that fixture creation time doesn't get counted in metrics).

I was mostly joking though. Mostly. It sounds like noise is a concern. We should maybe be intentionally sensitive to noise.

Comment thread tests/benchmarks/test_futures.py Resolved
Comment thread tests/benchmarks/test_futures.py Resolved
@jrbourbeau jrbourbeau changed the title Add futures benchmarks [WIP] Add futures benchmarks Sep 29, 2022

@jrbourbeau jrbourbeau left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @mrocklin -- LGTM

@jrbourbeau jrbourbeau changed the title [WIP] Add futures benchmarks Add futures benchmarks Sep 29, 2022
@jrbourbeau
jrbourbeau merged commit 11cb730 into main Sep 29, 2022
@jrbourbeau
jrbourbeau deleted the benchmark-futures branch September 29, 2022 19:19
gjoseph92 added a commit to gjoseph92/snakebench that referenced this pull request Oct 4, 2022
@ntabris ntabris mentioned this pull request Oct 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants