Hi,

For a research project, I need to query routes through the Bird CLI around
10k times per second.

To do this, I wrote a small Python tool that talks to the Bird CLI over
its Unix socket and parses CLI replies.

For anyone interested, the first version of the code is here: 
https://github.com/jonglezb/bird-bulk

The parsing code is not terribly efficient and it would be much faster in
C or Go, but it's fast enough for my needs: it can perform 17k queries per
second on a Bird daemon with a full BGP view.

Out of curiosity, I started several instances of my benchmark script in
parallel, and Bird maxed out at 50k queries per second.  This is quite
impressive considering that it is loaded with almost 800k routes.

Conclusion: Bird *is* efficient :)

Let me know if you are interested in re-using this code, I can package it
properly in pip.

Regards,
Baptiste

Attachment: signature.asc
Description: PGP signature

Reply via email to