hi FUJITA

golang is amazing.

do you have any idea how to use golang in Python project?

like RYU, i want to use the framework of RYU like BGP FSM, BGP TCP
connection/session maintain, but i want to use gobgp to decode BGP message
only to improve efficiency.

do you have any suggestion?

thanks.

On Tue, Dec 23, 2014 at 12:32 PM, FUJITA Tomonori <
[email protected]> wrote:

> Hi,
>
> On Thu, 18 Dec 2014 13:42:11 +0800
> Peng Xiao <[email protected]> wrote:
>
> > I want to know that if Ryu BGPSpeaker peer with a router who has more
> than
> > 500K BGP internet routes(prefixes).
> > how much time will cost him to decode all the BGP update messages?(i
> think
> > there will be 60-70K IPv4 BGP Update messages)
>
> I wrote trivial benchmark tool:
>
> https://github.com/fujita/misc/blob/master/bgp/bgpparse.py
>
> Parsing 70K BGP update messages; each message includes 8 routes.
>
> On my MacBook Pro, the performance is:
>
> fujita@ubuntu:/tmp/misc/bgp$ python bgpparse.py
> elapsed milli secs: 5584.558
>
>
> I tried the same thing with our another BGP implementation in golang:
>
> https://github.com/fujita/misc/blob/master/bgp/bgpparse.go
>
> fujita@ubuntu:/tmp/misc/bgp$ go build bgpparse.go;./bgpparse
> elasped 205.134316ms
>
>


-- 

Regards,



*Xiao Peng*
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to