Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some guidance on what "many" is #51

Open
benjamin-kirkbride opened this issue Jul 16, 2024 · 5 comments
Open

Some guidance on what "many" is #51

benjamin-kirkbride opened this issue Jul 16, 2024 · 5 comments

Comments

@benjamin-kirkbride
Copy link

In some very crude tests I've done, get_many is orders of magnitude slower for getting 100 or so items at a time. Is there a rule of thumb for what constitutes "many"?

It would be cool if the benchmarks had smaller examples to help with this.

@benjamin-kirkbride
Copy link
Author

get_many is orders of magnitude slower for getting 100 or so items at a time

Nevermind, I forgot to block=False 😅

That said, I still think bench-marking smaller amounts would be nice :)

Is the code that generated the benchmarks around?

@alex-petrenko
Copy link
Owner

alex-petrenko commented Aug 7, 2024

Sorry for radio silence!
Yes, the code is here: https://github.com/alex-petrenko/faster-fifo/blob/master/cpp_faster_fifo/tests/comparison_tests.py

Depending on the OS/Python version the results may vary greatly!

@benjamin-kirkbride
Copy link
Author

Is the code that generated the benchmarks around?

@alex-petrenko
Copy link
Owner

Did you check the link I provided?
It's here:

class ComparisonTestCase(TestCase):

@benjamin-kirkbride
Copy link
Author

Sorry, I'm dumb. Thanks!!

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

No branches or pull requests

2 participants