faster-fifo icon indicating copy to clipboard operation
faster-fifo copied to clipboard

Some guidance on what "many" is

Open benjamin-kirkbride opened this issue 1 year ago • 5 comments

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 avatar Jul 16 '24 21:07 benjamin-kirkbride

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

Nevermind, I forgot to block=False :sweat_smile:

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

Is the code that generated the benchmarks around?

benjamin-kirkbride avatar Jul 16 '24 21:07 benjamin-kirkbride

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!

alex-petrenko avatar Aug 07 '24 18:08 alex-petrenko

Is the code that generated the benchmarks around?

benjamin-kirkbride avatar Aug 11 '24 23:08 benjamin-kirkbride

Did you check the link I provided? It's here: https://github.com/alex-petrenko/faster-fifo/blob/18c46864817c09277bab8aef74bc1b981197937b/cpp_faster_fifo/tests/comparison_tests.py#L95

alex-petrenko avatar Aug 12 '24 22:08 alex-petrenko

Sorry, I'm dumb. Thanks!!

benjamin-kirkbride avatar Aug 13 '24 00:08 benjamin-kirkbride